How do bagpipes work? Answer Wiki. In the simplest form, the bagpipes are one or more flute like tubes that are connected to a bag. The purpose of the bag is to allow the piper to produce continuous sound. By squeezing the bag, the piper maintains constant air pressure in the bag (and therefore continuous sound) even when breathing.