-
-
Notifications
You must be signed in to change notification settings - Fork 74
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
Update Playback.cs #45
Conversation
Thanks for your PR! Let's discuss it:
Also please note that within the library all private fields should be prefixed with _ (underscore). And instead of You can either implement methods within this PR or I can do it by myself :) |
Yes, let's discuss :-) Sure, I agree - the array-length must be tested!! And would "16" not be simpler to understand than "FourBitValue.MaxValue + 1"?. Regards |
What about the idea, to do both:
And I have another question: Do you see the need for using a semaphore to synchronize the access to the “mute”-data? |
I still think that separate methods is the best way to implement channels muting. But bulk editing also interesting idea. Thanks for the PR and your ideas! I really appreciate your contribution. I think though it can be closed. I'll implement this API by myself today in a way we both will be satisfied :) |
👍 |
The logic and realization of mute/solo functionality of a midi-mixing console is a little bit tricky...
I think using an Array of bool is simpler than using a method to enable/disable a single channel.
E.G think about the "Solo" functionality: I expect, that if I use a channel "solo" - and then I remove the "Solo"-state, the combination of the enabled channels before are restored. That means a combination of 16 channels have to be restored - using an array for that is simple.
I also expect, that not only one channel can be used for "Solo" - it also should be possible to use several of them...