mirror of
https://github.com/Tonejs/Tone.js
synced 2024-11-15 08:17:07 +00:00
making logs more descriptive
This commit is contained in:
parent
405a841db0
commit
8a74995f2e
1 changed files with 2 additions and 2 deletions
|
@ -251,7 +251,7 @@ define(["Tone/core/Tone", "Tone/signal/Signal",
|
|||
* env.triggerAttack("+0.5", 0.2);
|
||||
*/
|
||||
Tone.Envelope.prototype.triggerAttack = function(time, velocity){
|
||||
this.log("attack", time);
|
||||
this.log("triggerAttack", time, velocity);
|
||||
time = this.toSeconds(time);
|
||||
var originalAttack = this.toSeconds(this.attack);
|
||||
var attack = originalAttack;
|
||||
|
@ -309,7 +309,7 @@ define(["Tone/core/Tone", "Tone/signal/Signal",
|
|||
* env.triggerRelease();
|
||||
*/
|
||||
Tone.Envelope.prototype.triggerRelease = function(time){
|
||||
this.log("release", time);
|
||||
this.log("triggerRelease", time);
|
||||
time = this.toSeconds(time);
|
||||
var currentValue = this.getValueAtTime(time);
|
||||
if (currentValue > 0){
|
||||
|
|
Loading…
Reference in a new issue