From adc0352d59b7b42d50d8878fc5c31fca63a20708 Mon Sep 17 00:00:00 2001 From: Xaymar Date: Tue, 5 Aug 2025 15:58:38 +0200 Subject: [PATCH] Float parameters are sometimes required to be normalized within 0.0 and 1.0 --- vst.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/vst.h b/vst.h index 37e18a1..b382f79 100644 --- a/vst.h +++ b/vst.h @@ -153,8 +153,14 @@ enum VST_PARAMETER_FLAG { _VST_PARAMETER_FLAG_PAD = 0xFFFFFFFFul, }; +/** Information about a parameter + * + * Note: Some hosts and plug-ins expect float parameters to be normalized within 0.0 and 1.0. + */ struct vst_parameter_properties_t { /** Float Step value + * + * Some hosts and plug-ins expect this to be within 0 and 1.0. * * Only valid with VST_PARAMETER_FLAG_STEP_FLOAT */ @@ -163,6 +169,8 @@ struct vst_parameter_properties_t { /** Float small step value * This is used for "tiny" changes. * + * Some hosts and plug-ins expect this to be within 0 and 1.0. + * * Only valid with VST_PARAMETER_FLAG_STEP_FLOAT */ float step_small_f32; @@ -170,6 +178,8 @@ struct vst_parameter_properties_t { /** Float large step value * This is used for "huge" changes. * + * Some hosts and plug-ins expect this to be within 0 and 1.0. + * * Only valid with VST_PARAMETER_FLAG_STEP_FLOAT */ float step_large_f32;