Skip to content

Is it possible to "interleave" patterns in Strudel? #1201

Answered by felixroos
mystery-house asked this question in Q&A
Discussion options

You must be logged in to vote

hey @mystery-house ! doing stuff like this is really a bit difficult with the way patterns work.. these list based sequencing techniques are very easy to implement when you have state (e.g. a pointer to the currently active element). Patterns don't have any state, which is why it's harder to represent something like this. It might still be possible, if you're able to find a pure/stateless function that returns the events for a certain time frame. Of course, precalculating is also an option, and probably sufficient in most cases.

On that note, it might be better if you'd not generate a mini notation string, but instead throw your events into timeCat, which allows you to specify events with…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@felixroos
Comment options

@mystery-house
Comment options

Comment options

You must be logged in to vote
1 reply
@mystery-house
Comment options

Answer selected by mystery-house
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