From 1d587592ca1472e38b2f8127b87b6202874f0d4e Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Tue, 25 Jul 2017 16:09:47 +0200 Subject: Add support for Latch Automation --- libs/ardour/utils.cc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libs/ardour/utils.cc') diff --git a/libs/ardour/utils.cc b/libs/ardour/utils.cc index 31a94702e1..17c1da0850 100644 --- a/libs/ardour/utils.cc +++ b/libs/ardour/utils.cc @@ -561,6 +561,8 @@ ARDOUR::string_to_auto_state (std::string str) return Write; } else if (str == X_("Touch")) { return Touch; + } else if (str == X_("Latch")) { + return Latch; } fatal << string_compose (_("programming error: %1 %2"), "illegal AutoState string: ", str) << endmsg; @@ -585,6 +587,10 @@ ARDOUR::auto_state_to_string (AutoState as) break; case Touch: return X_("Touch"); + break; + case Latch: + return X_("Latch"); + break; } fatal << string_compose (_("programming error: %1 %2"), "illegal AutoState type: ", as) << endmsg; -- cgit v1.2.3