mirror of
https://github.com/Tonejs/Tone.js
synced 2024-11-16 08:38:00 +00:00
send values in decibels
This commit is contained in:
parent
28a86eeba1
commit
829934d0e6
1 changed files with 2 additions and 2 deletions
|
@ -22,7 +22,7 @@ define(["Tone/core/Tone"], function(Tone){
|
|||
* defined in "Tone/core/Bus"
|
||||
*
|
||||
* @param {string} channelName
|
||||
* @param {number} amount
|
||||
* @param {number} amount the amount of the source to send to the bus. in Decibels.
|
||||
* @return {GainNode}
|
||||
*/
|
||||
Tone.prototype.send = function(channelName, amount){
|
||||
|
@ -30,7 +30,7 @@ define(["Tone/core/Tone"], function(Tone){
|
|||
Buses[channelName] = this.context.createGain();
|
||||
}
|
||||
var sendKnob = this.context.createGain();
|
||||
sendKnob.gain.value = this.defaultArg(amount, 1);
|
||||
sendKnob.gain.value = this.dbToGain(this.defaultArg(amount, 1));
|
||||
this.output.chain(sendKnob, Buses[channelName]);
|
||||
return sendKnob;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue