countInstrument Control:Sensing and Controlcountcount
Get the next value from a counter.
DescriptionPlugin opcode in counter.
Get the next value from a counter by adding the increment and
keeping the counter in the declared range.
Syntaxkval count icntInitializationicnt -- the handle of a counter object from
a call to cntCreate.
Performance
Calculate the next value from the counter object and return that
value.
kval -- returned value.
Examples
Here is an example of the count opcode. It uses the file counter.csd.
Example of the count opcode.See the sections Real-time Audio and Command Line Flags for more information on using command line flags.See alsoProgram Flow Control: CounterCreditsBy: &namejohn; June 2020New in version 6.15