3.0 version of rev 5564 from 2.x - basic boolean plugin parameter automation (no...
[ardour.git] / libs / ardour / event_type_map.cc
index 0388a934f20bd9fa92ebd5af2e0ee1257040db17..d88e5afd265a8c1693140dfbbd838e187207e92e 100644 (file)
@@ -168,7 +168,7 @@ EventTypeMap::new_parameter(uint32_t type, uint8_t channel, uint32_t id) const
                return p;
        }
 
-       p.set_range(type, min, max, normal);
+       p.set_range(type, min, max, normal, false);
        return p;
 }
 
@@ -219,7 +219,7 @@ EventTypeMap::new_parameter(const string& str) const
                assert(channel < 16);
                p_id = 0;
                p_channel = channel;
-       } else if (str.length() > 24 && str.substr(0, 24) == "midi-channel-pressure-") {
+       } else if (str.length() > 22 && str.substr(0, 22) == "midi-channel-pressure-") {
                p_type = MidiChannelPressureAutomation;
                uint32_t channel = 0;
                sscanf(str.c_str(), "midi-channel-pressure-%d", &channel);