trying to track down why undo doesn't remove xfade rendering on OS X
[ardour.git] / libs / pbd / controllable_descriptor.cc
index 2f84d706b42cb5cb168baff4615fdec3ec16184a..392b917ec888d514e4e9cfb85bd19851437702ac 100644 (file)
@@ -49,18 +49,6 @@ ControllableDescriptor::set (const std::string& str)
                return -1;
        }
 
-       cerr << "Path: " << endl;
-       for (vector<string>::iterator x = path.begin(); x != path.end(); ++x) {
-               cerr << '[' << (*x) << "] ";
-       } 
-       cerr << endl;
-
-       cerr << "Rest: " << endl;
-       for (vector<string>::iterator x = rest.begin(); x != rest.end(); ++x) {
-               cerr << '[' << (*x) << "] ";
-       } 
-       cerr << endl;
-
        if (path[0] == "route" || path[0] == "rid") {
 
                _top_level_type = RemoteControlID;
@@ -96,9 +84,11 @@ ControllableDescriptor::set (const std::string& str)
        } else if (path[1] == "balance") {
                _subtype = Balance;
 
-       } else if (path[1] == "pan") {
-               _subtype = Pan;
-               _target.push_back (atoi (rest[1]));
+       } else if (path[1] == "panwidth") {
+               _subtype = PanWidth;
+
+       } else if (path[1] == "pandirection") {
+               _subtype = PanDirection;
 
        } else if (path[1] == "plugin") {
                if (path.size() == 3 && rest.size() == 3) {