I wrote a simple web application using the web audio API, but I noticed that when I noteOn(0)
command for a given source, and then noteOff(0)
, and then finally with another noteOn(0)
command, the sound turns on, turns off (as expected), but then does not turn on with the third command.
Is there something I'm doing wrong? It is so simple, I can show you the code, but I feel it is superfluous. Perhaps I need to reassign the buffer for the source after noteOff
, but I cannot imagine how it should have been used.
source share