VST3: prefer linear knob movement

The previous idea was to follow Ardour's default
 \delta val = \delta Y - \delta X

In reality it turns out that this is better represented
with kLinearMode.

VST3 offers the following:
  * Circular with jump to clicked position
  * Circular without jump to clicked position
  * Linear: depending on vertical movement

The first is right out. Value changes need to be
continuous. The last explicitly mentioning vertical
movement was also somewhat discouraging,
however most plugins don't take it literally and allow
linear X/Y movement.
This commit is contained in:
Robin Gareus
2021-07-24 22:38:08 +02:00
parent 450dc7187c
commit 129b59b90f

View File

@@ -1112,7 +1112,7 @@ VST3PI::VST3PI (boost::shared_ptr<ARDOUR::VST3PluginModule> m, std::string uniqu
FUnknownPtr<Vst::IEditController2> controller2 (_controller);
if (controller2) {
controller2->setKnobMode (Vst::kRelativCircularMode);
controller2->setKnobMode (Vst::kLinearMode);
}
int32 n_params = _controller->getParameterCount ();