Reverb
class Effect ↳ extends Effect<ReverbOptions>
Simple convolution created with decaying noise. Generates an Impulse Response Buffer with Tone.Offline then feeds the IR into ConvolverNode. The impulse response generation is async, so you have to wait until ready resolves before it will make a sound.
Inspiration from ReverbGen. Copyright (c) 2014 Alan deLespinasse Apache 2.0 License.
Constructor
Section titled “Constructor”new Reverb(decay?: number)Parameters
-
decay
numberoptionalThe amount of time it will reverberate for.
new Reverb(options?: Partial<ReverbOptions>)Parameters
- options
Partial<ReverbOptions>optional
Properties
Section titled “Properties”ready: Promise<void>↳ inherited from Effect
wet: Signal<"normalRange">The wet control is how much of the effected will pass through to the output. 1 = 100% effected signal, 0 = 100% dry signal.
preDelay
Section titled “preDelay”preDelay: TimeThe amount of time before the reverb is fully ramped in.
Methods
Section titled “Methods”generate()
Section titled “generate()”generate(): Promise<Reverb>Generate the Impulse Response. Returns a promise while the IR is being generated.
Returns Promise<Reverb> Promise which returns this object.
getDefaults()
Section titled “getDefaults()”static
getDefaults(): ReverbOptionsReturns all of the default options belonging to the class.
Returns ReverbOptions
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()