LFClipNoise:
Filter:
Classes | UGens > Generators > Stochastic

LFClipNoise : LFNoise0 : UGen : AbstractFunction : Object

Clipped noise
Source: Noise.sc

Description

Randomly generates the values -1 or +1 at a rate given by the nearest integer division of the sample rate by the freqargument. It is probably pretty hard on your speakers!

Class Methods

LFClipNoise.ar(freq: 500, mul: 1, add: 0)

From superclass: LFNoise0

LFClipNoise.kr(freq: 500, mul: 1, add: 0)

From superclass: LFNoise0

Arguments:

freq

Approximate rate at which to generate random values.

mul

Output will be multiplied by this value.

add

This value will be added to the output.

Inherited class methods

Instance Methods

Inherited instance methods

Examples

(
SynthDef("help-LFClipNoise", { arg out=0;
    Out.ar(out,
        LFClipNoise.ar(1000, 0.25)
    )
}).play;
)

//modulate frequency
(
SynthDef("help-LFClipNoise", { arg out=0;
    Out.ar(out,
        LFClipNoise.ar(XLine.kr(1000, 10000, 10), 0.25)
    )
}).play;
)

//use as frequency control
(
SynthDef("help-LFClipNoise", { arg out=0;
    Out.ar(out,
        SinOsc.ar(
            LFClipNoise.ar(4, 200, 600),
            0, 0.2
        )
    )
}).play;
)