Jump to content

Request: inverted option in EVENT_BUTTON


tomcc
 Share

Recommended Posts

Hello TK -

Using NG on a pipe organ.  Need all those inputs!  Keyboards are 1 line per key,  no matrix.  Keying is usually 12 volts on pipe organs,  and can be either active high or active low.  Ours is active high,  but running through ULN2803 to convert voltage,  which also inverts.  This would be a very common situation for someone trying to use NG on a pipe organ.  

Since there is no matrix,  I am just using one line per key into DIN,  and then EVENT_BUTTON for each key.  This works beautifully in bench testing and provides exactly what I need (Note_On when a key is pressed, and Note_Off when released)  for non-inverted input.   But of course my input is inverted.   Inverted inputs are not unusual.  

I have searched the docs and see inverted options in matrix and keyboard statements,  but not in EVENT_BUTTON.   Some work arounds have been suggested and I have tried them,  but none of them provide the elegant simplicity of EVENT_BUTTON.  (for example,  tried use type NOTE_OFF but only get Note_off msgs.  Likewise,  an option that only provides Note_On 0 and 127 is not a satisfying solution.  I need  to track MIDI messages and would like for them to be standard and make sense.  

What would solve all of this and enhance the capability of EVENT_BUTTON is an INVERTED yes/no option (default no).   

Would you please consider adding this feature?   It would be a life saver for me!

Thank you for considering this request,  and thank you for all your hard work in putting together this great system. 

Tom

Tacoma, WA USA

Link to comment
Share on other sites

Thank you so much, TK.   I will be downloading it and checking it out.   

You are amazing!

Have two busy work days ahead but plan to bench test it Tuesday night and will let you know. 

It would also be extremely helpful if EVENT_LED had an INVERTED option.  This might seem silly for LEDs but for pipe organs,  the EVENT_LED  would be the means to drive the key switch bus (which is typically not matrixed) for midi playback and might require either polarity.   In general,  it seems that for maximum flexibility that any input or output should allow for either polarity.  

I hope this would not be too much bother to implement.  

The following are just some musings,  and not nearly as important,  but also wonder if an INVERTED option might be helpful and perhaps more efficient at the chip level (all 8 bits of a chip inverted with a single instruction) and our DIN/DOUT board (32 bits at a time)  and/or the entire bus,  e.g.:  ALL DINS INVERTED  or ALL DOUTS INVERTED.  

The 256 possible inputs and outputs now available in NG opens up MIDIBOX to the pipe organ world.  128 was just not enough unless the person was a real wiz and able to wire their keyboards into a matrix,  and I know there are some of those smart people on this board.  But that kind of wizardry is beyond most pipe organ technicians.   They are looking for a system where they can wire one key to an input and/or ouput.  NG now gives them that capability.  

Thank you for all your great work in putting together this incredible system and for giving it away to the world!

Tom

 

Link to comment
Share on other sites

Hi Tom,

fortunately I also implemented the inverted option for EVENT_LED (I had the same use case in mind :)

For bulk-assignments, I've actually another idea: the possibility to set "attributes" from a .NGR script, and to provide some kind of iterator, such as "set_attribute BUTTON:{1-256} inverted 1"

But it will take some time until this will be available, because it requires some parser extensions.

Best Regards, Thorsten.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...