mirror of
https://github.com/Tonejs/Tone.js
synced 2024-11-16 00:27:58 +00:00
pass the options object to the next class
This commit is contained in:
parent
1507fe25db
commit
38897d7bae
4 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue