MCPcopy Create free account
hub / github.com/Code-Bullet/Jump-King / Tone

Function Tone

libraries/p5.sound.js:3076–3087  ·  view source on GitHub ↗
(inputs, outputs)

Source from the content-addressed store, hash-verified

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;

Callers

nothing calls this directly

Calls 1

isUndefFunction · 0.85

Tested by

no test coverage detected