summaryrefslogtreecommitdiff
path: root/libs/surfaces/mackie/meter.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2012-04-11 16:31:23 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2012-04-11 16:31:23 +0000
commit337b420266cc1a3dd476f9997caeb107407dd86c (patch)
treeaf187f30154f21d76c1625aeb80eda720544ca1e /libs/surfaces/mackie/meter.cc
parent8cc2f19926b4dbd2c1e48351b07fe63b844a9271 (diff)
MCP: rename raw_id() to id(); add missign modifier_state() function
git-svn-id: svn://localhost/ardour2/branches/3.0@11907 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/surfaces/mackie/meter.cc')
-rw-r--r--libs/surfaces/mackie/meter.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/libs/surfaces/mackie/meter.cc b/libs/surfaces/mackie/meter.cc
index 03c0f1aa30..a4824d3612 100644
--- a/libs/surfaces/mackie/meter.cc
+++ b/libs/surfaces/mackie/meter.cc
@@ -45,7 +45,7 @@ Meter::update_message (float dB)
{
float def = 0.0f; /* Meter deflection %age */
- // DEBUG_TRACE (DEBUG::MackieControl, string_compose ("Meter ID %1 dB %2\n", raw_id(), dB));
+ // DEBUG_TRACE (DEBUG::MackieControl, string_compose ("Meter ID %1 dB %2\n", id(), dB));
if (dB < -70.0f) {
def = 0.0f;
@@ -75,12 +75,12 @@ Meter::update_message (float dB)
if (def > 100.0f) {
if (!overload_on) {
overload_on = true;
- msg << MidiByteArray (2, 0xd0, (raw_id() << 4) | 0xe);
+ msg << MidiByteArray (2, 0xd0, (id() << 4) | 0xe);
}
} else {
if (overload_on) {
overload_on = false;
- msg << MidiByteArray (2, 0xd0, (raw_id() << 4) | 0xf);
+ msg << MidiByteArray (2, 0xd0, (id() << 4) | 0xf);
}
}
@@ -90,7 +90,7 @@ Meter::update_message (float dB)
if (last_segment_value_sent != segment) {
last_segment_value_sent = segment;
- msg << MidiByteArray (2, 0xD0, (raw_id()<<4) | segment);
+ msg << MidiByteArray (2, 0xD0, (id()<<4) | segment);
}
return msg;