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

Update controller mapping for Behringer DDM4000 mixer #4318

Merged

Conversation

git-developer
Copy link
Contributor

@git-developer git-developer commented Sep 21, 2021

This PR contains

  • A fix for a bug that prevents the mixer to be completely initialized on startup
  • Proper handling of mapping definitions with missing (falsy) MIDI address
  • Consistent use of null instead of empty strings for intentionally missing values
  • A ParameterComponent that is able to send correct output values for effect parameters
  • Soft-takeover support for the EnumEncoder component
  • Removal of redundant code
  • Documentation fixes

The bug was really annoying and hard to detect: on startup, only a part of the mixer LEDs had the correct state. Some were on, but others were off unexpectedly. After a few hours of debugging, it turned out that the problem is the processing speed of the hardware mixer. When too many MIDI messages arrive in a short time, only a part of them is processed. My solution is a configurable throttling logic that delays component initialization. Users may disable the throttling or change the delay.

The ParameterComponent is required to send proper output values for effect parameters. Some of them have unusual values ranges, e.g. flanger speed [32..0,5] in a non-linear manner. The output() function of the Encoder component is not prepared for this, it just multiplies this value with 127 and sends the result to the controller. The ParameterComponent uses the parameter (range: [0..1]) instead of the value, so the MIDI value is correct.

@git-developer git-developer marked this pull request as draft September 21, 2021 10:15
@git-developer git-developer marked this pull request as ready for review September 24, 2021 20:41
@git-developer
Copy link
Contributor Author

Bug #671277 is related to the bug that I fixed by throttling.

Copy link
Member

@Swiftb0y Swiftb0y left a comment

Choose a reason for hiding this comment

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

Since these are mostly changes to your library and the code quality is good, I suggest to just merge this. Objections, anyone?

@github-actions
Copy link

This PR is marked as stale because it has been open 90 days with no activity.

@github-actions github-actions bot added the stale Stale issues that haven't been updated for a long time. label Feb 27, 2022
@git-developer
Copy link
Contributor Author

This issue should not be labeled stale.

@uklotzde uklotzde removed the stale Stale issues that haven't been updated for a long time. label Feb 27, 2022
@github-actions
Copy link

This PR is marked as stale because it has been open 90 days with no activity.

@github-actions github-actions bot added the stale Stale issues that haven't been updated for a long time. label May 29, 2022
@git-developer
Copy link
Contributor Author

Objections, anyone?

No objection from my side. Please do not mark this PR as stale.

@uklotzde uklotzde removed the stale Stale issues that haven't been updated for a long time. label May 29, 2022
@uklotzde
Copy link
Contributor

Objections, anyone?

No objection from my side. Please do not mark this PR as stale.

The stale marker was added by a GitHub action.

@Swiftb0y Merge?

@Swiftb0y
Copy link
Member

Sure

@Swiftb0y Swiftb0y merged commit 232daf9 into mixxxdj:2.3 May 29, 2022
@Swiftb0y Swiftb0y added the changelog This PR should be included in the changelog label May 29, 2022
@git-developer git-developer deleted the feature/controller-mapping-behringer-ddm4000 branch June 5, 2022 04:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog This PR should be included in the changelog controller mappings
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants