Where to get poke flute in Pokemon Blue?

After you save Mr. Fuji in Pokemon Tower, you go to his house and he will give you the pokeflute.