The music box is essentially an integrated noteblock circuit. Simply program it with music - either using one of the demo tracks or by writing your own, and give it power to run the music. A redstone pulse will cycle the music once; for looping music, use shaft power.
Activation: Redstone for one cycle, shaft power for looped music
Data Entry Mode:
Sequential Power Input: Any side