summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2017-01-09 15:01:34 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2017-01-09 15:01:55 +0000
commit23076f3fc44e01dd8b59086298a017dbe154a69a (patch)
tree4dd1d87432ce836aef408eff745c45f0fa5b613d
parent726d86261337be4b82addb0010ac411872ec6622 (diff)
add XML names/handling for additional Parameter types.
This is still incomplete and really not generic. Ought to be revisited, but has backwards compatibility issues that make it more complex
-rw-r--r--libs/ardour/event_type_map.cc26
1 files changed, 26 insertions, 0 deletions
diff --git a/libs/ardour/event_type_map.cc b/libs/ardour/event_type_map.cc
index ab6fd26f7e..95e55a859e 100644
--- a/libs/ardour/event_type_map.cc
+++ b/libs/ardour/event_type_map.cc
@@ -137,6 +137,10 @@ EventTypeMap::from_symbol(const string& str) const
p_type = TrimAutomation;
} else if (str == "solo") {
p_type = SoloAutomation;
+ } else if (str == "solo-iso") {
+ p_type = SoloIsolateAutomation;
+ } else if (str == "solo-safe") {
+ p_type = SoloSafeAutomation;
} else if (str == "mute") {
p_type = MuteAutomation;
} else if (str == "fadein") {
@@ -155,6 +159,16 @@ EventTypeMap::from_symbol(const string& str) const
p_type = PanFrontBackAutomation;
} else if (str == "pan-lfe") {
p_type = PanLFEAutomation;
+ } else if (str == "rec-enable") {
+ p_type = RecEnableAutomation;
+ } else if (str == "rec-safe") {
+ p_type = RecSafeAutomation;
+ } else if (str == "phase") {
+ p_type = PhaseAutomation;
+ } else if (str == "monitor") {
+ p_type = MonitoringAutomation;
+ } else if (str == "pan-lfe") {
+ p_type = PanLFEAutomation;
} else if (str.length() > 10 && str.substr(0, 10) == "parameter-") {
p_type = PluginAutomation;
p_id = atoi(str.c_str()+10);
@@ -241,6 +255,18 @@ EventTypeMap::to_symbol(const Evoral::Parameter& param) const
return "fadeout";
} else if (t == EnvelopeAutomation) {
return "envelope";
+ } else if (t == PhaseAutomation) {
+ return "phase";
+ } else if (t == SoloIsolateAutomation) {
+ return "solo-iso";
+ } else if (t == SoloSafeAutomation) {
+ return "solo-safe";
+ } else if (t == MonitoringAutomation) {
+ return "monitor";
+ } else if (t == RecEnableAutomation) {
+ return "rec-enable";
+ } else if (t == RecSafeAutomation) {
+ return "rec-safe";
} else if (t == PluginAutomation) {
return string_compose("parameter-%1", param.id());
#ifdef LV2_SUPPORT