midion2 kchn, knum, kvel, ktrig
Sends noteon and noteoff messages to the MIDI OUT port when triggered by a value different than zero.
kchn – MIDI channel
knum – MIDI note number
kvel – note velocity
ktrig – trigger input signal (normally 0)
Similar to midion, this opcode sends noteon and noteoff messages to the MIDI out port, but only when ktrig is non-zero. This opcode is can work together with the output of the trigger opcode.
1998 (New in Csound version 3.492)