mirror of
https://github.com/Tonejs/Tone.js
synced 2024-11-16 16:48:00 +00:00
added AudioToGain method
This commit is contained in:
parent
054662e033
commit
c0bf3556dc
1 changed files with 9 additions and 1 deletions
|
@ -2,7 +2,7 @@ define(["Tone/core/Tone", "Tone/signal/Add", "Tone/signal/Subtract", "Tone/signa
|
|||
"Tone/signal/IfThenElse", "Tone/signal/OR", "Tone/signal/AND", "Tone/signal/NOT",
|
||||
"Tone/signal/GreaterThan", "Tone/signal/LessThan", "Tone/signal/Equal", "Tone/signal/EqualZero",
|
||||
"Tone/signal/GreaterThanZero", "Tone/signal/Abs", "Tone/signal/Negate", "Tone/signal/Max",
|
||||
"Tone/signal/Min", "Tone/signal/Modulo", "Tone/signal/Pow"],
|
||||
"Tone/signal/Min", "Tone/signal/Modulo", "Tone/signal/Pow", "Tone/signal/AudioToGain"],
|
||||
function(Tone){
|
||||
|
||||
"use strict";
|
||||
|
@ -169,6 +169,14 @@ define(["Tone/core/Tone", "Tone/signal/Add", "Tone/signal/Subtract", "Tone/signa
|
|||
return op;
|
||||
}
|
||||
},
|
||||
"a2g" : {
|
||||
regexp : /^a2g/,
|
||||
method : function(args, self){
|
||||
var op = new Tone.AudioToGain();
|
||||
self._eval(args[0]).connect(op);
|
||||
return op;
|
||||
}
|
||||
},
|
||||
},
|
||||
//binary expressions
|
||||
"binary" : {
|
||||
|
|
Loading…
Reference in a new issue