Open a1exwang opened 3 years ago
I agree that this would be a nice feature, especially since I did not find any way to implement this with oscillators or other libraries.
Passing velocity to the gain option seems to work e.g.
velocity
gain
let envelope = tone.play( note, when, { gain: velocity, sustain: 3.5, })
I agree that this would be a nice feature, especially since I did not find any way to implement this with oscillators or other libraries.