Skip to content

Stopping a Pattern #356

Discussion options

You must be logged in to vote

Save a reference to the pattern player and call .stop() on it:

player = my_pattern.play(...)
player.stop()

Patterns themselves are just stateless iterables. When you call my_pattern.play() you're creating a PatternPlayer object which maintains the state of iteration through the pattern, and coordinates between that iterator, the clock, and the synthesis execution context (typically a Server).

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by macduff111
Comment options

You must be logged in to vote
1 reply
@macduff111
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