pass the options object to the next class

This commit is contained in:
tambien 2018-07-28 10:20:36 -04:00
parent 1507fe25db
commit 38897d7bae
4 changed files with 4 additions and 4 deletions

View file

@ -15,7 +15,7 @@ define(["Tone/core/Tone", "Tone/signal/Signal", "Tone/core/Gain", "Tone/core/Aud
Tone.Volume = function(){
var options = Tone.defaults(arguments, ["volume"], Tone.Volume);
Tone.AudioNode.call(this);
Tone.AudioNode.call(this, options);
/**
* the output node

View file

@ -11,7 +11,7 @@ define(["Tone/core/Tone", "Tone/core/Param", "Tone/core/AudioNode"], function(To
Tone.Delay = function(){
var options = Tone.defaults(arguments, ["delayTime", "maxDelay"], Tone.Delay);
Tone.AudioNode.call(this);
Tone.AudioNode.call(this, options);
/**
* The maximum delay time initialized with the node

View file

@ -13,7 +13,7 @@ define(["Tone/core/Tone", "Tone/core/Param", "Tone/type/Type", "Tone/core/AudioN
Tone.Gain = function(){
var options = Tone.defaults(arguments, ["gain", "units"], Tone.Gain);
Tone.AudioNode.call(this);
Tone.AudioNode.call(this, options);
/**
* The GainNode

View file

@ -15,7 +15,7 @@ define(["Tone/core/Tone", "Tone/type/Type", "Tone/core/AudioNode", "Tone/core/Ti
Tone.Param = function(){
var options = Tone.defaults(arguments, ["param", "units", "convert"], Tone.Param);
Tone.AudioNode.call(this);
Tone.AudioNode.call(this, options);
/**
* The native parameter to control