vincrMathematical Operations:Comparators and Accumulatorsvincrvincr
Accumulates audio signals.
Descriptionvincr increments one audio variable with another signal, i.e. it accumulates output.
Syntaxvincr accum, aincrPerformanceaccum -- audio-rate accumulator variable to be incremented
aincr -- incrementing signal
vincr (variable increment) and clear are intended to be used together. vincr stores the result of the sum of two audio variables into the first variable itself (which is intended to be used as an accumulator in polyphony). The accumulator is typically a global variable that is used to combine signals from several sources (different instruments or instrument instances) for further processing (for example, via a global effect that reads the accumulator) or for outputting the combined signal by some means other than one of the out opcodes (eg. via the fout opcode). After the accumulator is used, the accumulator variable should be set to zero by means of the clear opcode (or it will explode).
Examples
The following example uses the vincr opcode. It uses the file vincr.csd.
Example of the vincr opcode.See the sections Real-time Audio and Command Line Flags for more information on using command line flags.
This is another example uses the vincr opcode. It uses the file vincr-complex.csd.
See alsoFile Input and OutputComparators and AccumulatorsCreditsAuthor: &namegabriel;Italy1999New in Csound version 3.56