StereoConvolution2L:
Filter:
Classes | UGens > FFT | UGens > Convolution

StereoConvolution2L : MultiOutUGen : UGen : AbstractFunction : Object

Stereo real-time convolver with linear interpolation
Source: FFT2.sc

Description

Strict convolution with fixed kernel which can be updated using a trigger signal. There is a linear crossfade between the buffers upon change.

Like Convolution2L, but convolves with two buffers and outputs a stereo signal. This saves one FFT transformation per period, as compared to using two copies of Convolution2L.

Useful applications could include stereo reverberation or HRTF convolution.

See Steven W Smith, The Scientist and Engineer's Guide to Digital Signal Processing, chapter 18: http://www.dspguide.com/ch18.htm

Class Methods

StereoConvolution2L.ar(in, kernelL, kernelR, trigger: 0, framesize: 2048, crossfade: 1, mul: 1.0, add: 0.0)

Arguments:

in

processing target.

kernelL

buffer index for the fixed kernel of the left channel, may be modulated in combination with the trigger.

kernelR

buffer index for the fixed kernel of the right channel, may be modulated in combination with the trigger.

trigger

update the kernel on a change from <= 0 to > 0.

framesize

size of FFT frame, must be a power of two (512, 1024, 2048, 4096 are standard choices). Convolution uses twice this number internally. Note that the convolution gets progressively more expensive to run for higher powers! The maximum value you can use is 2^16=16384. (This upper limit is half of "SC_FFT_MAXSIZE" defined in the SC source code.) Larger convolutions than this can be done using PartConv.

crossfade

The number of periods over which a crossfade is made. The default is 1. This must be an integer.

mul
add

Inherited class methods

Instance Methods

Inherited instance methods

Examples