Allow -ve framepos handling in TempoMap::framepos_plus_beats()
[ardour.git] / libs / ardour / midi_automation_list_binder.cc
index fbb87c5cfa2a2265191ae3051529ea30bcf99d92..b01155b7391719ce4a5dd1b86a8b140f1bb3077b 100644 (file)
@@ -35,17 +35,17 @@ MidiAutomationListBinder::MidiAutomationListBinder (boost::shared_ptr<MidiSource
 MidiAutomationListBinder::MidiAutomationListBinder (XMLNode* node, Session::SourceMap const & sources)
        : _parameter (0, 0, 0)
 {
-       XMLProperty* source = node->property ("source-id");
+       XMLProperty const * source = node->property ("source-id");
        assert (source);
 
-       XMLProperty* parameter = node->property ("parameter");
+       XMLProperty const * parameter = node->property ("parameter");
        assert (parameter);
 
        Session::SourceMap::const_iterator i = sources.find (PBD::ID (source->value()));
        assert (i != sources.end());
        _source = boost::dynamic_pointer_cast<MidiSource> (i->second);
 
-       _parameter = EventTypeMap::instance().new_parameter (parameter->value());
+       _parameter = EventTypeMap::instance().from_symbol (parameter->value());
 }
 
 AutomationList*