Build a Drum Machine Problem

Hi all,
Am wondering why my “Drum Machine” project is failing the “tests” .
Yet I strongly believe it fits all Users stories requested for.
PROJECT LINK
codepen.io/theAccountant/pen/MWWRxQZ?editors=1111

ERROR LOG

No audio plays when the Q key is pressed : expected true to be false
AssertionError: No audio plays when the Q key is pressed : expected true to be false
    at o.<anonymous> (https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:549:15104)
    at o.e (https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:425:182)
    at Object.get (<anonymous>)
    at Object.e [as get] (https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:92:1380)
    at Function.n.isFalse (https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:574:1349)
    at https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:657:176603
    at NodeList.forEach (<anonymous>)
    at a.<anonymous> (https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:657:176461)
    at c (https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:598:35224)
    at i.p.run (https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:598:35154)```
1 Like

I think it’s because although you can play your machine with the mouse I tried with the keyboard and no sound plays

2 Likes

Woow, great. I followed your advise and it looks like that was actually the issue.
Fixing that resolved the problem.
Though, probably I still believe the user stories / instructions at https://www.freecodecamp.org/learn/front-end-libraries/front-end-libraries-projects/build-a-drum-machine should have been more explicit. They should have stated that pressing a key on the keyboard functionality was required.
Anyways, thanks for helping me out. You’re the best.

1 Like

I had exactly the same problem. Fixed it now.

1 Like