If you would like to interupt or stop a melody whilst it is being played, you can do this by passing the block an empty array. For example, to stop the melody on button B pressed:


  1. Add a start melody block and a set variable to array  block.

  2. Remove the initial values from the array to create an empty array block.

  3. Replace the melody with the empty array.