mirror of
https://github.com/Tonejs/Tone.js
synced 2024-11-15 08:17:07 +00:00
adding logging
This commit is contained in:
parent
0173e31c91
commit
ea218c2921
1 changed files with 2 additions and 0 deletions
|
@ -52,6 +52,7 @@ define(["Tone/core/Tone", "Tone/instrument/Instrument", "Tone/signal/Signal"], f
|
|||
* synth.triggerAttack("C4", "+0.5", 0.5);
|
||||
*/
|
||||
Tone.Monophonic.prototype.triggerAttack = function(note, time, velocity){
|
||||
this.log("triggerAttack", note, time, velocity);
|
||||
time = this.toSeconds(time);
|
||||
this._triggerEnvelopeAttack(time, velocity);
|
||||
this.setNote(note, time);
|
||||
|
@ -66,6 +67,7 @@ define(["Tone/core/Tone", "Tone/instrument/Instrument", "Tone/signal/Signal"], f
|
|||
* synth.triggerRelease();
|
||||
*/
|
||||
Tone.Monophonic.prototype.triggerRelease = function(time){
|
||||
this.log("triggerRelease", time);
|
||||
time = this.toSeconds(time);
|
||||
this._triggerEnvelopeRelease(time);
|
||||
return this;
|
||||
|
|
Loading…
Reference in a new issue