Scheduling and Loop Fixes

Fixed some bugs in note scheduling. Looping behavior is now more correct and doesn't require any special hacks. I moved the default loop to be two measures starting at tick 0. I've updated the timebase demo to reflect the changes.