SuperCollider CLASSES

ProxySynthDef

synth def that wraps ugen graph
Inherits from: SynthDef : Object

Description

(used internally by NodeProxy)

for inner workings see jitlib_fading

Class Methods

*new (name, func, rates, prependArgs, makeFadeEnv: true, channelOffset: 0, chanConstraint, rateConstraint)

Arguments:

name

like in SynthDef. todo: add variants.

func

like in SynthDef. todo: add variants.

rates

like in SynthDef. todo: add variants.

prependArgs

like in SynthDef. todo: add variants.

makeFadeEnv

if true it constructs a fader envelope and adds controls for gate and fadeTime

channelOffset

a constant offset that is added to the out number

chanConstraint

max numChannels for the synthdef. If ugenfunc returns a larger array, it wraps

rateConstraint

a symbol like \audio, \control or \scalar.

*sampleAccurate

*sampleAccurate = value

always use OffsetOut, if set to true (default: false)

Inherited class methods

Instance Methods

Inherited instance methods

Undocumented instance methods

-canFreeSynth

-canFreeSynth = value

-canReleaseSynth

-canReleaseSynth = value

-numChannels

-numChannels = value

-rate

-rate = value

Examples

a = ProxySynthDef("xtest", { SinOsc.ar(400) * 0.1 });

a.add;

x = Synth("xtest");
x.release;


/*

    if the resulting number of channels is larger than a given channelConstraint,
    it behaves according to the rate: audio rate signals are wrapped around
    a smaller channel size, control rate signals are not (the exceeding channels are left out)

*/