Follower
class Component ↳ extends ToneAudioNode<FollowerOptions>
Follower is a simple envelope follower. It’s implemented by applying a lowpass filter to the absolute value of the incoming signal.
+-----+ +---------------+Input +--> Abs +----> OnePoleFilter +--> Output +-----+ +---------------+Constructor
Section titled “Constructor”new Follower(smoothing?: Time)Parameters
-
smoothing
TimeoptionalThe rate of change of the follower.
new Follower(options?: Partial<FollowerOptions>)Parameters
- options
Partial<FollowerOptions>optional
Properties
Section titled “Properties”read-only
input: InputNodeThe input node or nodes. If the object is a source, it does not have any input and this.input is undefined.
output
Section titled “output”read-only
output: OutputNodeThe output nodes. If the object is a sink, it does not have any output and this.output is undefined.
smoothing
Section titled “smoothing”smoothing: TimeThe amount of time it takes a value change to arrive at the updated value.
Methods
Section titled “Methods”getDefaults()
Section titled “getDefaults()”static
getDefaults(): FollowerOptionsReturns all of the default options belonging to the class.
Returns FollowerOptions
Inherited members
Section titled “Inherited members”- From
ToneWithContext: context, blockTime, sampleTime, get(), immediate(), now(), set(), toFrequency(), toSeconds(), toTicks() - From
Tone: debug, version, disposed, toString() - From
ToneAudioNode: channelCount, channelCountMode, channelInterpretation, numberOfInputs, numberOfOutputs, chain(), connect(), disconnect(), fan(), toDestination(), toMaster()