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

Added an internal OR switch to every drawstop #2012

Merged
merged 3 commits into from
Oct 9, 2024

Conversation

oleg68
Copy link
Contributor

@oleg68 oleg68 commented Sep 24, 2024

This is the second PR related to #1935

It adds an internal OR switch to every drawstop. The switch has several named entries. The default entry has an wxEmptyString name.

When any of drawstop switches named entry is activated, the drawstop is also activated. When all of the entries are deactivated the drawstop is also deactivated.

Now this capability is not used and it will be used in a future PR for the Add mode of Crescendo.

So no GO behavior should be used now.

Copy link
Contributor

@larspalo larspalo left a comment

Choose a reason for hiding this comment

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

The action build show that this PR causes at least switch drawstops to not function correctly. When the drawstop gets active no sound is produced, but when it's deactivated again sound output happens even though the drawstop is off! When the drawstop is visibly active no sound is emitted. In other words after first activation/de-activation they are reversed!

A few of the affected sample sets are Bureå Church, Bygdsiljum Church and Norrfjärden Church.

Older sample sets that directly use/display the stop seems to function normally though.

On a side note, I have no problem with introducing this feature to fix the original issue with the crescendo - that is, when everything actually is working! However, I'm not convinced that exposing this internal OR in any way (ODF) is a good idea - which I understood from another discussion that you eventually intend to do.

@oleg68 oleg68 force-pushed the feature/combination-state-name branch from 3f1c69b to 84cf264 Compare October 4, 2024 18:46
@oleg68
Copy link
Contributor Author

oleg68 commented Oct 4, 2024

@larspalo I fixed the behavior of AND switches.

@oleg68 oleg68 requested a review from larspalo October 4, 2024 19:08
@oleg68 oleg68 mentioned this pull request Oct 5, 2024
Copy link
Contributor

@larspalo larspalo left a comment

Choose a reason for hiding this comment

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

Seems to be working now.

@oleg68
Copy link
Contributor Author

oleg68 commented Oct 8, 2024

@rousseldenis could you approve this PR?

@oleg68 oleg68 merged commit b0d090c into GrandOrgue:master Oct 9, 2024
1 check passed
@oleg68 oleg68 deleted the feature/combination-state-name branch October 9, 2024 18:42
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.

3 participants