Skip to content
Tone.js

PingPongDelay

class Effect ↳ extends StereoXFeedbackEffect<PingPongDelayOptions>

PingPongDelay is a feedback delay effect where the echo is heard first in one channel and next in the opposite channel. In a stereo system these are the right and left channels. PingPongDelay in more simplified terms is two Tone.FeedbackDelays with independent delay values. Each delay is routed to one channel (left or right), and the channel triggered second will always trigger at the same interval after the first.

const pingPong = new Tone.PingPongDelay("4n", 0.2).toDestination();
const drum = new Tone.MembraneSynth().connect(pingPong);
drum.triggerAttackRelease("C4", "32n");
new PingPongDelay(delayTime?: Time, feedback?: number)

Parameters

  • delayTime Time optional

    The delayTime between consecutive echos.

  • feedback number optional

    The amount of the effected signal which is fed back through the delay.

new PingPongDelay(options?: Partial<PingPongDelayOptions>)

Parameters

read-only

delayTime: Signal<"time">

the delay time signal

read-only ↳ inherited from StereoFeedbackEffect

feedback: Signal<"normalRange">

The amount of feedback from the output back into the input of the effect (routed across left and right channels).

read-only ↳ inherited from StereoEffect

input: Gain

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: "PingPongDelay"

read-only ↳ inherited from StereoEffect

output: CrossFade

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

read-only ↳ inherited from StereoEffect

wet: Signal<"normalRange">

The wet control, i.e. how much of the effected will pass through to the output.

dispose(): this

Dispose and disconnect

Returns this

static

getDefaults(): PingPongDelayOptions

Returns all of the default options belonging to the class.

Returns PingPongDelayOptions