Re:Ask HN: What Are You Working On? (October 2024)
by sovietswag on Monday October 28, 2024 @10:45AM
(#41971525)
Random tip... I noticed the volume sliders only take effect when you stop dragging the knob. You can use the 'oninput' event for the slider to set its value as the user moves it around. Something like:
volume_slider.oninput = function() { audio.volume = volume_slider.value; }
Re:Ask HN: What Are You Working On? (October 2024)
by stereosteve on Monday October 28, 2024 @12:26PM
(#41972975)
Thanks! I made this change.
I used to play along to Jamey Aebersold CDs back in the day, and now on YouTube there are many Play Along videos... but I thought it would be fun to make one where you have more control.
Here's the demo, feel free to upload a track if you have one handy! https://jamz.stereosteve.com/
The source code is here: https://github.com/stereosteve/playalong
It uses this wave surfer multitrack example, which is a pretty nice vanilla JS project: https://wavesurfer.xyz/examples/?multitrack.js
Now that the basics are working... hopefully I'll actually spend some time actually making some practice tracks!