BrenyBeast has uploaded a video that shows the basics of creating music in Minecraft,
By utilizing the unique properties of the note blocks, he designs a wall of switches that allows the user to create complicated and well timed loops of music from the music blocks.
If your too lazy to build it yourself, he's also included a download link for the level
LINK.