mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 23:35:03 +01:00
Display recorded controller data (fix show all/existing automation).
git-svn-id: svn://localhost/ardour2/branches/3.0@3779 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
eec19ca7af
commit
e14187aadd
46 changed files with 460 additions and 375 deletions
|
|
@ -63,13 +63,15 @@ AutomationController::~AutomationController()
|
|||
boost::shared_ptr<AutomationController>
|
||||
AutomationController::create(
|
||||
boost::shared_ptr<Automatable> parent,
|
||||
boost::shared_ptr<Evoral::ControlList> cl,
|
||||
const Evoral::Parameter& param,
|
||||
boost::shared_ptr<AutomationControl> ac)
|
||||
{
|
||||
Gtk::Adjustment* adjustment = manage(new Gtk::Adjustment(cl->default_value(), cl->get_min_y(), cl->get_max_y()));
|
||||
Gtk::Adjustment* adjustment = manage(new Gtk::Adjustment(param.normal(), param.min(), param.max()));
|
||||
if (!ac) {
|
||||
PBD::warning << "Creating AutomationController for " << cl->parameter().symbol() << endmsg;
|
||||
ac = boost::dynamic_pointer_cast<AutomationControl>(parent->control_factory(cl));
|
||||
PBD::warning << "Creating AutomationController for " << param.symbol() << endmsg;
|
||||
ac = boost::dynamic_pointer_cast<AutomationControl>(parent->control_factory(param));
|
||||
} else {
|
||||
assert(ac->parameter() == param);
|
||||
}
|
||||
return boost::shared_ptr<AutomationController>(new AutomationController(ac, adjustment));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue