# Sequencing with Transport **Track:** Audio-Visual & Generative Music — Advanced Creative Coding — proposed (50) **Framework / surface:** Tone.js **Level:** Medium **Prerequisites:** Synthesis Fundamentals, Arrays **In one line:** Part/Sequence/Loop, musical time, drift-free scheduling. ## Theory, aesthetics & inspiration Musical time needs a clock that does not drift. Tone.js, built by Yotam Mann atop the Web Audio API, provides a Transport — a global timeline addressed in bars, beats, and subdivisions rather than raw seconds — onto which Part, Sequence, and Loop schedule events. The crucial technique is look-ahead scheduling: a coarse JavaScript timer wakes periodically and queues upcoming notes against the sample-accurate audio clock, sidestepping the jitter of setTimeout. Chris Wilson's "A Tale of Two Clocks" set out this pattern for the web. The payoff is rhythmic precision — patterns that lock, loop seamlessly, and stay in phase no matter how heavy the visual frame load.