initc7Real-time MIDI:Inputinitc7initc7
Initializes the controller used to create a 7-bit MIDI value.
Description
Initializes MIDI controller ictlno with ivalueSyntaxinitc7 ichan, ictlno, ivalueInitializationichan -- MIDI channel (1-16)
ictlno -- controller number (0-127)
ivalue -- floating point value (must be within 0 to 1)
Performanceinitc7 can be used together with both midic7 and ctrl7 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 midic7 and ctrl7 min and max range:
ivalue = (initial_value - min) / (max - min)
Examples
Here is an example of the initc7 opcode. It uses the file initc7.csd.
Example of the initc7 opcode.See the sections Real-time Audio and Command Line Flags for more information on using command line flags.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.