-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
turn waveform_zoom
into ControlPotmeter
#12387
base: main
Are you sure you want to change the base?
Conversation
74131de
to
52e59a6
Compare
src/mixer/basetrackplayer.cpp
Outdated
ControlObject::set(ConfigKey(getGroup(), "waveform_zoom_" + dir), 1); | ||
ControlObject::set(ConfigKey(getGroup(), "waveform_zoom_" + dir), 0); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not happy with this, but I couldn't make it work with ControlProxies.
I created them right after having created the ControlPotmeter and used them in the lambda, but setting the proxies would do nothing, and I have no idea why. No error or warning was thrown.
52e59a6
to
9aa4a3b
Compare
9aa4a3b
to
2378cb6
Compare
A conflict has developed. What is the state here? Is still a draft? |
2378cb6
to
4dc8d5c
Compare
Conflict is resolved. I didn't test this yet with a controller myself. |
Which control did you map? (to what kind of input?)
|
I assigned the new one to an encoder. Previously, I assigned the old one to a pot and it didn't work, like you state here it should, this being my original confusion. Past of my first message on the forum being; "I’m trying to assign “Waveform Zoom” (not “Waveform Zoom In” or “Waveform Zoom Out”) to a channel dial on a Kork nanoKontroller2, but it does nothing when I turn the dial after." |
So it's highly likely I got part of an understanding/remembrance turned around once or twice. I checked again earlier; the original works with a standard pot, the new one with a rotary encoder. The pot has more granularity to the zoom and you can turn it for longer. The encoder only needs to rotate a rather small amount to go through all the zoom levels. |
Yes, the new "original one" ( I just tested both this and |
|
How did you get these? Ii just tested again with a clean mapping and all cotnrols work as expected: up, down, selector, pot |
This PR is marked as stale because it has been open 90 days with no activity. |
This is the same |
4dc8d5c
to
c2e79cc
Compare
Well, this branch is more than a year old so it has all the bugs of main back then. |
c2e79cc
to
33da9cd
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For my understanding we don't need "waveform_zoom_selector". We have already the mapping options
We have the mapping options of "HercJog"/"HercJogFast"/"Rot64"/"Rot64Fast" for it.
And actually this can go to 2.5 now that it's just a backend change of the existing control. |
33da9cd
to
f0542c0
Compare
the only bump I'd like to mention is #6682, and that, where it does work, the zoom control will not zoom through the entire scale of a patched-to-have-a-larger-zoom-scale build I don't know how that can potentially be future proofed for given any changes/adaptation here (and trickiness of implementing a scale range change). I understand that that might not be possible, though I'll continue to patch my zoom to allow a better overview of the relationship between song timelines edit; I forgot that I think why it works on my nanokontrol2 is because of the controller script doing the magick |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, just a compiler warnig. Thank you.
Please amend, an than we can merge.
@@ -559,6 +561,12 @@ void DlgPrefWaveform::slotSetWaveformOverviewType() { | |||
|
|||
void DlgPrefWaveform::slotSetDefaultZoom(int index) { | |||
WaveformWidgetFactory::instance()->setDefaultZoom(index + 1); | |||
for (int i = 1; i <= PlayerManager::numDecks(); i++) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for (int i = 1; i <= PlayerManager::numDecks(); i++) { | |
for (unsigned int i = 1; i <= PlayerManager::numDecks(); i++) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, saw that. I've also included samplers update.
4e068f4
to
b8c4723
Compare
I fixed the build issue, but I also saw that the "zoom_set_default" buttons in Deere did not reset to the desired value. |
c++ alternative to #12373
waveform_zoom
is now a ControlPotmeter incl._up
,_down
,_set_default
and some rather useless controlsstep size is 1, i.e.
_up
/_down
act exactly as beforeaddedalready possible with the e.g. thewaveform_zoom_selector
, triggers_up
/_down
and thereby simplifies mapping rotary encoders with theSelectKnob
MIDI optionRot64
MIDI optionfixed some hard-coded ranges in mappingscontrollers: fixwaveform_zoom
ranges #12393TODO
waveform_zoom
, is now a ControlPotmeter manual#722Note to myself:
pick 55418d0 from #12373