home/ atoms/ cinecer0-time-sync-functions

CineCer0's natural/every/round/chop functions align video playback to Estuary's cycle grid

CineCer0 provides explicit time-sync functions for video: natural shift $ aligns the video’s start to the first beat of the current measure; every cycles shift $ loops the video stretched/compressed to fit a given number of cycles; round shift $ adjusts duration to the nearest number of full measures; roundMetre shift $ snaps to a power-of-2 measure count; chop start end cycles shift $ plays a sub-segment of the video at a given rate. These enable musically meaningful video montage in ensemble live performance.

Examples

every 4 0 $ video "url"           -- loop video in 4-cycle window
chop 0.0 0.5 2 0 $ video "url"   -- play first half, 2 cycles long

Assessment

A 30-second video should loop in sync with a 128 BPM track. Explain which CineCer0 time function you would use and what parameter to choose for a 4-cycle window.

“adjusts the length to the nearest number of measures in Estuary's tempo”
corpus · estuary-collaborative-browser-live-coding-platform-networked · chunk 18