Convolution

final case class Convolution(in: D, kernel: D, kernelLen: I, kernelUpdate: B, mode: I) extends SingleOut[Double]

A UGen that convolves an input signal with a fixed or changing filter kernel. kernelUpdate is read synchronous with in, and while it is zero the most recent kernel is reused (making it possible to use more efficient calculation in the frequency domain). When kernelUpdate becomes 1, a new kernel is polled.

For example, if you want to update the kernel every ten sample frames, then kernelUpdate could be given as Metro(10).tail or Metro(10, 1). If the kernel is never updated, then kernelUpdate could be given as constant zero. If a new kernel is provided for each input sample, the value could be given as constant one.

Value parameters:
in

the signal to be filtered

kernel

the filter kernel. This is read in initially and when kernelUpdate is one.

kernelLen

the filter length in sample frames. One value is polled whenever a new kernel is required.

kernelUpdate

a gate value read synchronous with in, specifying whether a new kernel is to be read in (non-zero) after the next frame, or if the previous kernel is to be reused (zero, default).

mode

currently unused; leave at zero

Companion:
object
trait Serializable
trait SingleOut[Double]
trait Lazy[Double]
trait GE[Double]
trait Expander[UGenInLike[Double]]
trait Lazy
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Inherited methods

final def name: String
Inherited from:
UGenSource
def productElementNames: Iterator[String]
Inherited from:
Product
def productIterator: Iterator[Any]
Inherited from:
Product