Phaser
class Effect ↳ extends LFOStereoEffect<PhaserOptions>
Phaser is a phaser effect. Phasers work by changing the phase of different frequency components of an incoming signal. Read more on Wikipedia. Inspiration for this phaser comes from Tuna.js.
const phaser = new Tone.Phaser({
frequency: 15,
octaves: 5,
baseFrequency: 1000
}).toDestination();
const synth = new Tone.FMSynth().connect(phaser);
synth.triggerAttackRelease("E3", "2n");Constructor
Section titled “Constructor”Parameters
new Phaser(options?: Partial<PhaserOptions>)Parameters
- options
Partial<PhaserOptions>optional
Properties
Section titled “Properties”frequency
Section titled “frequency”read-only ↳ inherited from LFOStereoEffect
frequency: Signal<"frequency">The frequency of the tremolo.
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.
baseFrequency
Section titled “baseFrequency”baseFrequency: FrequencyThe the base frequency of the filters.
octaves
Section titled “octaves”octaves: numberThe number of octaves the phase goes above the baseFrequency
Methods
Section titled “Methods”start()
Section titled “start()”↳ inherited from LFOStereoEffect
start(time?: Time): thisStart the tremolo.
Parameters
- time
Timeoptional
Returns this
stop()
Section titled “stop()”↳ inherited from LFOStereoEffect
stop(time?: Time): thisStop the tremolo.
Parameters
- time
Timeoptional
Returns this
sync()
Section titled “sync()”↳ inherited from LFOStereoEffect
sync(): thisSync the effect to the transport.
Returns this
unsync()
Section titled “unsync()”↳ inherited from LFOStereoEffect
unsync(): thisUnsync the filter from the transport
Returns this
getDefaults()
Section titled “getDefaults()”static
getDefaults(): PhaserOptionsReturns all of the default options belonging to the class.
Returns PhaserOptions
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()