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

Adopt naming schema from other controls in Mixxx for effect parameters #207

Merged
merged 11 commits into from Mar 28, 2014

Conversation

daschuer
Copy link
Member

With this PR, we are more in line with the rest of Mixxx.
Now we have:

  • parameterN
  • parameterN_up
  • parameterN_down
  • parameterN_up_small
  • parameterN_down_small
  • parameterN_set_default
  • parameterN_set_zero
  • parameterN_set_one
  • parameterN_set_minus_one
  • parameterN_toggle
  • parameterN_minus_toggle
  • parameterN_loaded
  • parameterN_link_type
  • parameterN_value_type
  • parameterN_value_max
  • parameterN_value_max_limit
  • parameterN_value_min
  • parameterN_value_min_limit

@daschuer
Copy link
Member Author

Possible future plans:

parameterN_value_max
parameterN_value_max_limit
parameterN_value_min
parameterN_value_min_limit
-> common solution after solving https://bugs.launchpad.net/mixxx/+bug/1294750

@daschuer
Copy link
Member Author

Some of these controls are unused.
IMHO we should remove, hide them or leave them undocumented.

daschuer added a commit to mixxxdj/developer_skins that referenced this pull request Mar 23, 2014
@daschuer
Copy link
Member Author

matching skins are here https://github.com/mixxxdj/developer_skins/tree/pull_207

const unsigned int iParameterNumber) {
return QString("[EffectRack%1_EffectUnit%2_Effect%3_Parameter%4]")
const unsigned int iSlotNumber) {
return QString("[EffectRack%1_EffectUnit%2_Effect%3]")
Copy link
Member

Choose a reason for hiding this comment

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

Please keep the entire group for the parameter. There is a lot of stuff in here and it will get crowded very quickly. It deserves its own namespace.

Copy link
Member

Choose a reason for hiding this comment

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

Hm, actually I don't mind either way.

Copy link
Member Author

Choose a reason for hiding this comment

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

You implementation would be new for Mixxx. Elsewhere we have the the naming
[Channel1],play
[Channel1],play_indicator
[Channel1],rate
[Channel1],rate_step_up

I have just made it fit.

@rryan
Copy link
Member

rryan commented Mar 24, 2014

IMHO we should remove, hide them or leave them undocumented.

Undocumented is fine. I also don't mind if they are removed.

@rryan
Copy link
Member

rryan commented Mar 24, 2014

I also don't mind if they are removed.

I'm talking about the min/max/max_limit/min_limit here. Though I think script authors may be interested in min/max at least if they wish to set raw values.

…ept with the inter control solution. If we later have a usecase that a min or max value should be tweakable for a effect, this effect might handle it intern by a new dedicated parameter.
@daschuer
Copy link
Member Author

Ready! Now we have new ControllEffectKnob which manages the setting curve.
The change of the behavior on the fly was already there. So it was not too hard.

I have also try to fix the bitchrusher but a logarithmic scale for bit dep does not help.

@daschuer
Copy link
Member Author

Ok, finally the logarithmic effect parameter are working.
Also tweaked bitcrusher controlling.

@@ -209,7 +209,12 @@ void EffectParameter::onChainParameterChanged(double chainParameter) {
}
max = m_maximum.toDouble();
min = m_minimum.toDouble();
setValue(min + chainParameter * (max - min));
if (m_parameter.controlHint() == EffectManifestParameter::CONTROL_KNOB_LOGARITHMIC) {
Copy link
Member

Choose a reason for hiding this comment

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

Ah, can't we call setParameter(chainParameter) now instead of this log vs. linear logic?

Copy link
Member

Choose a reason for hiding this comment

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

Er, nevermind I misread where we were.

Copy link
Member

Choose a reason for hiding this comment

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

Ah, now I see. To get rid of this logic the superknob parameter linking should flow from EffectChainSlot -> EffectSlot -> EffectParameterSlot -> value CO instead of from EffectChainSlot -> EffectChain -> Effect -> EffectParameter::onChainParameterChanged(...).

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, this is is definitely a candidate for refactoring. I do not get your point exactly.
Since this is merged, I will file a launchpad bug to continue discussing.

@rryan
Copy link
Member

rryan commented Mar 28, 2014

Nice! This looks good -- thanks @daschuer.

rryan added a commit that referenced this pull request Mar 28, 2014
Adopt naming schema from other controls in Mixxx for effect parameters
@rryan rryan merged commit 01b1e01 into mixxxdj:master Mar 28, 2014
@daschuer daschuer deleted the co_clean_up branch September 15, 2014 20:57
m0dB pushed a commit to m0dB/mixxx that referenced this pull request Jan 21, 2024
README: document how to test new blog posts locally
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.

None yet

2 participants