Use Non-Frames Version Previous Page Next Page
MIDI Support: Note-on/Note-off

moscil, midion

          moscil     kchn, knum, kvel, kdur, kpause
          midion     kchn, knum, kvel

Description

Send a stream of noteon and noteoff 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 midion 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 algorithmically generated melodic lines. When current instrument is deactivated, the note played by current instance of moscil is forcedly truncated.

midion (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 midion 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 midion opcodes can appear in the same Csound instrument, allowing a counterpoint-style polyphony within a single instrument.

Deprecated Names

midion was originally called kon. As of Csound version 3.493, that name is deprecated. midion should be used instead of kon.

Author

Gabriel Maldonado
Italy
May 1997 (moscil new in Csound version 3.47)


Use Non-Frames Version Previous Page Next Page
MIDI Support: Note-on/Note-off