tone
Version:
A Web Audio framework for making interactive music in the browser.
27 lines (26 loc) • 1.03 kB
TypeScript
import { RecursivePartial } from "../core/util/Interface";
import { ModulationSynth, ModulationSynthOptions } from "./ModulationSynth";
export declare type AMSynthOptions = ModulationSynthOptions;
/**
* AMSynth uses the output of one Tone.Synth to modulate the
* amplitude of another Tone.Synth. The harmonicity (the ratio between
* the two signals) affects the timbre of the output signal greatly.
* Read more about Amplitude Modulation Synthesis on
* [SoundOnSound](https://web.archive.org/web/20160404103653/http://www.soundonsound.com:80/sos/mar00/articles/synthsecrets.htm).
*
* @example
* import { AMSynth } from "tone";
* const synth = new AMSynth().toDestination();
* synth.triggerAttackRelease("C4", "4n");
*
* @category Instrument
*/
export declare class AMSynth extends ModulationSynth<AMSynthOptions> {
readonly name: string;
/**
* Scale the oscillator from -1,1 to 0-1
*/
private _modulationScale;
constructor(options?: RecursivePartial<AMSynthOptions>);
dispose(): this;
}