mirror of
https://github.com/Tonejs/Tone.js
synced 2024-11-16 08:38:00 +00:00
effects default to 100% wet
This commit is contained in:
parent
5f29b82d3b
commit
63bce969c1
1 changed files with 3 additions and 3 deletions
|
@ -7,8 +7,8 @@ define(["Tone/core/Tone", "Tone/component/DryWet"], function(Tone){
|
|||
*
|
||||
* @constructor
|
||||
* @extends {Tone}
|
||||
* @param {number=} initalDry the starting dry value
|
||||
* defaults to 0.5 (50% dry / 50% wet)
|
||||
* @param {number=} [initalDry=0] the starting dry value
|
||||
* defaults to 100% wet
|
||||
*/
|
||||
Tone.Effect = function(initialDry){
|
||||
Tone.call(this);
|
||||
|
@ -40,7 +40,7 @@ define(["Tone/core/Tone", "Tone/component/DryWet"], function(Tone){
|
|||
this.effectReturn.connect(this.dryWet.wet);
|
||||
this.dryWet.connect(this.output);
|
||||
//setup values
|
||||
this.setDry(this.defaultArg(initialDry, 0.5));
|
||||
this.setDry(this.defaultArg(initialDry, 0));
|
||||
};
|
||||
|
||||
Tone.extend(Tone.Effect);
|
||||
|
|
Loading…
Reference in a new issue