diff options
author | David Robillard <d@drobilla.net> | 2007-07-03 02:37:24 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-07-03 02:37:24 +0000 |
commit | 0da29770276604a7f0a367cd8eb5ff2fff7a2233 (patch) | |
tree | 87f37c252457eab66c0806e097a2d147d8d66916 /gtk2_ardour/automation_controller.cc | |
parent | ef0b9a740996c432a6a96180814d4f8d0ee16842 (diff) |
Pan automation/serialization fixes.
"Live" Midi CC sending from Midi CC automation track controllers.
git-svn-id: svn://localhost/ardour2/trunk@2097 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/automation_controller.cc')
-rw-r--r-- | gtk2_ardour/automation_controller.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gtk2_ardour/automation_controller.cc b/gtk2_ardour/automation_controller.cc index a95d469d7f..3cb4cc5a1e 100644 --- a/gtk2_ardour/automation_controller.cc +++ b/gtk2_ardour/automation_controller.cc @@ -75,7 +75,11 @@ void AutomationController::update_label(char* label, int label_len) { if (label && label_len) - snprintf(label, label_len, "%.3f", _controllable->get_value()); + // Hack to display CC rounded to int + if (_controllable->list()->param_id().type() == MidiCCAutomation) + snprintf(label, label_len, "%d", (int)_controllable->get_value()); + else + snprintf(label, label_len, "%.3f", _controllable->get_value()); } void |