| 3074 | } |
| 3075 | }; |
| 3076 | var Tone = function (inputs, outputs) { |
| 3077 | if (isUndef(inputs) || inputs === 1) { |
| 3078 | this.input = this.context.createGain(); |
| 3079 | } else if (inputs > 1) { |
| 3080 | this.input = new Array(inputs); |
| 3081 | } |
| 3082 | if (isUndef(outputs) || outputs === 1) { |
| 3083 | this.output = this.context.createGain(); |
| 3084 | } else if (outputs > 1) { |
| 3085 | this.output = new Array(inputs); |
| 3086 | } |
| 3087 | }; |
| 3088 | Tone.prototype.set = function (params, value, rampTime) { |
| 3089 | if (this.isObject(params)) { |
| 3090 | rampTime = value; |