Skip to content

Pattern questions #363

Discussion options

You must be logged in to vote

Lots of stuff in these questions, so I'll do separate comments per question.

Callbacks. Yes, you can run a callback when you play a pattern. The callback will fire for every event emitted from the pattern plus an explicit event when the pattern starts, and an explicit event when the pattern stops. The signature of the callback looks like callback(pattern_player, clock_context, pattern_event, pattern_event_priority):

  • pattern_player is the PatternPlayer object orchestrating playing your pattern.
  • clock_context describes the state of the clock that the pattern player is using at the moment it plays each event. That includes the actual time the event is happening, vs the desired time the even…

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by josiah-wolf-oberholtzer
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@josiah-wolf-oberholtzer
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants