Stopping a Pattern #356
-
Hi, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Save a reference to the pattern player and call
Patterns themselves are just stateless iterables. When you call |
Beta Was this translation helpful? Give feedback.
-
Also, nit about verbiage. SynthDefs don't receive anything. Think of them like classes or templates. When you issue a |
Beta Was this translation helpful? Give feedback.
Save a reference to the pattern player and call
.stop()
on it:Patterns themselves are just stateless iterables. When you call
my_pattern.play()
you're creating aPatternPlayer
object which maintains the state of iteration through the pattern, and coordinates between that iterator, the clock, and the synthesis execution context (typically aServer
).