QUICK-REF - CsoundManual - Top of this section - Previous - Contents - Index - Next 

ioutc, koutc, ioutc14, koutc14, ioutpb, koutpb, ioutat, koutat, ioutpc, koutpc, ioutpat, koutpat

    ioutc        ichn, inum, ivalue, imin, imax
    koutc        kchn, knum, kvalue, kmin, kmax
    ioutc14      ichn, imsb, ilsb, ivalue, imin, imax
    koutc14      kchn, kmsb, klsb, kvalue, kmin, kmax
   
    ioutpb       ichn, ivalue, imin, imax
    koutpb       kchn, kvalue, kmin, kmax
    ioutat       ichn, ivalue, imin, imax
    koutat       kchn, kvalue, kmin, kmax
    ioutpc       ichn, iprog, imin, imax
    koutpc       kchn, kprog, kmin, kmax
   
    ioutpat      ichn, inotenum, ivalue, imin, imax
    koutpat      kchn, knotenum, kvalue, kmin, kmax

DESCRIPTION

Send a single Channel message to the MIDI OUT port.

PERFORMANCE

ichn, kchn - MIDI channel number (0-15)

inum, knum - controller number (0-127 for examp. 1 = ModWheel; 2 = BreathControl etc.)

ivalue, kvalue - floating point value

imin, kmin - minimum floating point value (converted in midi integer value 0)

imax, kmax - maximum floating point value (converted in midi integer value 127 (7 bit) or 16383 (14 bit))

imsb, kmsb - most significant byte controller number when using 14 bit parameters

ilsb, klsb - less significant byte controller number when using 14 bit parameters

iprog, kprog - program change number in floating point

inotenum, knotenum - MIDI note number (used in polyphonic aftertouch messages)

ioutc and koutc (i and k-rate midi controller output) send controller messages to MIDI OUT device. iout14 and kout14 (i and k-rate midi 14 bit controller output) send a pair of controller messages. These opcodes can drive 14 bit parameters on MIDI instruments that recognize them. The first control message contains the most significant byte of i(k)value argument while the second message contains the less significant byte. i(k)msb and i(k)lsb are the number of the most and less significant controller.

ioutpb and koutpb (i and k-rate pitch bend output) send pitch bend messages.

ioutat and koutat (i and k-rate aftertouch output) send aftertouch messages. ioutat and koutat (i and k-rate aftertouch output) send aftertouch messages.

ioutpc and koutpc (i and k-rate program change output) send program change messages.

ioutpat and koutpat (i and k-rate polyphonic aftertouch output) send polyphonic aftertouch messages.

These opcodes can drive a different value of a parameter for each note currently active. They work only with MIDI instruments which recognize them. N.B. All these opcodes can scale the i(k)value floating-point argument according with i(k)max and i(k)min values. For example, setting i(k)min = 1.0 and i(k)max = 2.0, when i(k)value argument receives a 2.0 value, the opcode will send a 127 value to MIDI OUT device, while when receiving a 1.0 it will send a 0 value. I-rate opcodes send their message once during instrument initialization. K-rate opcodes send a message each time the MIDI converted value of argument i(k)value changes.

AUTHOR:

Gabriel Maldonado
Italy
May 1997


QUICK-REF - CsoundManual - Top of this section - Previous - Contents - Index - Next 

HTML Csound Manual - © Jean Piché & Peter J. Nix, 1994-97