midion2 Real-time MIDI:Note Output midion2 midion2 Sends noteon and noteoff messages to the MIDI OUT port. Description Sends noteon and noteoff messages to the MIDI OUT port when triggered by a value different than zero. Syntax midion2 kchn, knum, kvel, ktrig Performance kchn -- MIDI channel (1-16) knum -- MIDI note number (0-127) kvel -- note velocity (0-127) 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. Examples Here is an example of the midion2 opcode. It uses the file midion2.csd. Example of the midion2 opcode. See the sections Real-time Audio and Command Line Flags for more information on using command line flags. See also Note-on/Note-off Output Credits Author: &namegabriel; Italy 1998 New in Csound version 3.492 Thanks goes to &namerasmus; for pointing out the correct MIDI channel and controller number ranges.