From 2a4a61947fcce37a1c4514a1f750b1754b076d63 Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Fri, 8 Apr 2022 00:02:28 +0200 Subject: [PATCH] Update reasoning for clearing last param ID bit --- src/wrapper/util.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/wrapper/util.rs b/src/wrapper/util.rs index c73d766d..8aba5a6b 100644 --- a/src/wrapper/util.rs +++ b/src/wrapper/util.rs @@ -27,7 +27,8 @@ pub fn hash_param_id(id: &str) -> u32 { ); } - // Studio One apparently doesn't like negative parameters, so JUCE just zeroes out the sign bit + // In VST3 the last bit is reserved for parameters provided by the host + // https://developer.steinberg.help/display/VST/Parameters+and+Automation hash &= !(1 << 31); hash