}
} else {
view_to_model_y(fraction);
- if (((ARDOUR::Parameter)alist->parameter()).is_integer())
+ if (EventTypeMap::instance().is_integer(alist->parameter())) {
snprintf (buf, sizeof (buf), "%d", (int)fraction);
- else
+ } else {
snprintf (buf, sizeof (buf), "%.2f", fraction);
+ }
}
return buf;
alist->move_range (start, end, xdelta, ydelta);
}
+void
+AutomationLine::set_list(boost::shared_ptr<ARDOUR::AutomationList> list)
+{
+ alist = list;
+ queue_reset();
+}
+
void
AutomationLine::show_all_control_points ()
{