SuperCollider CLASSES (extension)

AmplitudeMod
ExtensionExtension

amplitude follower (deprecated)
Inherits from: UGen : AbstractFunction : Object

Description

This is a version of Amplitude that allows modulatable attack and release times. Amplitude now supports that, rendering this UGen redundant.

Class Methods

*ar (in: 0, attackTime: 0.01, releaseTime: 0.01, mul: 1, add: 0)

*kr (in: 0, attackTime: 0.01, releaseTime: 0.01, mul: 1, add: 0)

Arguments:

input

input signal.

attackTime

60dB convergence time for following attacks.

releaseTime

60dB convergence time for following decays.

Inherited class methods

Instance Methods

Inherited instance methods

Examples

(
// use input amplitude to control Pulse amplitude - use headphones to prevent feedback.
SynthDef("help-AmplitudeMod",{ arg out=0;
    Out.ar(out,
        Pulse.ar(90, 0.3, Amplitude.kr(SoundIn.ar))
    )
}).play;

)


(
// use input amplitude to control SinOsc frequency - use headphones to prevent feedback.
z = SynthDef("help-AmplitudeMod",{ arg out=0, attack=0.01, release=0.01;
    Out.ar(out,
        SinOsc.ar(
            AmplitudeMod.kr(
                    SoundIn.ar,
                    attack,
                    release,
                    1200,
                    400)
            , 0, 0.3)
    )
}).play;

)
z.set(\attack, 0.050)
z.set(\release, 0.125)

z.free