diff options
author | David Robillard <d@drobilla.net> | 2007-07-03 18:39:09 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-07-03 18:39:09 +0000 |
commit | 133a66920bbdd3bc11bd4ae866048b0f1f52ecd4 (patch) | |
tree | aee991080adccaee612643ef3c06787774353346 /gtk2_ardour/automation_line.cc | |
parent | 0da29770276604a7f0a367cd8eb5ff2fff7a2233 (diff) |
s/ParamID/Parameter/
git-svn-id: svn://localhost/ardour2/trunk@2098 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/automation_line.cc')
-rw-r--r-- | gtk2_ardour/automation_line.cc | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/gtk2_ardour/automation_line.cc b/gtk2_ardour/automation_line.cc index bbbed006c5..77f9adb757 100644 --- a/gtk2_ardour/automation_line.cc +++ b/gtk2_ardour/automation_line.cc @@ -249,7 +249,7 @@ AutomationLine::AutomationLine (const string & name, TimeAxisView& tv, ArdourCan trackview.session().register_with_memento_command_factory(alist->id(), this); - if (alist->param_id().type() == GainAutomation) + if (alist->parameter().type() == GainAutomation) set_verbose_cursor_uses_gain_mapping (true); } @@ -1297,14 +1297,14 @@ AutomationLine::set_state (const XMLNode &node) void AutomationLine::view_to_model_y (double& y) { - if (alist->param_id().type() == GainAutomation) { + if (alist->parameter().type() == GainAutomation) { y = slider_position_to_gain (y); y = max (0.0, y); y = min (2.0, y); - } else if (alist->param_id().type() == PanAutomation) { + } else if (alist->parameter().type() == PanAutomation) { // vertical coordinate axis reversal y = 1.0 - y; - } else if (alist->param_id().type() == MidiCCAutomation) { + } else if (alist->parameter().type() == MidiCCAutomation) { y = (int)(y * 127.0); } } @@ -1312,14 +1312,14 @@ AutomationLine::view_to_model_y (double& y) void AutomationLine::model_to_view_y (double& y) { - if (alist->param_id().type() == GainAutomation) { + if (alist->parameter().type() == GainAutomation) { y = gain_to_slider_position (y); - } else if (alist->param_id().type() == PanAutomation) { + } else if (alist->parameter().type() == PanAutomation) { // vertical coordinate axis reversal y = 1.0 - y; - } else if (alist->param_id().type() == MidiCCAutomation) { + } else if (alist->parameter().type() == MidiCCAutomation) { y = y / 127.0; - } else if (alist->param_id().type() == PluginAutomation) { + } else if (alist->parameter().type() == PluginAutomation) { y = (y - alist->get_min_y()) / (double)(alist->get_max_y()- alist->get_min_y()); } } |