mirror of
https://github.com/Tonejs/Tone.js
synced 2024-11-16 08:38:00 +00:00
spread
is initialized with the constructor.
This commit is contained in:
parent
cd5705bb00
commit
1d7385d819
1 changed files with 4 additions and 2 deletions
|
@ -81,6 +81,7 @@ define(["Tone/core/Tone", "Tone/component/LFO", "Tone/effect/StereoEffect"], fun
|
|||
this.frequency.fan(this._lfoL.frequency, this._lfoR.frequency);
|
||||
this.depth.fan(this._lfoR.amplitude, this._lfoL.amplitude);
|
||||
this.type = options.type;
|
||||
this.spread = options.spread;
|
||||
};
|
||||
|
||||
Tone.extend(Tone.Tremolo, Tone.StereoEffect);
|
||||
|
@ -157,10 +158,11 @@ define(["Tone/core/Tone", "Tone/component/LFO", "Tone/effect/StereoEffect"], fun
|
|||
}
|
||||
});
|
||||
|
||||
/** Amount of stereo spread. When set to 0, both LFO's will be panned centrally.
|
||||
/**
|
||||
* Amount of stereo spread. When set to 0, both LFO's will be panned centrally.
|
||||
* When set to 180, LFO's will be panned hard left and right respectively.
|
||||
* @memberOf Tone.Tremolo#
|
||||
* @type {number}
|
||||
* @type {Degrees}
|
||||
* @name spread
|
||||
*/
|
||||
Object.defineProperty(Tone.Tremolo.prototype, "spread", {
|
||||
|
|
Loading…
Reference in a new issue