Tone.Gate
↳ EXTENDS ToneTone.Gate only passes a signal through when the incoming signal exceeds a specified threshold. To do this, Gate uses a Tone.Follower to follow the amplitude of the incoming signal. A common implementation of this class is a Noise Gate.
CONSTRUCTOR
new Tone.Gate ( [threshold
] , [ attack
] , [ release
]
)
DEFAULTS
{
attack
:
0.1
,
release
:
0.1
,
threshold
:
-40
}
EXAMPLE
var gate = new Tone.Gate(-30, 0.2, 0.3).toMaster();
var mic = new Tone.Microphone().connect(gate);
//the gate will only pass through the incoming
//signal when it's louder than -30db