Surface flute modes in a rippled magnetic field