Sort of fixed the overlapping notes bug. Tweaked the parameter controls a bit. Changed the loop length from 1 to 2 measures.
Preparing to merge with develop.