summaryrefslogtreecommitdiff
path: root/libs/surfaces/mackie/surface.h
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2012-04-11 13:03:41 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2012-04-11 13:03:41 +0000
commit02c8ccf348fb16b740089c3ec39053a8b00c1f82 (patch)
tree12cd938283afdb6401df5f80556937ef97ef0dbf /libs/surfaces/mackie/surface.h
parent0860570c8cccb50229e5321477a72bce915f7235 (diff)
move all code to construct MIDI messages into relevant Control/Strip/Surface object; remove MackieMidiBuilder
git-svn-id: svn://localhost/ardour2/branches/3.0@11895 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/surfaces/mackie/surface.h')
-rw-r--r--libs/surfaces/mackie/surface.h16
1 files changed, 13 insertions, 3 deletions
diff --git a/libs/surfaces/mackie/surface.h b/libs/surfaces/mackie/surface.h
index 52ac8f14ba..dbc4f2530b 100644
--- a/libs/surfaces/mackie/surface.h
+++ b/libs/surfaces/mackie/surface.h
@@ -7,7 +7,6 @@
#include "controls.h"
#include "types.h"
-#include "mackie_midi_builder.h"
#include "mackie_jog_wheel.h"
namespace MIDI {
@@ -33,7 +32,6 @@ class Fader;
class Jog;
class Pot;
class Led;
-class LedRing;
class Surface : public PBD::ScopedConnectionList
{
@@ -132,6 +130,19 @@ public:
void handle_control_event (Mackie::Control & control, const Mackie::ControlState & state);
+ // display the first 2 chars of the msg in the 2 char display
+ // . is appended to the previous character, so A.B. would
+ // be two characters
+ MidiByteArray two_char_display (const std::string & msg, const std::string & dots = " ");
+ MidiByteArray two_char_display (unsigned int value, const std::string & dots = " ");
+
+ /**
+ Timecode display. Only the difference between timecode and last_timecode will
+ be encoded, to save midi bandwidth. If they're the same, an empty array will
+ be returned
+ */
+ MidiByteArray timecode_display (const std::string & timecode, const std::string & last_timecode = "");
+
protected:
void init_controls();
void init_strips ();
@@ -144,7 +155,6 @@ public:
bool _active;
bool _connected;
Mackie::JogWheel* _jog_wheel;
- MackieMidiBuilder builder;
void jog_wheel_state_display (Mackie::JogWheel::State state);
};