Next we will define what we want to happen when button A is pressed. To start, let's say when button A is pressed, a middle C will sound.

  • Go to the music tab and grab a "play tone at middle C for 1/2 a beat".
  • Place it inside of the if statement.

Now we can test out what we have so far by pressing button A on the virtual Circuit Playground Express on the left. Try pressing button A and see what happens (make sure your computer volume is on).

Neato!

This guide was first published on Apr 11, 2018. It was last updated on Apr 11, 2018.

This page (Adding Sound) was last updated on May 05, 2021.

Text editor powered by tinymce.