With the help of music blocks you can compose your own music in Minecraft.
It's very complicated, but as the screenshot and the video (see below) show, it's doable. There is not much to explain, just try it out! It's worth it for sure!
You can also do the whole thing a little smaller and just play a short melody from a few notes. The sheet music can usually be found on the internet.