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

I apologize, the vibration switch detects when the person wearing it steps. so that it plays the pattern for every footstep. I believe the vibration switch is for the boolean stepping.