home/ atoms/ tidal-time-shift

The ~> and <~ operators shift a Tidal pattern forward or backward in time by a fraction of a cycle

The ~> operator shifts a pattern forward in time (delays it) by a given fraction of a cycle; <~ shifts backward. (0.25 ~>) delays a pattern by a quarter cycle. Applied conditionally with every 3 (0.25 <~), the pattern shifts backwards by a quarter cycle every third cycle, creating a syncopation effect. The shift amount is in cycle units, so integer shifts produce no audible difference (the pattern loops). Fractional shifts from 0 to just below 1 give all musically distinct offsets. This is useful for creating call-and-response effects, off-beat accents, or gradually drifting polyrhythms.

Examples

// delay by quarter cycle:
d1 $ (0.25 ~>) $ sound "bd*2 cp*2 hh sn"
// shift backward every 3rd cycle:
d1 $ every 3 (0.25 <~) $ sound "bd*2 cp*2 hh sn"

Assessment

Write a pattern where a clap plays normally for two cycles, then shifts by one eighth of a cycle on the third cycle, creating a syncopated feel. Use every and <~ or ~>.

“You can use the `~>` and `<~` functions to shift patterns forwards or backwards in time, respectively.”
corpus · tidalcycles-userbase-tutorial-community-function-by-function · chunk 7