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:
- Add a start melody block and a set variable to array block.
- Remove the initial values from the array to create an empty array block.
- Replace the melody with the empty array.