ctrlinit — Sets the initial values for a set of MIDI controllers.
ichnl -- MIDI channel number (1-16)
ictlno1, ictlno1, etc. -- MIDI controller numbers (0-127)
ival1, ival2, etc. -- initial value for corresponding MIDI controller number, in the range 0 to 127.
![]() |
Note |
---|---|
If this opcode is to be used with a scaling opcode such as ctrl7 the ival1.. should be 127*(initial-min)/(max-min) |
Here is an example of the ctrlinit opcode. It uses the file ctrlinit.csd.
Example 195. Example of the ctrlinit opcode.
See the sections Real-time Audio and Command Line Flags for more information on using command line flags.