Probably this thread will have TK thinking about adding a few more notes by now. Tk is the name and it’s up to him to make alterations even in the documentation, though we all know he’s busy, but nonetheless, we are not at liberty to make changes.
But maybe between us we can do a full document for the Wiki all about using Midi In to trigger events. I suspect it’s not used much, but it has many useful aspects to it, especially when there are more than 1 core and one of them is mainly used for a master controller, as I expect you do with organ setups.
It gets a little confusing with 3 byte events other than NOTE ON Vel. 0 or >0.
For controllers, mostly v=0 would be off, but not all of them.
Poly Aftertouch seems ok with v=0 being off.
Pitchbend would not be right for v=0 to be off. Even though it is a 3 byte event, it differs from the others in that it is EX vv1 vv2, a 14bit data send. The documentation shows it as E0 7f vv, but that is to make the editor just use a 0-7f value to keep things constant through out the app., though it is converted into a 14 bit message in the app.
;; sending three bytes (7bit converted to 14bit)MIDI_EVNT_Send_Ex ; Pitch Bend
movff MIDI_EVNT0, WREG
call MIOS_MIDI_TxBufferPut
SET_BSR MIDI_EVNT0
movlw 0x00
BRA_IFCLR MIDI_EVNT_VALUE, 6, BANKED, MIDI_EVNT_Send_ExLow
rlf MIDI_EVNT_VALUE, W, BANKED
andlw 0x7e
MIDI_EVNT_Send_ExLow
call MIOS_MIDI_TxBufferPut
movff MIDI_EVNT_VALUE, WREG
andlw 0x7f
call MIOS_MIDI_TxBufferPut
rgoto MIDI_EVNT_Send_End
So vv1=64 & vv2=64 would be considered off (ie. center). I don’t know if this one is worth using for midi in control to the DOUT, it would only go off when you pitch bent fully down, (well…it might have a use).
The DOUT is just a switch and will turn off at 0 and on at anything >0 (I’m not sure here)? So maybe it’s only good for midi events where that is appropriate.
Having said that, there’s no reason why the inventive use of midi to get what one wants, needs to be ristricted.
I don’t see much discussion about it, seems like some experimenting, and then a document, might encourage people to make more us of it?
Lastly, re: the DOUT comments, they’re not in the .ini file (at least not mine) so I’m not sure about that.
Also what about the relay.ini file? And the midio_presets.inc, have you tried editing this?
bassman