summaryrefslogtreecommitdiff
path: root/distrho/DistrhoPlugin.hpp
diff options
context:
space:
mode:
authorfalkTX <falktx@gmail.com>2016-07-30 17:40:59 +0200
committerfalkTX <falktx@gmail.com>2016-07-30 17:40:59 +0200
commitcda831ffcd5f4fe6138e86e5fab70d81f4cf3a18 (patch)
tree1e99aef55558bd579b5ab5627e45d94be6517d8a /distrho/DistrhoPlugin.hpp
parente0a6ebf25188be6c3b88d7458c16646784420b90 (diff)
Add 'midiCC' hint to Parameter, use in as DSSI code already
This provides the initial work for #12. We need to export this info for LV2s as well.
Diffstat (limited to 'distrho/DistrhoPlugin.hpp')
-rw-r--r--distrho/DistrhoPlugin.hpp14
1 files changed, 12 insertions, 2 deletions
diff --git a/distrho/DistrhoPlugin.hpp b/distrho/DistrhoPlugin.hpp
index ebb9a9dc..b31c3756 100644
--- a/distrho/DistrhoPlugin.hpp
+++ b/distrho/DistrhoPlugin.hpp
@@ -290,6 +290,14 @@ struct Parameter {
ParameterRanges ranges;
/**
+ MIDI CC to use by default on this parameter.@n
+ A value of 0 or 32 (bank change) is considered invalid.@n
+ Must also be less or equal to 120.
+ @note This value is only a hint! Hosts might map it automatically or completely ignore it.
+ */
+ uint8_t midiCC;
+
+ /**
Default constructor for a null parameter.
*/
Parameter() noexcept
@@ -297,7 +305,8 @@ struct Parameter {
name(),
symbol(),
unit(),
- ranges() {}
+ ranges(),
+ midiCC(0) {}
/**
Constructor using custom values.
@@ -307,7 +316,8 @@ struct Parameter {
name(n),
symbol(s),
unit(u),
- ranges(def, min, max) {}
+ ranges(def, min, max),
+ midiCC(0) {}
};
/**