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

Mini notation: add dot sub-cycles #49

Closed
wants to merge 8 commits into from
Closed

Mini notation: add dot sub-cycles #49

wants to merge 8 commits into from

Conversation

eilseq
Copy link

@eilseq eilseq commented Apr 12, 2022

This pull request add the dot sub-cycles mini notation to the related package. Equivalent to existing [ ] behaviour. Expected behaviour monitored by tests is:

assert.deepStrictEqual(minS('c3 [d3 e3]'), ['c3: 0 - 1/2', 'd3: 1/2 - 3/4', 'e3: 3/4 - 1']);
assert.deepStrictEqual(minS('c3 [d3 [e3 f3]]'), ['c3: 0 - 1/2', 'd3: 1/2 - 3/4', 'e3: 3/4 - 7/8', 'f3: 7/8 - 1']);
assert.deepStrictEqual(minS('c3 . d3 e3'), ['c3: 0 - 1/2', 'd3: 1/2 - 3/4', 'e3: 3/4 - 1']);
assert.deepStrictEqual(minS('c3 d3 [e3 f3]'), ['c3: 0 - 1/3', 'd3: 1/3 - 2/3', 'e3: 2/3 - 5/6', 'f3: 5/6 - 1']);
assert.deepStrictEqual(minS('c3 . d3 . e3 f3'), ['c3: 0 - 1/3', 'd3: 1/3 - 2/3', 'e3: 2/3 - 5/6', 'f3: 5/6 - 1']);

@eilseq eilseq mentioned this pull request Apr 12, 2022
14 tasks
assert.deepStrictEqual(minS('c3 [d3 [e3 f3]]'), ['c3: 0 - 1/2', 'd3: 1/2 - 3/4', 'e3: 3/4 - 7/8', 'f3: 7/8 - 1']);
assert.deepStrictEqual(minS('c3 . d3 . e3 f3'), ['c3: 0 - 1/2', 'd3: 1/2 - 3/4', 'e3: 3/4 - 7/8', 'f3: 7/8 - 1']);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unfortunately, this is not how it works in tidal.. it should have the same result as [c3] [d3] [e3 f3]

@eilseq eilseq closed this by deleting the head repository Sep 9, 2022
yaxu added a commit that referenced this pull request Jan 19, 2024
- `.` feet now work, e.g. `"a b c . d e . f"` is the same as `"[a b c] [d e] [f]"`
- `_` elongation now works, e.g. `"a _ _ b"` is the same as `"a@3 b"` (`"a @ @ b"` also works, like in tidal)
- standalone `!` now works, e.g. `"a ! ! b"` is the same as `"a!3 b"`

Reworks #47 and #49
Ref #30
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