I’ve been working with Tone.Js recently and it’s been quite pleasant! Seems like it could handle this use case as well, fairly trivially. Worst part has been finding good royalty free sample sources for instruments.
There's also Tidal Cycles Drum Machines (and by the looks of things quite a few other tidal sample repos), but I'm not actually sure if this is public-domain
I dug around on Freesound, but the search UI is pretty poor and sometimes broken. Seems like a great resource, but in need of a lot of work on the discovery side of things.
Comments
I’ve been working with Tone.Js recently and it’s been quite pleasant! Seems like it could handle this use case as well, fairly trivially. Worst part has been finding good royalty free sample sources for instruments.
The VCSL is a great resource for public-domain samples, I know Strudel.cc uses it and probably quite a few others too
https://github.com/sgossner/VCSL
There's also Tidal Cycles Drum Machines (and by the looks of things quite a few other tidal sample repos), but I'm not actually sure if this is public-domain
https://github.com/geikha/tidal-drum-machines
I wrote a small utility to create rhythmic melodies with Tone.js: https://github.com/scraggo/tone-rhythm
It's used in a side project I've had around for a while: https://random-music-generators.onrender.com/
https://freesound.org/
https://github.com/tidalcycles/Dirt-Samples
I dug around on Freesound, but the search UI is pretty poor and sometimes broken. Seems like a great resource, but in need of a lot of work on the discovery side of things.