|
|
|
|
|
by errozero
1454 days ago
|
|
I made a library based on this article which I use as a starting point for all my music app projects. It's useful as the main timing code for things like drum machine and sequencers etc.
https://github.com/errozero/beatstepper |
|
The way I understand it, Web Audio API only lets one schedule audio source nodes with start and stop methods. As I needed to schedule something that was not audio related, I ended up creating silent oscillators of almost zero length and relying on the 'ended' event.
But running a scheduled callback is better! It's not immediately clear to me how you do it. Can you maybe explain your code a little?