Initial whack at sample-accurate automation.

I think it works, but some serious regression testing is in order...
Fix note numbers being displayed as C3.33333 and F#5.34256

This was a regression when porting to Python3, as Python3
handles division differently...
Minor changes to the debugger project
Remove some unused variables...