Merge branch 'ardour'
This commit is contained in:
commit
d71c67ce9c
@ -16,6 +16,8 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include <regex>
|
||||
|
||||
#include "pbd/gstdio_compat.h"
|
||||
#include <glibmm.h>
|
||||
|
||||
@ -1452,6 +1454,8 @@ VST3PI::VST3PI (std::shared_ptr<ARDOUR::VST3PluginModule> m, std::string unique_
|
||||
int32 n_params = _controller->getParameterCount ();
|
||||
DEBUG_TRACE (DEBUG::VST3Config, string_compose ("VST3 parameter count: %1\n", n_params));
|
||||
|
||||
std::regex dpf_midi_CC ("MIDI Ch. [0-9]+ CC [0-9]+");
|
||||
|
||||
for (int32 i = 0; i < n_params; ++i) {
|
||||
Vst::ParameterInfo pi;
|
||||
if (_controller->getParameterInfo (i, pi) != kResultTrue) {
|
||||
@ -1465,6 +1469,10 @@ VST3PI::VST3PI (std::shared_ptr<ARDOUR::VST3PluginModule> m, std::string unique_
|
||||
/* Some JUCE plugins add 16 * 128 automatable MIDI CC parameters */
|
||||
continue;
|
||||
}
|
||||
if (std::regex_search (tchar_to_utf8 (pi.title), dpf_midi_CC)) {
|
||||
/* DPF plugins also adds automatable MIDI CC parameters "MIDI Ch. %d CC %d" */
|
||||
continue;
|
||||
}
|
||||
|
||||
Param p;
|
||||
p.id = pi.id;
|
||||
@ -1478,6 +1486,7 @@ VST3PI::VST3PI (std::shared_ptr<ARDOUR::VST3PluginModule> m, std::string unique_
|
||||
|
||||
if (pi.flags & /*Vst::ParameterInfo::kIsHidden*/ (1 << 4)) {
|
||||
p.label = X_("hidden");
|
||||
p.automatable = 0;
|
||||
}
|
||||
|
||||
#if 1 // if (host_editing == 0) // FUnknownPtr<Vst::IEditControllerHostEditing> host_editing (_controller);
|
||||
|
Loading…
Reference in New Issue
Block a user