Skip to content

Commit

Permalink
Update script.js
Browse files Browse the repository at this point in the history
  • Loading branch information
SGerrard08 authored Oct 29, 2024
1 parent e1b10ab commit f9c36b8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,12 @@ function playSound(key) {
break;

case "k":
var snare = new Audio("sounds/snare.mp3");
var snare = new Audio("sounds/kick-bass.mp3");
snare.play();
break;

case "l":
var kick = new Audio("sounds/kick-bass.mp3");
var kick = new Audio("sounds/snare.mp3");
kick.play();
break;

Expand All @@ -75,4 +75,4 @@ function buttonAnimation(currentKey) {
activeButton.classList.remove("pressed");
}, 100);

}
}

0 comments on commit f9c36b8

Please sign in to comment.