mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-09 16:24:57 +01:00
Apply master-value to automation on disconnect.
This commit is contained in:
parent
c1912b6d51
commit
8e6f71b8c1
4 changed files with 65 additions and 13 deletions
|
|
@ -250,6 +250,19 @@ ControlList::extend_to (double when)
|
|||
return true;
|
||||
}
|
||||
|
||||
void
|
||||
ControlList::y_transform (boost::function<double(double)> callback)
|
||||
{
|
||||
{
|
||||
Glib::Threads::RWLock::WriterLock lm (_lock);
|
||||
for (iterator i = _events.begin(); i != _events.end(); ++i) {
|
||||
(*i)->value = callback ((*i)->value);
|
||||
}
|
||||
mark_dirty ();
|
||||
}
|
||||
maybe_signal_changed ();
|
||||
}
|
||||
|
||||
void
|
||||
ControlList::_x_scale (double factor)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue