diff --git a/distrho/DistrhoInfo.hpp b/distrho/DistrhoInfo.hpp index e58f25cb..5eaf6879 100644 --- a/distrho/DistrhoInfo.hpp +++ b/distrho/DistrhoInfo.hpp @@ -221,7 +221,7 @@ START_NAMESPACE_DISTRHO { // we only have one parameter so we can skip checking the index - parameter.hints = kParameterIsAutomable; + parameter.hints = kParameterIsAutomatable; parameter.name = "Gain"; parameter.symbol = "gain"; parameter.ranges.min = 0.0f; @@ -331,7 +331,7 @@ START_NAMESPACE_DISTRHO */ void initParameter(uint32_t index, Parameter& parameter) override { - parameter.hints = kParameterIsAutomable; + parameter.hints = kParameterIsAutomatable; parameter.ranges.min = 0.0f; parameter.ranges.max = 2.0f; parameter.ranges.def = 1.0f; diff --git a/distrho/DistrhoPlugin.hpp b/distrho/DistrhoPlugin.hpp index 50dad44f..80de8c8c 100644 --- a/distrho/DistrhoPlugin.hpp +++ b/distrho/DistrhoPlugin.hpp @@ -86,10 +86,14 @@ static const uint32_t kCVPortHasScaledRange = 0x80; */ /** - Parameter is automable (real-time safe). + Parameter is automatable (real-time safe). @see Plugin::setParameterValue(uint32_t, float) */ -static const uint32_t kParameterIsAutomable = 0x01; +static const uint32_t kParameterIsAutomatable = 0x01; + +/** It was a typo, sorry.. */ +DISTRHO_DEPRECATED_BY("kParameterIsAutomatable") +static const uint32_t kParameterIsAutomable = kParameterIsAutomatable; /** Parameter value is boolean.@n @@ -563,7 +567,7 @@ struct Parameter { case kParameterDesignationNull: break; case kParameterDesignationBypass: - hints = kParameterIsAutomable|kParameterIsBoolean|kParameterIsInteger; + hints = kParameterIsAutomatable|kParameterIsBoolean|kParameterIsInteger; name = "Bypass"; shortName = "Bypass"; symbol = "dpf_bypass"; @@ -1010,7 +1014,7 @@ protected: /** Change a parameter value.@n The host may call this function from any context, including realtime processing.@n - When a parameter is marked as automable, you must ensure no non-realtime operations are performed. + When a parameter is marked as automatable, you must ensure no non-realtime operations are performed. @note This function will only be called for parameter inputs. */ virtual void setParameterValue(uint32_t index, float value); diff --git a/distrho/src/DistrhoPluginCarla.cpp b/distrho/src/DistrhoPluginCarla.cpp index bc1bd00c..5f375f03 100644 --- a/distrho/src/DistrhoPluginCarla.cpp +++ b/distrho/src/DistrhoPluginCarla.cpp @@ -238,7 +238,7 @@ protected: int nativeParamHints = ::NATIVE_PARAMETER_IS_ENABLED; const uint32_t paramHints = fPlugin.getParameterHints(index); - if (paramHints & kParameterIsAutomable) + if (paramHints & kParameterIsAutomatable) nativeParamHints |= ::NATIVE_PARAMETER_IS_AUTOMABLE; if (paramHints & kParameterIsBoolean) nativeParamHints |= ::NATIVE_PARAMETER_IS_BOOLEAN; diff --git a/distrho/src/DistrhoPluginLV2export.cpp b/distrho/src/DistrhoPluginLV2export.cpp index 712d722a..a857140c 100644 --- a/distrho/src/DistrhoPluginLV2export.cpp +++ b/distrho/src/DistrhoPluginLV2export.cpp @@ -851,10 +851,10 @@ void lv2_generate_ttl(const char* const basename) pluginString += " lv2:portProperty lv2:integer ;\n"; if (hints & kParameterIsLogarithmic) pluginString += " lv2:portProperty <" LV2_PORT_PROPS__logarithmic "> ;\n"; - if ((hints & kParameterIsAutomable) == 0 && plugin.isParameterInput(i)) + if ((hints & kParameterIsAutomatable) == 0 && plugin.isParameterInput(i)) { pluginString += " lv2:portProperty <" LV2_PORT_PROPS__expensive "> ,\n"; - pluginString += " <" LV2_KXSTUDIO_PROPERTIES__NonAutomable "> ;\n"; + pluginString += " <" LV2_KXSTUDIO_PROPERTIES__NonAutomatable "> ;\n"; } // group diff --git a/distrho/src/DistrhoPluginVST2.cpp b/distrho/src/DistrhoPluginVST2.cpp index d285dacf..6d55f4ff 100644 --- a/distrho/src/DistrhoPluginVST2.cpp +++ b/distrho/src/DistrhoPluginVST2.cpp @@ -992,8 +992,8 @@ public: { const uint32_t hints(fPlugin.getParameterHints(index)); - // must be automable, and not output - if ((hints & kParameterIsAutomable) != 0 && (hints & kParameterIsOutput) == 0) + // must be automatable, and not output + if ((hints & kParameterIsAutomatable) != 0 && (hints & kParameterIsOutput) == 0) return 1; } break; diff --git a/distrho/src/DistrhoPluginVST3.cpp b/distrho/src/DistrhoPluginVST3.cpp index db62be54..f6c7958e 100644 --- a/distrho/src/DistrhoPluginVST3.cpp +++ b/distrho/src/DistrhoPluginVST3.cpp @@ -1458,7 +1458,7 @@ public: break; } - if (hints & kParameterIsAutomable) + if (hints & kParameterIsAutomatable) flags |= V3_PARAM_CAN_AUTOMATE; if (hints & kParameterIsOutput) flags |= V3_PARAM_READ_ONLY; diff --git a/distrho/src/lv2/lv2_kxstudio_properties.h b/distrho/src/lv2/lv2_kxstudio_properties.h index e8b42a6c..22922650 100644 --- a/distrho/src/lv2/lv2_kxstudio_properties.h +++ b/distrho/src/lv2/lv2_kxstudio_properties.h @@ -1,6 +1,6 @@ /* LV2 KXStudio Properties Extension - Copyright 2014 Filipe Coelho + Copyright 2014-2021 Filipe Coelho Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above @@ -26,7 +26,7 @@ #define LV2_KXSTUDIO_PROPERTIES_URI "http://kxstudio.sf.net/ns/lv2ext/props" #define LV2_KXSTUDIO_PROPERTIES_PREFIX LV2_KXSTUDIO_PROPERTIES_URI "#" -#define LV2_KXSTUDIO_PROPERTIES__NonAutomable LV2_KXSTUDIO_PROPERTIES_PREFIX "NonAutomable" +#define LV2_KXSTUDIO_PROPERTIES__NonAutomatable LV2_KXSTUDIO_PROPERTIES_PREFIX "NonAutomatable" #define LV2_KXSTUDIO_PROPERTIES__TimePositionTicksPerBeat LV2_KXSTUDIO_PROPERTIES_PREFIX "TimePositionTicksPerBeat" #define LV2_KXSTUDIO_PROPERTIES__TransientWindowId LV2_KXSTUDIO_PROPERTIES_PREFIX "TransientWindowId" diff --git a/examples/CVPort/ExamplePluginCVPort.cpp b/examples/CVPort/ExamplePluginCVPort.cpp index 4fb78c88..5b77c125 100644 --- a/examples/CVPort/ExamplePluginCVPort.cpp +++ b/examples/CVPort/ExamplePluginCVPort.cpp @@ -159,7 +159,7 @@ protected: parameter.name = "Hold Time"; parameter.symbol = "hold_time"; - parameter.hints = kParameterIsAutomable|kParameterIsLogarithmic; + parameter.hints = kParameterIsAutomatable|kParameterIsLogarithmic; parameter.ranges.min = 0.0f; parameter.ranges.max = kMaxHoldTime; parameter.ranges.def = 0.1f; diff --git a/examples/EmbedExternalUI/EmbedExternalExamplePlugin.cpp b/examples/EmbedExternalUI/EmbedExternalExamplePlugin.cpp index a88b3d9e..0eb65941 100644 --- a/examples/EmbedExternalUI/EmbedExternalExamplePlugin.cpp +++ b/examples/EmbedExternalUI/EmbedExternalExamplePlugin.cpp @@ -108,7 +108,7 @@ protected: switch (index) { case kParameterWidth: - parameter.hints = kParameterIsAutomable|kParameterIsInteger; + parameter.hints = kParameterIsAutomatable|kParameterIsInteger; parameter.ranges.def = 512.0f; parameter.ranges.min = 256.0f; parameter.ranges.max = 4096.0f; @@ -117,7 +117,7 @@ protected: parameter.unit = "px"; break; case kParameterHeight: - parameter.hints = kParameterIsAutomable|kParameterIsInteger; + parameter.hints = kParameterIsAutomatable|kParameterIsInteger; parameter.ranges.def = 256.0f; parameter.ranges.min = 256.0f; parameter.ranges.max = 4096.0f; @@ -152,7 +152,7 @@ protected: /** Change a parameter value. The host may call this function from any context, including realtime processing. - When a parameter is marked as automable, you must ensure no non-realtime operations are performed. + When a parameter is marked as automatable, you must ensure no non-realtime operations are performed. @note This function will only be called for parameter inputs. */ void setParameterValue(uint32_t index, float value) override diff --git a/examples/ExternalUI/ExternalExamplePlugin.cpp b/examples/ExternalUI/ExternalExamplePlugin.cpp index 92b1b12e..08d40e27 100644 --- a/examples/ExternalUI/ExternalExamplePlugin.cpp +++ b/examples/ExternalUI/ExternalExamplePlugin.cpp @@ -107,7 +107,7 @@ protected: if (index != 0) return; - parameter.hints = kParameterIsAutomable|kParameterIsInteger; + parameter.hints = kParameterIsAutomatable|kParameterIsInteger; parameter.ranges.def = 0.0f; parameter.ranges.min = 0.0f; parameter.ranges.max = 100.0f; @@ -134,7 +134,7 @@ protected: /** Change a parameter value. The host may call this function from any context, including realtime processing. - When a parameter is marked as automable, you must ensure no non-realtime operations are performed. + When a parameter is marked as automatable, you must ensure no non-realtime operations are performed. @note This function will only be called for parameter inputs. */ void setParameterValue(uint32_t index, float value) override diff --git a/examples/ImGuiSimpleGain/PluginSimpleGain.cpp b/examples/ImGuiSimpleGain/PluginSimpleGain.cpp index 5cb19c3c..b3e9fe95 100644 --- a/examples/ImGuiSimpleGain/PluginSimpleGain.cpp +++ b/examples/ImGuiSimpleGain/PluginSimpleGain.cpp @@ -49,7 +49,7 @@ void PluginSimpleGain::initParameter(uint32_t index, Parameter& parameter) parameter.ranges.min = -90.0f; parameter.ranges.max = 30.0f; parameter.ranges.def = -0.0f; - parameter.hints = kParameterIsAutomable; + parameter.hints = kParameterIsAutomatable; parameter.name = "Gain"; parameter.shortName = "Gain"; parameter.symbol = "gain"; diff --git a/examples/Info/InfoExamplePlugin.cpp b/examples/Info/InfoExamplePlugin.cpp index 68d42045..6e339c25 100644 --- a/examples/Info/InfoExamplePlugin.cpp +++ b/examples/Info/InfoExamplePlugin.cpp @@ -109,7 +109,7 @@ protected: */ void initParameter(uint32_t index, Parameter& parameter) override { - parameter.hints = kParameterIsAutomable|kParameterIsOutput; + parameter.hints = kParameterIsAutomatable|kParameterIsOutput; parameter.ranges.def = 0.0f; parameter.ranges.min = 0.0f; parameter.ranges.max = 16777216.0f; @@ -193,7 +193,7 @@ protected: /** Change a parameter value. The host may call this function from any context, including realtime processing. - When a parameter is marked as automable, you must ensure no non-realtime operations are performed. + When a parameter is marked as automatable, you must ensure no non-realtime operations are performed. @note This function will only be called for parameter inputs. */ void setParameterValue(uint32_t, float) override diff --git a/examples/Latency/LatencyExamplePlugin.cpp b/examples/Latency/LatencyExamplePlugin.cpp index bab5df5b..2d264a34 100644 --- a/examples/Latency/LatencyExamplePlugin.cpp +++ b/examples/Latency/LatencyExamplePlugin.cpp @@ -117,7 +117,7 @@ protected: if (index != 0) return; - parameter.hints = kParameterIsAutomable; + parameter.hints = kParameterIsAutomatable; parameter.name = "Latency"; parameter.symbol = "latency"; parameter.unit = "s"; @@ -144,7 +144,7 @@ protected: /** Change a parameter value. The host may call this function from any context, including realtime processing. - When a parameter is marked as automable, you must ensure no non-realtime operations are performed. + When a parameter is marked as automatable, you must ensure no non-realtime operations are performed. @note This function will only be called for parameter inputs. */ void setParameterValue(uint32_t index, float value) override diff --git a/examples/Meters/ExamplePluginMeters.cpp b/examples/Meters/ExamplePluginMeters.cpp index 47ddd3c0..33483195 100644 --- a/examples/Meters/ExamplePluginMeters.cpp +++ b/examples/Meters/ExamplePluginMeters.cpp @@ -120,7 +120,7 @@ protected: switch (index) { case 0: - parameter.hints = kParameterIsAutomable|kParameterIsInteger; + parameter.hints = kParameterIsAutomatable|kParameterIsInteger; parameter.name = "color"; parameter.symbol = "color"; parameter.enumValues.count = 2; @@ -136,12 +136,12 @@ protected: } break; case 1: - parameter.hints = kParameterIsAutomable|kParameterIsOutput; + parameter.hints = kParameterIsAutomatable|kParameterIsOutput; parameter.name = "out-left"; parameter.symbol = "out_left"; break; case 2: - parameter.hints = kParameterIsAutomable|kParameterIsOutput; + parameter.hints = kParameterIsAutomatable|kParameterIsOutput; parameter.name = "out-right"; parameter.symbol = "out_right"; break; diff --git a/examples/Metronome/ExamplePluginMetronome.cpp b/examples/Metronome/ExamplePluginMetronome.cpp index 586e4b35..537e994b 100644 --- a/examples/Metronome/ExamplePluginMetronome.cpp +++ b/examples/Metronome/ExamplePluginMetronome.cpp @@ -156,7 +156,7 @@ protected: */ void initParameter(uint32_t index, Parameter& parameter) override { - parameter.hints = kParameterIsAutomable; + parameter.hints = kParameterIsAutomatable; switch (index) { diff --git a/examples/Parameters/ExamplePluginParameters.cpp b/examples/Parameters/ExamplePluginParameters.cpp index b142048a..eb466b49 100644 --- a/examples/Parameters/ExamplePluginParameters.cpp +++ b/examples/Parameters/ExamplePluginParameters.cpp @@ -122,10 +122,10 @@ The plugin will be treated as an effect, but it will not change the host audio." */ /** - Changing parameters does not cause any realtime-unsafe operations, so we can mark them as automable. + Changing parameters does not cause any realtime-unsafe operations, so we can mark them as automatable. Also set as boolean because they work as on/off switches. */ - parameter.hints = kParameterIsAutomable|kParameterIsBoolean; + parameter.hints = kParameterIsAutomatable|kParameterIsBoolean; /** Minimum 0 (off), maximum 1 (on).