Click on the stage to hear a musical note. As you move left and right (x position), the pitch changes. As you move up and down (y position), the instrument changes. To explore the space of possible notes and instruments, hold down the mouse button as you move the mouse around the stage.
I created this project in response to Challenge #3 in the "Getting Unstuck" initiative from the ScratchEd Team https://gettingunstuck.gse.harvard.edu The core of the program includes calculations for "scaling" the x and y positions of the mouse to the appropriate inputs for the pitch and instrument of the note. Also, I created a list of midi-notes so that the notes would be constrained to the white keys on the piano keyboard (a major scale). See the comments in the code for an explanation of how I did the calculations for the scaling.