When the sprite touches something blue, it plays a high note. When the sprite touches something red, it plays a low note. Click the green flag to start.
I used sensing blocks as color triggers for the notes to be played. A random operator was added to vary the direction of the green ball.