outipcReal-time MIDI:Outputoutipcoutipc
Sends MIDI program change messages at i-rate
Description
Sends MIDI program change messages at i-rate
Syntaxoutipc ichn, iprog, imin, imaxInitializationichn -- MIDI channel number (1-16)
iprog -- program change number in floating point
imin -- minimum floating point value (converted in MIDI integer value 0)
imax -- maximum floating point value (converted in MIDI integer value 127 (7 bit))
Performanceoutipc (i-rate program change output) sends program change messages. It works only with MIDI instruments which recognize them. It can drive a different value of a parameter for each note currently active.
It can scale an i-value floating-point argument according to the imin and imax values. For example, set imin = 1.0 and imax = 2.0. When the ivalue argument receives a 2.0 value, the opcode will send a 127 value to the MIDI OUT device. When the ivalue argument receives a 1.0 value, it will send a 0 value. i-rate opcodes send their message once during instrument initialization.
Examples
Here is an example of the outipc opcode. It uses the file outipc.csd.
Example of the outipc opcode.See the sections Real-time Audio and Command Line Flags for more information on using command line flags.See alsoMIDI Message OutputCreditsAuthor: &namegabriel;ItalyNew in Csound version 3.47Thanks goes to &namerasmus; for pointing out the correct MIDI channel and controller number ranges.