selectMiscellaneousselectselect
Select sample value based on audio-rate comparisons.
Description
Select sample value from three based on audio-rate comparisons of
two signals.
Syntaxaout select a1, a2, aless, aequal, amorePerformancea1, a2 -- audio signals that are compared.
aless -- audio signal selected if a1[n]<a2[n]
aequal -- audio signal selected if a1[n]=a2[n]
asig -- audio signal selected if a1[n]>a2[n]
The comparison is made sample by sample.
Examples
Here is an example of the select opcode. It uses the file select.csd.
Example of the select opcode.See the sections Real-time Audio and Command Line Flags for more information on using command line flags.See alsoMiscellaneous opcodesCreditsBy: &namejohn; 2016New in vesion 6.09