What was the purpose of ancient Chinese flute?

To entertain themselves.the lovely sound of the flute makes us want to get up and dace.Ancient china created the flute in the 900 b.c. Ancient china invented the flute first.the they invented the recorder.after they invented the tuba.