Remove some unused includes
[ardour.git] / libs / surfaces / launch_control_xl / leds.cc
1 #include <algorithm>
2
3 #include "launch_control_xl.h"
4 #include "pbd/compose.h"
5 #include "pbd/convert.h"
6 #include "pbd/debug.h"
7 #include "pbd/failed_constructor.h"
8 #include "pbd/file_utils.h"
9 #include "pbd/search_path.h"
10 #include "pbd/enumwriter.h"
11
12 #include "midi++/parser.h"
13
14 #include "ardour/amp.h"
15 #include "ardour/async_midi_port.h"
16 #include "ardour/audioengine.h"
17 #include "ardour/debug.h"
18 #include "ardour/midiport_manager.h"
19 #include "ardour/midi_track.h"
20 #include "ardour/midi_port.h"
21 #include "ardour/session.h"
22 #include "ardour/tempo.h"
23 #include "ardour/types_convert.h"
24 #include "ardour/vca_manager.h"
25
26 #include "gui.h"
27
28 #include "pbd/i18n.h"
29
30 using namespace ArdourSurface;
31 using namespace ARDOUR;
32 using namespace std;
33 using namespace PBD;
34
35 MidiByteArray
36 LaunchControlXL::SelectButton::state_msg(bool light) const {
37   uint8_t velocity = ( color() + flag() ) * light;
38   return MidiByteArray (11, 0xF0, 0x00, 0x20, 0x29, 0x02, 0x11, 0x78, lcxl->template_number(), index(), velocity, 0xF7);
39 }
40
41 MidiByteArray
42 LaunchControlXL::TrackButton::state_msg(bool light) const {
43   uint8_t velocity = ( color() + flag() ) * light;
44   return MidiByteArray (11, 0xF0, 0x00, 0x20, 0x29, 0x02, 0x11, 0x78, lcxl->template_number(), index(), velocity, 0xF7);
45
46 }
47
48 MidiByteArray
49 LaunchControlXL::TrackStateButton::state_msg(bool light) const {
50   uint8_t velocity = ( color() + flag() ) * light;
51   return MidiByteArray (11, 0xF0, 0x00, 0x20, 0x29, 0x02, 0x11, 0x78, lcxl->template_number(), index(), velocity, 0xF7);
52
53 }
54
55 MidiByteArray
56 LaunchControlXL::Knob::state_msg(bool light) const {
57   uint8_t velocity = ( color() + flag() ) * light;
58   return MidiByteArray (11, 0xF0, 0x00, 0x20, 0x29, 0x02, 0x11, 0x78, lcxl->template_number(), index(), velocity, 0xF7);
59 }