remove cruft
[ardour.git] / libs / surfaces / mackie / pot.cc
index 8f0298ea72b7b4df986319047d110979f349a05e..3ac991116f2153aa19982d1c8ecd5232015dca99 100644 (file)
@@ -22,6 +22,7 @@
 #include "surface.h"
 #include "control_group.h"
 
+using namespace ArdourSurface;
 using namespace Mackie;
 
 int const Pot::External = 0x2e; /* specific ID for "vpot" representing external control */
@@ -44,7 +45,7 @@ Pot::set (float val, bool onoff, Mode mode)
 
        // center on if val is "very close" to 0.50
        MIDI::byte msg =  (val > 0.48 && val < 0.58 ? 1 : 0) << 6;
-       
+
        // Pot/LED mode
        msg |=  (mode << 4);
 
@@ -56,7 +57,7 @@ Pot::set (float val, bool onoff, Mode mode)
        if (val < 0){
          val = val * -1;
        }
-       
+
        // val, but only if off hasn't explicitly been set
        if (onoff) {
                if (mode == spread) {
@@ -72,4 +73,4 @@ Pot::set (float val, bool onoff, Mode mode)
        return MidiByteArray (3, 0xb0, 0x20 + id(), msg);
 
 }
-       
+