PV_RecordBuf stores FFT data to a buffer for use by a number of PV UGens. See also PV_RecordBuf, PV_PlayBuf, PV_BinPlayBuf and PV_BufRd.
WARNING: Resynth of a FFTs with large window sizes may cause CPU spikes. Unlike PV_BufRd, PV_BinBufRd needs to have an FFT Ugen preceding it in the processing chain.
PV_BinPlayBuf.new(buffer, playbuf, rate: 1.0, offset: 0.0, binStart: 0, binSkip: 1, numBins: 1, loop: 0.0, clear: 0)
The FFT buffer to fill data into.
The buffer to read frames of FFT data from.
With binStart, binSkip and numBins, you have some control over which bins to synthesize. e.g.
- binStart = 0
- binSkip = 2
- numBins = 10
- bins to synthesize = [0, 2, 4, 6, 8, 10, 12, 14, 16, 18].
All values for these parameters are truncated to integers when used by the UGens (you can't start an bin 1.5 or skip 2.3).