Tone.Clip
↳ EXTENDS Tone.SignalBaseClip the incoming signal so that the output is always between min and max.
CONSTRUCTOR
new Tone.Clip (min
, max
)
min
the minimum value of the outgoing signal
type:
number
max
the maximum value of the outgoing signal
type:
number
EXAMPLE
var clip = new Tone.Clip(0.5, 1);
var osc = new Tone.Oscillator().connect(clip);
//clips the output of the oscillator to between 0.5 and 1.