#include <sstream>
#include <algorithm>
#include <sigc++/bind.h>
-#include <ardour/parameter.h>
#include <ardour/automation_list.h>
+#include <ardour/event_type_map.h>
#include <evoral/Curve.hpp>
#include <pbd/stacktrace.h>
#include <pbd/enumwriter.h>
#endif
/* XXX: min_val max_val redundant? (param.min() param.max()) */
-AutomationList::AutomationList (Parameter id)
+AutomationList::AutomationList (Evoral::Parameter id)
: ControlList(id)
{
_state = Off;
/** \a id is used for legacy sessions where the type is not present
* in or below the <AutomationList> node. It is used if \a id is non-null.
*/
-AutomationList::AutomationList (const XMLNode& node, Parameter id)
+AutomationList::AutomationList (const XMLNode& node, Evoral::Parameter id)
: ControlList(id)
{
_touching = false;
_events.clear ();
for (const_iterator i = other._events.begin(); i != other._events.end(); ++i) {
- _events.push_back (new ControlEvent (**i));
+ _events.push_back (new Evoral::ControlEvent (**i));
}
_min_yval = other._min_yval;
char buf[64];
LocaleGuard lg (X_("POSIX"));
- root->add_property ("automation-id", _parameter.symbol());
+ root->add_property ("automation-id", EventTypeMap::instance().to_symbol(_parameter));
root->add_property ("id", _id.to_s());
}
if ((prop = node.property (X_("automation-id"))) != 0){
- _parameter = Evoral::Parameter(prop->value());
+ _parameter = EventTypeMap::instance().new_parameter(prop->value());
} else {
warning << "Legacy session: automation list has no automation-id property.";
}