Ocarina of Time (ocarina)
This instrument is used to play various songs with varied effects, in The Legend of Zelda: A Link to the Past, it is referred to as a "flute", but a few years later, with the release of The Legend of Zelda: Link's Awakening it's name was changed to Ocarina.
 How to Obtain
A Link to the Past-- It is dug up with the shovel in the northwest corner of the map near the center of the dark world.
The Legend of Zelda: Link's Awakening--Go into the dream shrine (located in Mabe Villiage) and with the Pegasus boots, defeat the enemies and break through the rocks to open the chests on the top of the shrine, the chest on the left has the Ocarina.
Ocarina of Time-- After beating the three stages as a child, and get all three spiritual stones, go to Hyrule Castle and there will be a small cutscene when you approach the drawbridge, Zelda will toss the Ocarina to you and it will land in the water, dive down to receive the Ocarina of Time.
Majora's Mask-- On the last day, in the clock tower at midnight, the doors will open up, and you will have to face the skull kid. At the moment, you are unable to correctly fight him, so just shoot him with a bubble, he will drop the ocarina and you have to run and get it, you will automatically learn the Song of time when you pick it up.
 Majora's Mask
Getting this weapon is part of the storyline in the first 3 days. The Ocarina can be used by anyone, but depending on who you are playing as, it will appear as something different:
Link-Ocarina of Time
Deku Scrub-Deku Pipes
No matter what instrument you are using, you can play any of the songs to get your tasks accomplished. All of the songs are found here.
Related ThreadsCreate Your Own Ocarina Song for Majora's Mask/Ocarina of Time. - last post @ Feb 22, 2015
Ocarina of time, possibly the best game ever? - last post by @ Aug 18, 2006
The Ocarina of Time Revival Movement - last post by @ Aug 14, 2007
Famitsu Reviews Ocarina of Time 3D - last post by @ Jun 8, 2011
Why ocarina of time is not the best zelda game - last post by @ Feb 6, 2014