Conversation
|
This works as advertised, and seams to be nice. I there are only some remaining worries, if the conditional disabled oversoft will leads to confusion because it may kick in or out when not expected. |
|
I wonder why we see commits here that are currently in master. |
Sure |
0701908 to
836db6a
Compare
|
Yikes I tried to rebase and it lost the new commit >.< |
6c672de to
0701908
Compare
|
Alright, looks good now. I think that happened because I branched off my per_effect_metaknobs branch, added a commit to this branch, then added another commit to per_effect_metaknobs before that was merged. |
| connect(m_pControlMetaParameter, SIGNAL(valueChanged(double)), | ||
| this, SLOT(slotEffectMetaParameter(double))); | ||
|
|
||
| m_pSoftTakeover = new SoftTakeover(); |
There was a problem hiding this comment.
Does this need a delete or it owned by the object tree? (If the former, consider using unique_ptr as per the discussion in #953)
|
I'm testing it now... With the current master branch, metaknob itself has soft takeover already (I only checked flanger which only has one parameters assigned to meta, it may be different for other effects). However, the super knob and the meta knob do not have any soft takeover in terms of the interaction between them. Is that the objective of this PR? The sync between the two is still not perfect, as demonstrated by the following steps:
--> Audible jump |
Do you mean people will be confused that the soft takeover doesn't occur when the effect is disabled? The only situation where I think it might be confusing is if the user maps both super knob and meta knobs on their controller. We should tell them not to do this. Otherwise, in general I feel that soft takeover being disabled is more intuitive than being enabled, so only enabling soft takeover when the effect itself is enabled (with the priority of preventing audible jumps) makes sense to me. |
|
@timrae Thank, you. This means we are on the right track. :-) |
I cannot reproduce that with this branch. Are you sure you tested the correct branch? |
|
I forked master branch and cherry picked this commit.
…On 10 Jan. 2017 03:42, "Be" ***@***.***> wrote:
The sync between the two is still not perfect, as demonstrated by the
following steps:
Enable flanger effect
Turn metaknob all the way down to zero on your controller
Turn super knob all the way up to max in the GUI
Turn metaknob on your controller
--> Audible jump
I cannot reproduce that with this branch. Are you sure you tested the
correct branch?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1111 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ACsA4nmQL6H4a11c4Ocv6iY5CvVDRHH8ks5rQn-DgaJpZM4Ldffr>
.
|
|
Could you try checking out this branch and building it? |
|
The way I was checking it is more indicative of the effect of merging this PR, so I prefer you rebase this into master and check that. Plus I might not have time today |
0701908 to
42d3262
Compare
|
Okay, rebased it onto master. |
|
Did you try to reproduce on the rebased branch?
…On 11 Jan. 2017 08:57, "Be" ***@***.***> wrote:
Okay, rebased it onto master.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1111 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ACsA4vL4NknFWdYsATVs4SeVLQOv9Azhks5rRBrhgaJpZM4Ldffr>
.
|
|
Yes. I cannot reproduce the issue. It's working as intended as far as I can tell. |
|
Ok I'll take a video when I get home after work
…On 11 Jan. 2017 9:49 am, "Be" ***@***.***> wrote:
Yes. I cannot reproduce the issue. It's working as intended as far as I
can tell.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1111 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ACsA4jtaPLXZ3moLjjw_g9sXibRqKzoEks5rRCcngaJpZM4Ldffr>
.
|
|
It's still happening... |
|
See around 25s |
|
This is with 42d3262 and gcc 6.2 on Ubuntu x64, Qt version 4.8.7 |
|
Oh, I was testing with my controller which had soft takeover enabled by its script. >.< |
|
I have watched the recording, and I actually think this behavior is correct if you do not have softtakover enabled on your controller. you most likely see an out of sync situation between GUI meta knob and controller meta knob.
The issue targeted here is just the other way round.
Does this work for you? |
Yes, this PR fixes the issue you outlined. Together with soft takeover activated by the controller mapping it solves the issue @timrae reported.
That would be overcomplicated. I don't think we need to introduce any more ControlObjects for the new effects interface. |
| QList<EffectParameterSlotPointer> m_parameters; | ||
| QList<EffectButtonParameterSlotPointer> m_buttonParameters; | ||
|
|
||
| SoftTakeover* m_pSoftTakeover; |
There was a problem hiding this comment.
Does this need to be deleted in the destructor?
There was a problem hiding this comment.
Yes, though you can make it a member variable so you don't have to allocate it at all.
There was a problem hiding this comment.
Fixed in rebased and force pushed commit.
|
Sounds good to me
…On 12 Jan. 2017 9:07 am, "Be" ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In src/effects/effectslot.h
<#1111 (review)>:
> @@ -108,6 +109,8 @@ class EffectSlot : public QObject {
QList<EffectParameterSlotPointer> m_parameters;
QList<EffectButtonParameterSlotPointer> m_buttonParameters;
+ SoftTakeover* m_pSoftTakeover;
Does this need to be deleted in the destructor?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1111 (review)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACsA4gSJF4LspUMv_-hE5XtPtjvGcH8aks5rRW6kgaJpZM4Ldffr>
.
|
|
The other issue this PR solves is:
If the effect is enabled, the manually adjusted parameter should not jump. |
If an effect is on, avoid making parameters audibly jump. If effect is off, do not do soft takeover, just snap parameters to position of metaknob. Controller mappings still must enable soft takeover for the super/metaknobs as appropriate.
42d3262 to
8c06c3e
Compare
|
Ready for merge? |
|
Looks good to me. SuperLinkTest.Softtakeover is failing because the test does not enable the effect. Could you split SuperLinkTest.SoftTakeover into SuperLinkTest.SoftTakeover_EffectEnabled and SuperLinkTest.SoftTakeover_EffectDisabled to cover both cases? |
Test for new metaknob -> parameter and superknob -> metaknob behavior both when effect is enabled and disabled.
|
Nice, thanks for the extra tests! |

Follow-up from discussion on #1062: