For this week’s project, I focused on modifying/amalgamating three pre-existing projects: The ml5 pitch detection game, this Firebase Submit & Retrieve example, and Vibert Thio’s Whack-A-Mole project.

https://editor.p5js.org/snh345/full/9YIswBMJB

There’s a chance it doesn’t run properly here - try this.

The Twist

This looks very similar to the pitch detection game on the surface, but there are a couple complications. First, rather than picking a random note each time, the sequence is locked in. Second, the whole thing is timed with a timer running in the background. When the sequence has been completed, it cuts to a “game over” screen with your timer displayed and a button to submit your score with a name attached. Although I wasn’t able to figure out the styling yet, there’s also a way to return scores in order of speed, which would be a valuable thing to try out. I won’t tell you what exactly the song you’re singing is, but it’s basically a very niche joke that’s not that funny. Oh well.