Expose “/route/trim” midi binding.
authorRobin Gareus <robin@gareus.org>
Sun, 26 Apr 2015 17:07:45 +0000 (19:07 +0200)
committerRobin Gareus <robin@gareus.org>
Sun, 26 Apr 2015 17:07:45 +0000 (19:07 +0200)
libs/ardour/session_state.cc
libs/pbd/controllable_descriptor.cc
libs/pbd/pbd/controllable_descriptor.h

index 32b6e28c47e00fe82f283191122432f02a0e6bf3..ae10b281fc601b383d612dfc6c340bb6ca54bb06 100644 (file)
@@ -3077,6 +3077,10 @@ Session::controllable_by_descriptor (const ControllableDescriptor& desc)
                c = r->gain_control ();
                break;
 
+       case ControllableDescriptor::Trim:
+               c = r->trim()->gain_control ();
+               break;
+
        case ControllableDescriptor::Solo:
                 c = r->solo_control();
                break;
index 392b917ec888d514e4e9cfb85bd19851437702ac..63ecab12bf5c1815c85aa29154f64b1cd7f9d70c 100644 (file)
@@ -72,6 +72,9 @@ ControllableDescriptor::set (const std::string& str)
        if (path[1] == "gain") {
                _subtype = Gain;
 
+       } else if (path[1] == "trim") {
+               _subtype = Trim;
+
        } else if (path[1] == "solo") {
                _subtype = Solo;
 
index b234dbd2930f119ad74e300780ebc582d94082d9..ddb29a20155b6dc9e3ac87f2eac18c513b30be96 100644 (file)
@@ -36,6 +36,7 @@ public:
 
     enum SubType {
            Gain,
+           Trim,
            Solo,
            Mute,
            Recenable,