Skip to content

docs/BillieJean: drop the grace_ticks workaround, now unneeded - #1038

Merged
dpwe merged 1 commit into
mainfrom
dpwe/drop-grace-ticks
Aug 2, 2026
Merged

docs/BillieJean: drop the grace_ticks workaround, now unneeded#1038
dpwe merged 1 commit into
mainfrom
dpwe/drop-grace-ticks

Conversation

@dpwe

@dpwe dpwe commented Aug 2, 2026

Copy link
Copy Markdown
Collaborator

Follow-up to #1036.

A due-or-overdue one-off ticks= now plays immediately instead of being dropped, so the BillieJeanScheduled example no longer needs to aim grace_ticks into the future to stop the first notes of a cycle being thrown away.

  • Removes grace_ticks from the sketch and from the walkthrough's copy of it. The doc had already dropped the use but kept the now-unused declaration and its now-false comment (// Scheduled events in the past are ignored).
  • Makes amy_ticks_per_tick 24.0f in both. They had drifted apart (24.0f in the doc, 24.0 in the .ino), and an unsuffixed double literal pulls in software double emulation on 32-bit targets — the same reason sequencer_recompute() keeps its arithmetic single-precision.
  • Corrects docs/synth.md, which still told readers "If an absolute tick is in the past, AMY will ignore it."

The doc's code block and the .ino are now byte-identical through schedule_notes(), verified programmatically.

make test: 122 tests pass.

🤖 Generated with Claude Code

A due-or-overdue one-off ticks= plays immediately as of #1036, so the
BillieJeanScheduled example no longer has to aim 8 ticks into the future to
keep the first notes of a cycle from being thrown away.

Removes grace_ticks from the sketch and from the walkthrough's copy of it
(the doc had dropped the use but kept the now-unused declaration and its
now-false comment), and makes amy_ticks_per_tick 24.0f in both -- they had
drifted apart, and an unsuffixed double literal pulls in software double
emulation on 32-bit targets.

Also corrects docs/synth.md, which still told readers an absolute tick in
the past would be ignored.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@dpwe
dpwe merged commit 3d9dcf4 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