new pot debouncing code

* a lot simpler potentiometer debouncing code
* fixed incorrect calculation of modifier notes from pots