Skip to content

docs/billie_jean.md: update scheduler section from ms time= to ticks= - #1032

Merged
bwhitman merged 1 commit into
mainfrom
billie-jean-ticks-doc
Aug 2, 2026
Merged

docs/billie_jean.md: update scheduler section from ms time= to ticks=#1032
bwhitman merged 1 commit into
mainfrom
billie-jean-ticks-doc

Conversation

@bwhitman

@bwhitman bwhitman commented Aug 2, 2026

Copy link
Copy Markdown
Collaborator

The "Using the AMY scheduler" section of the Billie Jean tutorial still taught the removed millisecond e.time API (and the old config_reverb() call), while BillieJeanScheduled.ino has already moved on. This brings the doc in line with what the sketch actually does:

  • tempo set by event (e.tempo = 116), reverb configured by event fields;
  • scheduling via e.ticks[0] absolute sequencer ticks, with the grace_ticks lead the sketch uses (and an explanation of why: events scheduled in the past are dropped);
  • the loop clocked off sequencer_ticks() instead of millis();
  • a short explanation of the 48 PPQ sequencer clock, the amy_ticks_per_tick eighth-note conversion, and a one-line pointer to the period/tag forms of ticks.

The first two sections (BillieJeanDrums, BillieJeanDrumsBass) are untouched: those sketches deliberately keep wall-clock time themselves with millis(), and still do — their millis_per_tick is sketch-local, not the removed AMY API.

Doc-only change.

🤖 Generated with Claude Code

The "Using the AMY scheduler" section still taught the removed
millisecond e.time API and the old config_reverb() call. Bring it in
line with what BillieJeanScheduled.ino actually does now: tempo set by
event, reverb configured by event fields, scheduling via e.ticks[0]
absolute sequencer ticks with a grace_ticks lead (past events are
dropped), and the loop clocked off sequencer_ticks() instead of
millis(). Also explains the 48 PPQ sequencer clock and the
amy_ticks_per_tick conversion, and mentions the period/tag forms in
passing.

The first two sections are untouched: their sketches deliberately keep
wall-clock time themselves with millis(), and still do.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@bwhitman
bwhitman merged commit f02d367 into main Aug 2, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant