Playing a song

Now that we have an audio sequencer, we can go into the game panel and add some code to play a song in practice mode. As the song plays it will press the correct keys on the screen, just like a player piano. Later we will add code to check for player interaction to see how good they follow along with the song.

Get HTML5 Web Application Development By Example Beginner's guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.