fix broken Warp patterns; add TICKS_PER_BEAT constant to determine clock granularity