Skip to content

Pitch/Tempo slider: set default range for clean profile#1230

Closed
ronso0 wants to merge 4 commits intomixxxdj:masterfrom
ronso0:pitchSlider-default-range
Closed

Pitch/Tempo slider: set default range for clean profile#1230
ronso0 wants to merge 4 commits intomixxxdj:masterfrom
ronso0:pitchSlider-default-range

Conversation

@ronso0
Copy link
Copy Markdown
Member

@ronso0 ronso0 commented Mar 27, 2017

Fixing Bug 1676140 Pitch/Tempo slider range default is 0%.
This sets rate range to 8%.

I don't know how to fix the other issue I noticed that defaults would be restored visually but not actually applied.

@daschuer
Copy link
Copy Markdown
Member

Isn't slotSetRateRangePercent called if you set the combobox to the new value?
Maybe you need to call it manually

m_pConfig->getValueString(ConfigKey("[Controls]", "RateRange")).length() == 0) {
int rateRangePercent = 8;
m_pConfig->set(ConfigKey("[Controls]", "RateRangePercent"), ConfigValue(rateRangePercent));
slotSetRateRangePercent(rateRangePercent);
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Isn't slotSetRateRangePercent called if you set the combobox to the new value?
Maybe you need to call it manually

That's what's happening here, isn't it?
I tested it, it works, so I assumed those lines are processed on startup.
Or do I get it wrong?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I have not tested it. Is this

I don't know how to fix the other issue I noticed that defaults would be restored visually but not actually applied.

issue solved than?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Nope!
As I reported, it affects other settings as well, i.e position display. Don't know how to approach that.

@daschuer
Copy link
Copy Markdown
Member

Isn't slotSetRateRangePercent called if you set the combobox to the new value?
Maybe you need to call it manually

An explicite slotSetRateRangePercent(8); inside slotResetToDefaults() should do the trick.

The confusing situation is probably that the RateRange is adopted immediately, does not require an apply.
IMHO this is a legacy leftover and could be changed as well, but that is an other issue.

@ronso0
Copy link
Copy Markdown
Member Author

ronso0 commented Mar 28, 2017

An explicite slotSetRateRangePercent(8); inside slotResetToDefaults() should do the trick.

Appearantly, this would have to be done explicitly for all defaults then.

I don't think slotResetToDefaults() is called when mixxx starts up with no mixxx.cfg, it appears initial defaults are set in initalization.

It's again PositionDisplay where I noticed this: on fresh start its 'Elapsed' (here), when you click 'Restore defaults' it jumps to 'Remaining' (here)

@daschuer
Copy link
Copy Markdown
Member

Yes, it looks like you found a bug nest ;-)
Those issues become more obvious if we use const_expr for these default values.

@ronso0
Copy link
Copy Markdown
Member Author

ronso0 commented Mar 28, 2017

Yes, it looks like you found a bug nest ;-)

Urgh...

So I think I did what I can, the other stuff sounds like spanish to me and it would take me ages to fix it.
At least rate slider work again now.

@Be-ing
Copy link
Copy Markdown
Contributor

Be-ing commented Nov 12, 2017

I poked the bugs' nest and it got ugly... #1377 cleans up some of it.

@ronso0 ronso0 closed this Nov 13, 2017
@ronso0 ronso0 deleted the pitchSlider-default-range branch November 13, 2017 18:20
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