docs(amyboard): document MIDI clock sync (following and sending)#1028
Merged
Conversation
python.md covered sending MIDI notes (midi_out + amy.AMY_MIDI) but not clock sync. Add a "Syncing to MIDI clock" subsection: - Following: tulip.external_midi_sync(True/False) to slave AMYboard to an external F8 clock (off by default); F8 sets tempo, FA/FC start/stop while enabled. - Sending: emit FA/F8/FC with tulip.midi_out(), and a tempo-locked clock generator via tulip.seq_add_callback() (48 PPQ internal vs 24 PPQ MIDI -> period=2). The FA/FC-gating and "sync off restores internal clock" semantics described here land with shorepine/amy#748.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a Syncing to MIDI clock subsection to
docs/amyboard/python.md. #1024 documented sending MIDI notes (midi_out+amy.AMY_MIDI) but clock sync wasn't covered, and the receive switch (tulip.external_midi_sync) wasn't in the AMYboard docs at all.Following an external clock
tulip.external_midi_sync(True/False)— off by default; slaves AMYboard's sequencer to incomingF8(24 ppqn sets tempo), withFA/FCstarting/stopping it while enabled.Sending clock
FA/F8/FCviatulip.midi_out().tulip.seq_add_callback(fn, 0, 2)— AMY's sequencer is 48 PPQ and MIDI clock is 24 PPQ, soperiod=2emits a tick every other sequencer tick.All API calls verified against
tulip/shared/modtulip.c,tulip/shared/tsequencer.c, andsequencer.py.🤖 Generated with Claude Code