DynKlang:
Filter:
Classes | UGens > Generators > Deterministic

DynKlang : UGen : AbstractFunction : Object

Dynamic sine oscillator bank
Source: FSinOsc.sc

Description

DynKlang is a bank of sine oscillators. It is less efficient than Klang, as it is basically a wrapper around SinOsc UGens in order to provide a similar interface to Klang.

Unlike Klang, parameters in specificationsArrayRef can be changed after it has been started.

Class Methods

DynKlang.ar(specificationsArrayRef, freqscale: 1.0, freqoffset: 0.0)

DynKlang.kr(specificationsArrayRef, freqscale: 1.0, freqoffset: 0.0)

Arguments:

specificationsArrayRef

a Ref to an Array of three Arrays:

frequencies
an Array of oscillator frequencies.
amplitudes
an Array of oscillator amplitudes, or nil. If nil, then amplitudes default to 1.0
phases
an Array of initial phases, or nil. If nil, then phases default to 0.0

freqscale

a scale factor multiplied by all frequencies at initialization time.

freqoffset

an offset added to all frequencies at initialization time.

Inherited class methods

Instance Methods

Inherited instance methods

Examples