framebufferMiscellaneousframebufferframebuffer
Read audio signals into 1 dimensional k-rate arrays and vice-versa with a specified buffer size.
DescriptionPlugin opcode in framebuffer.framebuffer converts audio signals into a 1 dimensional k-rate array of a specified size. The size of the k-rate array must be larger than ksmps. It also converts 1 dimensional k-rate arrays back into audio signals, the k-rate arrays must be uninitialised and also be larger than ksmps in size. The buffer works as a circular buffer and may be used for doing frame based audio processing such as spectral analysis/synthesis or as a simple delay line.
Syntaxkout[] framebuffer ain, isizeaout framebuffer kin, isizeInitializationisize -- The amount of samples that the buffer will contain.
Performancekout[] -- The k-rate array output from the framebuffer.
ain -- The audio signal input to the framebuffer.
aout -- The audio signal output from the framebuffer.
kin -- The k-rate array input to the framebuffer.
Examples
Here is a simple example of the framebuffer opcode. It uses the file framebuffer.csd.
Example of the framebuffer opcode.See the sections Real-time Audio and Command Line Flags for more information on using command line flags.See AlsoArray-based spectral opcodesCreditsAuthor: Edward Costello;NUIM, 2015New in version 6.06