An Ocarina appears in A Link to the Past; however, it is called the Flute in English versions due to a mistranslation (although it was originally "Ocarina" in Japanese versions). It once belonged to a young boy who set out in search of the Golden Power and never returned. Link finds this instrument buried in the Haunted Grove, and uses it to call the boy's duck which can take him to different parts of the Light World.
The Ocarina of Time plays an important role in both Ocarina of Time and Majora's Mask. In Ocarina of Time, Link uses it to solve various puzzles, travel to the entrance of temples, open the way to the Door of Time, and even change from day to night in an instant. The Ocarina of Time in Majora's Mask is also used for a wide variety of purposes, with its most prominent being traveling back in time to the Dawn of the First Day by playing the "Song of Time."
In The Minish Cap, Link has a blue ocarina called the Ocarina of Wind. It functions like the flute from A Link to the Past, in which the young hero uses it to call a bird known as Zeffa, which can take him to parts of Hyrule where Link has uncovered a Wind Crest.
BS The Legend of Zelda
In BS The Legend of Zelda, the graphic for the Recorder has been changed to resemble the Ocarina from A Link to the Past. The Ocarina is found in the third Dungeon, which can be used to warp to other dungeons. When the Ocarina is played on a pad near the eastern shore, the sixth dungeon will appear.
The Ocarina is also a class of Weapon used by Skull Kid. It is associated with Darkness. Skull Kid plays the Ocarina to coordinate attacks between Tatl, Tael and himself. He can transform it into a trumpet to summon and control the Puppets from Twilight Princess to attack on his behalf.
The default Ocarina is the Fairy Ocarina, based after its namesake. The second form of the Ocarina is the Lunar Ocarina, followed by Majora's Ocarina.
Against Captains and Warriors, Skull Kid summons a Puppet behind them. It then rapidly attacks the target by flailing its arms until Skull Kid comes up and finishes off with an energy attack. Against Giant Bosses, Skull Kid uppercuts the monster with Tatl and Tael and then strikes it down while surrounded in a dark barrier.
Within a frontal radius, Skull Kid uses the dark magic of Majora's Mask and rattles his head while a large magic circle appears. Enemies are drawn into the circle and are rapidly damaged. Skull Kid then ends the attack with an energy burst.
Upon activation, Skull Kid stomps the ground in anger, bursting in dark energy. The Focus Spirit Attack has Skull Kid kick a miniature Moon into the air before kicking it again at the enemies in front of him. He then mockingly spanks his behind at them afterwards. When the Focus Spirit gauge is depleted, Skull Kid holds his head and squirms violently until dark power is unleashed, damaging enemies around him.