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

group= and off_by= tests #3

Open
pljones opened this issue Jan 31, 2021 · 0 comments
Open

group= and off_by= tests #3

pljones opened this issue Jan 31, 2021 · 0 comments

Comments

@pljones
Copy link

pljones commented Jan 31, 2021

With a quick skim through the names of the test files, I didn't spot and group / off_by tests.

Here's the René SFZ v1 version:

Any layer to cause muting is labelled with group (0 to 4Gb). Triggering such a layer causes any layer with a different trigger event and a matching, non-zero off_by value to be muted or released.

GIVEN one `<region>`s with the same `off_by=` value
AND a second `<region>` with a `group=` value that matches the first region's `off_by=` value
AND the second `<region>` region is triggered by a different note number
AND the first region has been triggered and is still playing
WHEN the second region is triggered
THEN the first region should stop, using the `off_mode=` value
GIVEN one `<region>`s with the same `off_by=` value
AND a second `<region>` with a `group=` value that matches the first region's `off_by=` value
AND the second `<region>` region is triggered by the same note number
AND the first region has been triggered and is still playing
WHEN the second region is triggered
THEN the first region should not be affected

Here's the "OK, you win" v2 version:

GIVEN one `<region>`s with the same `off_by=` value
AND a second `<region>` with a `group=` value that matches the first region's `off_by=` value
AND the second `<region>` region is triggered by a different note number
AND the first region has been triggered and is still playing
WHEN the second region is triggered
THEN the first region should stop, using the `off_mode=` value
GIVEN one `<region>`s with the same `off_by=` value
AND a second `<region>` with a `group=` value that matches the first region's `off_by=` value
AND the second `<region>` region is triggered by the same note number
AND the first region has been triggered and is still playing
WHEN the second region is triggered
THEN the first region should stop, using the `off_mode=` value
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

No branches or pull requests

1 participant