Ocarina of Time has twelve songs: six that open the way forward or call your friends, and six warp songs from Sheik that take adult Link straight to each temple. There is also the Scarecrow's Song, which you write yourself. A song does nothing until you've learned it in the game.
Quick answers
Notes: A is the A button and the arrows are the C buttons. On Nintendo 3DS, A becomes L, C-Down becomes R, C-Right becomes Y, C-Left becomes X and C-Up becomes A.
Do I need the warp songs? Mostly they save time, but two matter: the Nocturne of Shadow is the way to the Shadow Temple's entrance, and young Link needs the Requiem of Spirit to reach the Spirit Temple.
The frogs: play the main songs (not the warp songs) to the frogs at Zora's River as young Link; the Song of Storms and their bug game each give a Piece of Heart.
Songs learned: 0 / 12
Tick each song as you learn it. Your ticks are saved in this browser only.
Main Songs 6
Zelda's Lullaby
Learned from: Impa, as you leave Hyrule Castle after meeting Princess Zelda (young Link, after the Deku Tree).
What it does: Play it on a Triforce symbol to open doors and trigger events. Proves Link's link to the Royal Family.
Saria's Song
Learned from: Saria, in the Sacred Forest Meadow, after you've met Zelda (young Link).
What it does: Talk to Saria from anywhere for hints. Also cheers up Mido, Darunia and the Skull Kid in the Lost Woods (for a Piece of Heart).
Epona's Song
Learned from: Malon, at Lon Lon Ranch: talk to her until she sings, then take out your ocarina (young Link).
What it does: Calls Epona once adult Link has won her from Ingo. Play it near a cow to fill an empty Bottle with milk.
Sun's Song
Learned from: The wall inside the Royal Family's Tomb at the back of Kakariko Graveyard: play Zelda's Lullaby on the Triforce symbol to open the tomb.
What it does: Turns day to night and night to day outdoors. Freezes ReDeads and Gibdos for a moment.
Song of Time
Learned from: Princess Zelda: after you collect the three Spiritual Stones, she throws you the Ocarina of Time into the castle moat as she flees.
What it does: Opens the Door of Time, and moves or makes vanish the blue Time Blocks.
Song of Storms
Learned from: The angry man in the Kakariko windmill, when adult Link takes out his ocarina.
What it does: Makes it rain, opens some grottos, drains the windmill well (as young Link, after you've learned it) and wins a Piece of Heart from the frogs.
Warp Songs 6
Minuet of Forest
Learned from: Sheik, in the Sacred Forest Meadow (adult Link, after getting past Mido in the Lost Woods).
What it does: Warps to the Sacred Forest Meadow, by the Forest Temple.
Bolero of Fire
Learned from: Sheik, on the broken bridge in Death Mountain Crater: stop the rolling Goron with a Bomb, go through the passage behind Darunia's statue and Hookshot across (adult Link).
What it does: Warps to Death Mountain Crater, by the Fire Temple.
What it does: Warps to Lake Hylia, by the Water Temple.
Nocturne of Shadow
Learned from: Sheik, in Kakariko Village after you've finished the Water Temple (adult Link).
What it does: Warps to the Kakariko Graveyard, by the Shadow Temple.
Requiem of Spirit
Learned from: Sheik, at the Desert Colossus: rescue the carpenters from Gerudo Fortress, cross the Haunted Wasteland, step into the Spirit Temple and come back out (adult Link).
What it does: Warps to the Desert Colossus, by the Spirit Temple; young Link uses it to enter the temple.
Prelude of Light
Learned from: Sheik, in the Temple of Time, when adult Link returns after the Forest Temple.
What it does: Warps to the Temple of Time.
Scarecrow's Song
As young Link, take out your ocarina by the lower scarecrow (Bonooru) on the east shore of Lake Hylia and play any eight notes; it remembers them, pauses and all. Come back as adult Link and play the same tune to him again. From then on, playing it where Navi turns green calls Pierre the scarecrow, who you can Hookshot up to reach high places, like the roof of the Lakeside Laboratory.