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

moscil, kon

    moscil       kchn, knum, kvel, kdur, kpause
    kon          kchn, knum, kvel

DESCRIPTION

Send stream of note-on and note-off messages to the MIDI OUT port.

PERFORMANCE

kchn - MIDI channel number (0-15) knum - note number (0-127)

kvel - velocity (0-127)

kdur - note duration in seconds

kpause - pause duration after each noteoff and before new note in seconds

moscil and kon are the most powerful MIDI OUT opcodes. moscil (midi oscil) plays a stream of notes of kdur duration. Channel, pitch, velocity, duration and pause can be controlled at k-rate, allowing very complex algorythmically generated melodic lines. When current instrument is deactivated, the note played by current instance of moscil is forcely truncated.

kon (k-rate note on) plays MIDI notes with current kchn, knum and kvel. These arguments can be varied at k-rate. Each time the MIDI converted value of any of these arguments changes, last MIDI note played by current instance of kon is immediately turned off and a new note with the new argument values is activated. This opcode, as well as moscil, can generate very complex melodic textures if controlled by complex k-rate signals.

Any number of moscil or kon opcodes can appear in the same Csound instrument, allowing a counterpoint-style polyphony within a single instrument.

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