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 the start melody block and replace the melody with a create array with 0 block
  2. Switch to Javascript and remove the 0 to create an empty array