Add a compile-time option to test the loop functionality...
Don't calculate adjusted_start_beat in the loop, since it's now local to
the region and not dependent on which region it's in...