blob: c28ea8d3b61d88cb6bb9da264ae0ed06c3f88bc0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
/**
* @file midioutputhandler.h
* @author Sean Pappalardo spappalardo@mixxx.org
* @date Tue 11 Feb 2012
* @brief Static MIDI output mapping handler
*
* This class listens to a control object and sends a midi message based on the
* value.
*/
#ifndef MIDIOUTPUTHANDLER_H
#define MIDIOUTPUTHANDLER_H
#include "control/controlproxy.h"
#include "controllers/midi/midimessage.h"
class MidiController;
class MidiOutputHandler : QObject {
Q_OBJECT
public:
MidiOutputHandler(MidiController* controller,
const MidiOutputMapping& mapping);
virtual ~MidiOutputHandler();
bool validate();
void update();
public slots:
void controlChanged(double value);
private:
MidiController* m_pController;
const MidiOutputMapping m_mapping;
ControlProxy m_cos;
int m_lastVal;
};
#endif
|