, _a_session (other._a_session)
, _automated_controls (new ControlList)
{
- Glib::Threads::Mutex::Lock lm (other._control_lock);
+ Glib::Threads::Mutex::Lock lm (other._control_lock);
- for (Controls::const_iterator i = other._controls.begin(); i != other._controls.end(); ++i) {
- boost::shared_ptr<Evoral::Control> ac (control_factory (i->first));
+ for (Controls::const_iterator i = other._controls.begin(); i != other._controls.end(); ++i) {
+ boost::shared_ptr<Evoral::Control> ac (control_factory (i->first));
add_control (ac);
- }
+ }
}
Automatable::~Automatable ()
return 0;
- bad:
+bad:
error << string_compose(_("cannot load automation data from %2"), fullpath) << endmsg;
controls().clear ();
::fclose (in);
boost::shared_ptr<AutomationControl> existing = automation_control (param);
if (existing) {
- existing->alist()->set_state (**niter, 3000);
+ existing->alist()->set_state (**niter, 3000);
} else {
- boost::shared_ptr<Evoral::Control> newcontrol = control_factory(param);
+ boost::shared_ptr<Evoral::Control> newcontrol = control_factory(param);
add_control (newcontrol);
- boost::shared_ptr<AutomationList> al (new AutomationList(**niter, param));
+ boost::shared_ptr<AutomationList> al (new AutomationList(**niter, param));
newcontrol->set_list(al);
}