initc21Real-time MIDI:Inputinitc21initc21
Initializes the controllers used to create a 21-bit MIDI value.
Description
Initializes the controllers used to create a 21-bit MIDI value.
Syntaxinitc21 ichan, ictlno1, ictlno2, ictlno3, ivalueInitializationichan -- MIDI channel (1-16)
ictlno1 -- most significant byte controller number (0-127)
ictlno2 -- medium significant byte controller number (0-127)
ictlno3 -- least significant byte controller number (0-127)
ivalue -- floating point value (must be within 0 to 1)
Performanceinitc21 can be used together with both midic21 and ctrl21 opcodes for initializing the first controller's value. ivalue argument must be set with a number within 0 to 1. An error occurs if it is not. Use the following formula to set ivalue according with midic21 and ctrl21 min and max range:
ivalue = (initial_value - min) / (max - min)
See alsoMIDI input and InitializationCreditsAuthor: &namegabriel;ItalyNew in Csound version 3.47Thanks goes to &namerasmus; for pointing out the correct MIDI channel and controller number ranges.