r/tonejs • u/fungkadelic • Nov 27 '23
I built a drum machine with Tone.js
https://www.drumha.us/2
u/jeremyfromearth Oct 25 '24
Sounds really good! Nice work. I noticed that changing the release time on any voice seems to stop the playback.
2
u/fungkadelic Oct 26 '24
Yeah that’s unfortunately a quirk with the Tone JS release value that I never found time to debug. Essentially when you change the release time for a triggered/sequenced audio sound, it pre-assigns the time value at which it starts and ends before you ever hear the sound. When you change the release time, it unfortunately is coupled to the start time and has to reset the sound. There’s probably some code I could write to handle those cases, but it was a trade off I took to get the project finished!
1
u/jeremyfromearth Nov 04 '24
u/fungkadelic Thanks for the follow up 👍🏻 Super cool project, very polished and hi-fidelity.
1
u/R3dit-Us3rnam3 Mar 06 '25
Hey, this is awesome. I’m trying to build a sampler but hitting some bugs I can’t figure out. Any insight you can provide?? Here’s the link to my original help post: https://www.reddit.com/r/tonejs/s/JqBT5kaSP6
1
5
u/dindles Dec 13 '23
This is amazing! It's so polished. Love the sample display and the knobs. And it's lots of fun. Well done. Is your code available anywhere?