Scheduling and Loop Fixes

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