Want a minimal music composing program to import into another project? This program by Kevin is a stripped-down version of the composing piano (with the improvements from the Karplus name animation). The keyboard has been thrown away, as have all the x and y variables. The composer now works with notes of a scale, which it then converts to pitches on a major scale (C major by default, but transposing is trivial by changing the base note). There are only 5 sprites, all of which are always hidden.
Just click on the stage to start or stop the music. You may have to wait for the music to get to the end of the phrase.