first you go to chinatown, then you go to the big rainbow colored house. When you get into the house you talk to the wizard of jaws.. then he gives you the azerflute...
i have herd that if you beat the battle tower 5 times in one day then go stat to the pokemart you can talk to the man in the green suit and he will give you the azerflute