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");Constructor
Section titled “Constructor”new PingPongDelay(delayTime?: Time, feedback?: number)Parameters
-
delayTime
TimeoptionalThe delayTime between consecutive echos.
-
feedback
numberoptionalThe amount of the effected signal which is fed back through the delay.
new PingPongDelay(options?: Partial<PingPongDelayOptions>)Parameters
- options
Partial<PingPongDelayOptions>optional
Properties
Section titled “Properties”feedback
Section titled “feedback”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: GainThe 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 ↳ inherited from StereoEffect
output: CrossFadeThe 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.
Methods
Section titled “Methods”getDefaults()
Section titled “getDefaults()”static
getDefaults(): PingPongDelayOptionsReturns all of the default options belonging to the class.
Returns PingPongDelayOptions
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()