diff options
author | David Robillard <d@drobilla.net> | 2006-06-08 23:46:42 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2006-06-08 23:46:42 +0000 |
commit | 74dd5bd7060b337964d5ea5a3d419c26a62c10a6 (patch) | |
tree | 8a1ece4e1c6eb2b3a09c149b8b2afc71f70a024c /gtk2_ardour/editor_ops.cc | |
parent | 0c1b9afc634d098ac6029acb3508d25823d0fc14 (diff) |
Committed filthy mess of a working copy solely for moving between machines.
Nothing to see here, move along now...
git-svn-id: svn://localhost/trunk/ardour2midi@575 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor_ops.cc')
-rw-r--r-- | gtk2_ardour/editor_ops.cc | 68 |
1 files changed, 66 insertions, 2 deletions
diff --git a/gtk2_ardour/editor_ops.cc b/gtk2_ardour/editor_ops.cc index bccdce27c1..acf205d06f 100644 --- a/gtk2_ardour/editor_ops.cc +++ b/gtk2_ardour/editor_ops.cc @@ -93,14 +93,78 @@ Editor::redo (uint32_t n) void Editor::set_meter_hold (int32_t cnt) { + Config->set_meter_hold_off(false); + Config->set_meter_hold_short(false); + Config->set_meter_hold_medium(false); + Config->set_meter_hold_long(false); + + switch (cnt) + { + case 0: + Config->set_meter_hold_off(true); + break; + case 40: + Config->set_meter_hold_short(true); + break; + case 100: + Config->set_meter_hold_medium(true); + break; + case 200: + Config->set_meter_hold_long(true); + break; + } + if (session) { session->set_meter_hold (cnt); } } void -Editor::set_meter_falloff (float val) -{ +Editor::set_meter_falloff (int intval) +{ + float val; + std::string str; + cerr << "set_meter_falloff () called: intval = " << intval << endl; + Config->set_meter_falloff_off(false); + Config->set_meter_falloff_slowest(false); + Config->set_meter_falloff_slow(false); + Config->set_meter_falloff_medium(false); + Config->set_meter_falloff_fast(false); + Config->set_meter_falloff_faster(false); + Config->set_meter_falloff_fastest(false); + + switch (intval) + { + case 0: + val = 0.0f; + Config->set_meter_falloff_off(true); + break; + case 1: + val = 0.266f; + Config->set_meter_falloff_slowest(true); + break; + case 2: + val = 0.342f; + Config->set_meter_falloff_slow(true); + break; + case 3: + val = 0.7f; + Config->set_meter_falloff_medium(true); + break; + case 4: + val = 1.1f; + Config->set_meter_falloff_fast(true); + break; + case 5: + val = 1.5f; + Config->set_meter_falloff_faster(true); + break; + case 6: + val = 2.5f; + Config->set_meter_falloff_fastest(true); + break; + } + if (session) { session->set_meter_falloff (val); } |