mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 14:54:56 +01:00
Display amp automation in dB using a logarithmic fader.
git-svn-id: svn://localhost/ardour2/branches/3.0@11535 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
aef76e95d6
commit
3a4650cba7
3 changed files with 24 additions and 3 deletions
|
|
@ -76,9 +76,15 @@ AutomationController::create(
|
|||
const Evoral::Parameter& param,
|
||||
boost::shared_ptr<AutomationControl> ac)
|
||||
{
|
||||
Gtk::Adjustment* adjustment = manage (new Gtk::Adjustment (param.normal(), param.min(), param.max(),
|
||||
(param.max() - param.min())/100.0,
|
||||
(param.max() - param.min())/10.0));
|
||||
Gtk::Adjustment* adjustment = manage (
|
||||
new Gtk::Adjustment (
|
||||
ac->internal_to_interface (param.normal()),
|
||||
ac->internal_to_interface (param.min()),
|
||||
ac->internal_to_interface (param.max()),
|
||||
(param.max() - param.min()) / 100.0,
|
||||
(param.max() - param.min()) / 10.0
|
||||
)
|
||||
);
|
||||
|
||||
assert (ac);
|
||||
assert(ac->parameter() == param);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue