fix for potential stuck notes after changing keyboard mode
replace pulse wave oversampling with better performing anti-aliasing method