setModulator() is not reset on playNote()
-
I stumbled upon this, when trying to manage sound synthesis.
Reproduction:- use setModulator() with a low frequency, e.g. 0.5 or 1 and a sound speed of 10 (= 1 sec) . This will cause that a triangle wave form, used to modulate the sound, will reach its peak only once during playing a note. So you can hear the modulation very nicely, starting again raising from low to high frequency.
- use playNote() to play a note, wait until you do not hear it anymore and replay the note
- you will hear that the modulation does not start from the lowest point, where it was starting when playing the note the first time