adding logging

This commit is contained in:
Yotam Mann 2018-06-20 23:12:17 -04:00
parent 0173e31c91
commit ea218c2921

View file

@ -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;