I’m currently working on the Drum Machine project in the Front-End Libraries course, and I have hit a snag.
I have two banks of audio sources (like in the example project), and I can’t seem to get the audio to switch from one bank to another when I press the ‘Change Bank’ button. The bank state does change, as can be seen from the ID being displayed, but the audio does not. What am I doing wrong?
Here is the Codepen link of the project: https://codepen.io/arunmuralidharan/pen/jOqZEBP