added midi pad on/off function to statemachine