ctrlpresetReal-time MIDI:Inputctrlpresetctrlpreset
Defines a preset for MIDI controllers.
Description
Defines a preset like a ctrlinit for MIDI controllers.
Syntaxkpreset ctrlpreset ktag, kchnl, kctlno1, [kctlno2] [, kctlno3] ...Initialization
At initialisation time an internal data structure is created to
save the preset, ensuring it is sufficiently large.
Performancekpreset -- the numeric tag for where the
preset it stored. If ktag is not zero kpreset will be the same
as ktag.
ktag -- the tag for this preset; either a
strictly positive integer or zero if the system is to allocate
an unused preset.
kchanl -- the MIDI channel to which te
preset refers.
kctlno1, kctlno1,
etc. -- MIDI controller numbers and values (0-127). up to 16
initialisation values are permitted.
Examples
Here is an example of the ctrlpreset opcode. It uses the file ctrls.csd.
Example of the ctrlpreset opcode.See the sections Real-time Audio and Command Line Flags for more information on using command line flags.See alsoMIDI input and InitializationCreditsAuthors: &namejohn; and Richard BoulangerNew in Csound version 6.16