downsampSignal Modifiers:Sample Level Operatorsdownsampdownsamp
Modify a signal by down-sampling.
Description
Modify a signal by down-sampling.
Syntaxkres downsamp asig [, iwlen]Initializationiwlen (optional) -- window length in samples over which the audio signal is averaged to determine a downsampled value. Maximum length is ksmps; 0 and 1 imply no window averaging. The default value is 0.
Performancedownsamp converts an audio signal to a control signal by downsampling. It produces one kval for each audio control period. The optional window invokes a simple averaging process to suppress foldover.
Examples
Here is an example of the downsamp opcode. It uses the file downsamp.csd.
Example of the downsamp opcode.See the sections Real-time Audio and Command Line Flags for more information on using command line flags.See alsoSample Level Operators