DPF

DISTRHO Plugin Framework
Log | Files | Refs | Submodules | README | LICENSE

commit 14423c5eec85b7ef1b5f997a9e27bfc48487c24f
parent 4c62f76915478d7cf6ac89cbc1c9714d1fbeb044
Author: falkTX <falktx@falktx.com>
Date:   Mon, 22 Nov 2021 12:06:19 +0000

Automable is not a word, sorry!

Signed-off-by: falkTX <falktx@falktx.com>

Diffstat:
Mdistrho/DistrhoInfo.hpp | 4++--
Mdistrho/DistrhoPlugin.hpp | 12++++++++----
Mdistrho/src/DistrhoPluginCarla.cpp | 2+-
Mdistrho/src/DistrhoPluginLV2export.cpp | 4++--
Mdistrho/src/DistrhoPluginVST2.cpp | 4++--
Mdistrho/src/DistrhoPluginVST3.cpp | 2+-
Mdistrho/src/lv2/lv2_kxstudio_properties.h | 4++--
Mexamples/CVPort/ExamplePluginCVPort.cpp | 2+-
Mexamples/EmbedExternalUI/EmbedExternalExamplePlugin.cpp | 6+++---
Mexamples/ExternalUI/ExternalExamplePlugin.cpp | 4++--
Mexamples/ImGuiSimpleGain/PluginSimpleGain.cpp | 2+-
Mexamples/Info/InfoExamplePlugin.cpp | 4++--
Mexamples/Latency/LatencyExamplePlugin.cpp | 4++--
Mexamples/Meters/ExamplePluginMeters.cpp | 6+++---
Mexamples/Metronome/ExamplePluginMetronome.cpp | 2+-
Mexamples/Parameters/ExamplePluginParameters.cpp | 4++--
16 files changed, 35 insertions(+), 31 deletions(-)

diff --git 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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -1,6 +1,6 @@ /* LV2 KXStudio Properties Extension - Copyright 2014 Filipe Coelho <falktx@falktx.com> + Copyright 2014-2021 Filipe Coelho <falktx@falktx.com> 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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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).