Need help modifyin the code to use a vibration switch instead of an analog senso

I dont really need it to be based on analog. all i want it that when the person steps the vibration switch is triggered which would show up as a 1 and the pattern plays once then waits for the next step to trigger. I mean in my head it should be pretty simple 1 = play pattern once. 0 = do nothing.