Skip to content
Tone.js

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
+-----+ +---------------+
new Follower(smoothing?: Time)

Parameters

  • smoothing Time optional

    The rate of change of the follower.

new Follower(options?: Partial<FollowerOptions>)

Parameters

read-only

input: InputNode

The input node or nodes. If the object is a source, it does not have any input and this.input is undefined.

read-only

name: string

The name of the class

Default: "Follower"

read-only

output: OutputNode

The output nodes. If the object is a sink, it does not have any output and this.output is undefined.

smoothing: Time

The amount of time it takes a value change to arrive at the updated value.

dispose(): this

Dispose and disconnect

Returns this

static

getDefaults(): FollowerOptions

Returns all of the default options belonging to the class.

Returns FollowerOptions