Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support , in < > #886

Merged
merged 1 commit into from Jan 12, 2024
Merged

support , in < > #886

merged 1 commit into from Jan 12, 2024

Conversation

felixroos
Copy link
Collaborator

changes the mini parser slightly to support "," inside "< ... >", which allows using them for polymeters.
These two are now equivalent:

s("<bd rim, hh hh oh>*2")
s("{bd rim, hh hh oh}%2")

iirc this is also how it works in tidal (have to recheck)

@felixroos felixroos mentioned this pull request Jan 3, 2024
14 tasks
@yaxu
Copy link
Member

yaxu commented Jan 11, 2024

Yep!

ghci> drawLine "{a b, c d e}%2"

[26 cycles]
|ab|ab|ab|ab|ab|ab|ab|ab|ab|ab|ab|ab|ab|ab|ab|ab|ab|ab|ab|ab|ab|ab|ab|ab|ab|ab
|cd|ec|de|cd|ec|de|cd|ec|de|cd|ec|de|cd|ec|de|cd|ec|de|cd|ec|de|cd|ec|de|cd|ec
ghci> drawLine "<a b, c d e>*2"

[26 cycles]
|ab|ab|ab|ab|ab|ab|ab|ab|ab|ab|ab|ab|ab|ab|ab|ab|ab|ab|ab|ab|ab|ab|ab|ab|ab|ab
|cd|ec|de|cd|ec|de|cd|ec|de|cd|ec|de|cd|ec|de|cd|ec|de|cd|ec|de|cd|ec|de|cd|ec

@felixroos felixroos merged commit f3ee1cc into main Jan 12, 2024
2 checks passed
@felixroos felixroos deleted the polymeter-slowcat branch January 12, 2024 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants