DynKlank:
Filter:
Classes | UGens > Generators > Deterministic | UGens > Filters > Linear

DynKlank : UGen : AbstractFunction : Object

Bank of resonators.
Source: FSinOsc.sc

Description

DynKlank is a bank of frequency resonators which can be used to simulate the resonant modes of an object. Each mode is given a ring time, which is the time for the mode to decay by 60 dB.

Unlike Klank, all parameters in DynKlank can be changed in real-time after it has been started.

NOTE: The amplitude of the resulting signal depends on the server's sample rate. See Ringz: Interaction with sample rate for details.

Class Methods

DynKlank.ar(specificationsArrayRef, input, freqscale: 1.0, freqoffset: 0.0, decayscale: 1.0)

DynKlank.kr(specificationsArrayRef, input, freqscale: 1.0, freqoffset: 0.0, decayscale: 1.0)

Arguments:

specificationsArrayRef

A Ref to an Array of three Arrays: [frequencies, amplitudes, ringtimes]

frequencies:
An Array of filter frequencies.
amplitudes:
An Array of filter amplitudes, or nil. If nil, then amplitudes default to 1.0.
ring times:
An Array of 60 dB decay times for the filters.

All subarrays, if not nil, should have the same length.

input

The excitation input to the resonant filter bank.

freqscale

A scale factor multiplied by all frequencies at initialization time.

freqoffset

An offset added to all frequencies at initialization time.

decayscale

A scale factor multiplied by all ring times at initialization time.

Inherited class methods

Instance Methods

Inherited instance methods

Examples

Four resonators each at maximum amplitude of 1.0 and ring times of 1 second, different exciters and no scaling:

NOTE: Watch the ` before the opening bracket of the parameter array! Also see Multichannel Expansion

Changing parameters in realtime: