cntCreateInstrument Control:Sensing and ControlcntCreatecntCreate
Create a counter object.
DescriptionPlugin opcode in counter.
Create a counter object.
Syntaxicnt cntCreate [imax, imin, inc]Initializationimax -- optional maximum value for the
counter, defaulting to 1.
imin -- optional minimun value for the counter,
defaulting to 0.
inc -- optional increment for the
counter, defaulting to 1.
icnt -- a handle for the counter.
` Performance
Creates a counter object which loops between
imin and imax in
steps of inc. Used without an argument,
using the defaults creates a flip-flop.
Examples
Here is an example of the cndCreate opcode. It uses the file counter.csd.
Example of the cntCreate opcode.See the sections Real-time Audio and Command Line Flags for more information on using command line flags.
A musical example featuring the cntCreate opcode: NervousHappyBirthday_Cucchi.csd by Stefano Cucchi.
See alsoProgram Flow Control: CounterCreditsBy: &namejohn; June 2020New in version 6.15