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
|
|
@ -24,9 +24,10 @@ namespace Evoral {
|
|||
|
||||
Parameter::TypeMetadata Parameter::_type_metadata;
|
||||
|
||||
Control::Control(boost::shared_ptr<ControlList> list)
|
||||
: _list(list)
|
||||
, _user_value(list->default_value())
|
||||
Control::Control(const Parameter& parameter, boost::shared_ptr<ControlList> list)
|
||||
: _parameter(parameter)
|
||||
, _list(list)
|
||||
, _user_value(list ? list->default_value() : parameter.normal())
|
||||
{
|
||||
}
|
||||
|
||||
|
|
@ -70,14 +71,6 @@ void
|
|||
Control::set_list(boost::shared_ptr<ControlList> list)
|
||||
{
|
||||
_list = list;
|
||||
_user_value = list->default_value();
|
||||
}
|
||||
|
||||
|
||||
const Parameter&
|
||||
Control::parameter() const
|
||||
{
|
||||
return _list->parameter();
|
||||
}
|
||||
|
||||
} // namespace Evoral
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue