Apply master-value to automation on disconnect.

This commit is contained in:
Robin Gareus 2017-06-13 20:57:01 +02:00
parent c1912b6d51
commit 8e6f71b8c1
4 changed files with 65 additions and 13 deletions

View file

@ -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)
{