mdelaySignal I/O:Signal Outputmdelaymdelay
A MIDI delay opcode.
Description
A MIDI delay opcode.
Syntaxmdelay kstatus, kchan, kd1, kd2, kdelayPerformancekstatus -- status byte of MIDI message to be delayed
kchan -- MIDI channel (1-16)
kd1 -- first MIDI data byte
kd2 -- second MIDI data byte
kdelay -- delay time in seconds
Each time that kstatus is other than zero, mdelay outputs a MIDI message to the MIDI out port after kdelay seconds. This opcode is useful in implementing MIDI delays. Several instances of mdelay can be present in the same instrument with different argument values, so complex and colorful MIDI echoes can be implemented. Further, the delay time can be changed at k-rate.
Examples
Here is an example of the mdelay opcode. It uses the file mdelay.csd.
Example of the mdelay opcode.See the sections Real-time Audio and Command Line Flags for more information on using command line flags.See alsoMIDI Message OutputCreditsAuthor: &namegabriel;ItalyNovember 1998New in Csound version 3.492