Jump to content

Matching DIN to DOUT


moonskin
 Share

Recommended Posts

Hi all

I intend to use MIDIIO128 using touch sensors to send Midi to software.  I will have LEDs connected to DOUT to indicate the state of the stops.  The software will send MIDI whenever a stop is changed, either in response to DIN messages or from it's combination action to the DOUTs.

The question I have is for the following scenario...

Action 1  I switch a stop off with the touch sensor.  The LED turns off because the software sends the code to turn the DOUT off because it has turned a stop off in reponse to the DIN. (FORWARDIO is NOT enabled.)

Action 2  I press a piston so the software sends a MIDI code from it's combination action to turn that stop on so the LED turns on.  Am I correct in assuming that the LED is on but the DIN is off (the most recent state from the touch sensor).  The next touch will be a turn on command and it would need another touch to turn it off.

If this is the case, is it possible to have the "toggle state" of a DIN respond to a change in DOUT such that it is always opposite. ie a touch on the DIN will always send a MIDI code to do the opposite to the DOUT state?

I understand that enabling FORWARDIO reflects the DIN state in the DOUT.  Is it possible to do the opposite?

ie  software sends midi to DOUT which changes toggle state of DIN to the opposite regardless of what state the DIN was already in.

I assume that this may invole a rewrite of parts of the MIDIIO128 code.  How is the current toggle state of the DIN stored?  Can I change it?

Sorry for so many questions.  If they have been answered elswhere then please point me there as I haven't been able to find them.

Many thanks

Graham

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...