Match surround panner automation line convention

move to the left -> automation line moves upwards
move to the front -> automation line moves upwards
This commit is contained in:
Robin Gareus 2024-03-05 14:59:26 +01:00
parent 3a6171428a
commit 6df34a307d
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
1 changed files with 10 additions and 4 deletions

View File

@ -422,8 +422,11 @@ ParameterDescriptor::to_interface (float val, bool rotary) const
val = 1.0 - val;
}
break;
case PanElevationAutomation:
// val = val;
case PanSurroundX:
case PanSurroundY:
if (!rotary) {
val = 1.0 - val;
}
break;
case PanWidthAutomation:
val = .5f + val * .5f;
@ -478,8 +481,11 @@ ParameterDescriptor::from_interface (float val, bool rotary) const
val = 1.0 - val;
}
break;
case PanElevationAutomation:
// val = val;
case PanSurroundX:
case PanSurroundY:
if (!rotary) {
val = 1.0 - val;
}
break;
case PanWidthAutomation:
val = 2.f * val - 1.f;