it already does this :).  checkSteadyPitch toggles the play button, and if there is a significant change then the play button is turned off and we empty the buffer.  "reset ring if pitch isn't steady"