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

Effects refactoring: loaded chain #4431

Merged

Conversation

daschuer
Copy link
Member

Ensure a consistent naming in EffectChain and fix some code issues.

@Be-ing
Copy link
Contributor

Be-ing commented Oct 15, 2021

As I have already said, I am firmly opposed to this renaming. A preset is loaded into a chain. Conflating a preset with a chain creates a confusing situation.

Comment on lines 54 to 55
// Implement a check if Effects in the unit are matching a
// chain preset
Copy link
Contributor

Choose a reason for hiding this comment

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

What would be a use case for that? And what exactly does "matching" mean?

Copy link
Contributor

@Be-ing Be-ing Oct 16, 2021

Choose a reason for hiding this comment

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

This ControlObject is now meaningless. There is no such thing as an effect unit not being loaded.

Copy link
Member Author

Choose a reason for hiding this comment

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

@ronso0 can you have a look here?
My expectation is that once we have moved the GUI to the the effect chain basis, this can indicate that no chain is loaded = every effect slot is empty.
Is there something else to consider?

Copy link
Contributor

Choose a reason for hiding this comment

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

indicate that no chain is loaded = every effect slot is empty

I can't recall anyone ever asking for this nor can I think of any use case for it.

Copy link
Contributor

Choose a reason for hiding this comment

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

Please rebase to remove this commit.

Copy link
Contributor

@Be-ing Be-ing Oct 18, 2021

Choose a reason for hiding this comment

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

@Swiftb0y I think you are not fully understanding. This CO has existed since Mixxx 2.0 but it never indicated anything useful. The legacy implementation had a concept of loading chains, but this was never actually made use of, it only added tons of complexity to the old code. If anyone used it the old CO for something I consider that a bug.

Copy link
Contributor

Choose a reason for hiding this comment

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

I just grepped the source code and controller mappings and nothing uses this nonsense CO. Let's remove it.

Copy link
Member

Choose a reason for hiding this comment

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

well then deprecate the CO and give it a dummy value? grepping for "loaded" reveals 0 skins but 3 mappings using it.

Copy link
Contributor

Choose a reason for hiding this comment

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

Those are all for the EffectUnit_EffectX, loaded CO, not the EffectUnit, loaded CO.

Copy link
Member Author

Choose a reason for hiding this comment

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

Ok than lets remove this entirely.

@daschuer daschuer force-pushed the effects_refactoring branch from 4141b2d to 02e7b6a Compare October 18, 2021 06:33
@daschuer daschuer force-pushed the effects_refactoring_loaded_chain branch from 84b9c1f to f175f9e Compare October 18, 2021 06:49
@daschuer
Copy link
Member Author

I had to rebase this because unwanted commits from #2618 have slipped in.

@Be-ing
Copy link
Contributor

Be-ing commented Oct 18, 2021

There are still unwanted commits in here.


m_pControlChainNextPreset = std::make_unique<ControlPushButton>(
m_pControlNextChainPreset = std::make_unique<ControlPushButton>(
ConfigKey(m_group, "next_chain"));
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
ConfigKey(m_group, "next_chain"));
ConfigKey(m_group, "next_chain_preset"));

and add aliases

Copy link
Member Author

Choose a reason for hiding this comment

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

I don't want to clutter the CO interface with aliases for such a minor issue. I think it is obvious already what the CO does even without the alias. We can add the alias at any time later.

Copy link
Contributor

Choose a reason for hiding this comment

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

You have already changed one. Now change the others or you leave it in an inconsistent state.

Copy link
Member Author

Choose a reason for hiding this comment

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

This PR is against the mixxxdj/effects_refactoring. If you think the renaming + alias is rectified, you can create your own PR. Maybe another team member is convinced that an this is a good idea. I like to move on the other issues.

@daschuer
Copy link
Member Author

Done.

@Be-ing Be-ing merged commit 21945c3 into mixxxdj:effects_refactoring Oct 18, 2021
@Be-ing
Copy link
Contributor

Be-ing commented Oct 18, 2021

Still no justification has been made why this was so important to delay merging #2618 for months against unanimous consensus of everyone else.

@daschuer daschuer deleted the effects_refactoring_loaded_chain branch April 14, 2022 21:19
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