If you are talking about blue and red (maybe fire red and leaf green i havent played those before) you get them in the safari zone right by the house where you get surf
On both games, you go to lavender town, in the tower. Talk to the dude with a brown hat, and he'll upgrade you're pokegear. Go to snorlax. Use the pokegear. Go to the radio. Put the dot up at the top...
there is not a poke flute you have to upgrade your poke gear at lavender town town at kanto radio station but first go cerulean city then go to route 9 then when you get to the four small trees go...