In the final Chase with Shadow you have to go a while into the level and go to the top of all the green long floaty thingys with arrows. Eventually, while on top of one of these, you will see another one with orange electric fence around it. Jump above the fence and go to the top. You will see a platform with a white circle on it. Jump on the platform and there is the flute!