To play the xylophone, tap the "x" key so that the bars turn brown. You can either click on the bars or press the letter key of the bar you would like to play. Note: For high C, press the space bar. To play the metallophone, press the "m" key to turn the bars gray. Then use the following keys: 1 is C 2 is D 3 is E 4 is F 5 is G 6 is A 7 is B 8 is C'
I credit Megan for presenting the challenge. She wanted to create a xylophone and a metallophone. 1. Took her code from MrsWMusic for Orff Xylophone. 2. I duplicated her sprites, renamed them to have the same note name, but changed X to M, and changed the color from brown to gray. 3. I copied the code and changed the look so that it showed the new sprites, as well as changed the music code from marimba to music box. 4. Finally, I added that when you type "x" the bars are marimba color and play that sound. When you type "m", the bars are metal and play that sound.