This was accomplished by following this video tutorial: https://www.youtube.com/watch?v=VuN8qwZoego&ab_channel=WesBos
A nice little drum kit that was an experience for me to make, and I got a chance to do something practical with Javascript thanks to it!