28 |
#include "../../common/Mutex.h" |
#include "../../common/Mutex.h" |
29 |
#include "../../common/LinuxSamplerException.h" |
#include "../../common/LinuxSamplerException.h" |
30 |
#include "../DeviceParameter.h" |
#include "../DeviceParameter.h" |
31 |
|
#include "midi.h" |
32 |
#include "MidiInputDevice.h" |
#include "MidiInputDevice.h" |
33 |
#include "../../engines/common/EngineChannel.h" |
#include "../../engines/common/EngineChannel.h" |
34 |
|
|
36 |
|
|
37 |
// just symbol prototyping |
// just symbol prototyping |
38 |
class MidiInputDevice; |
class MidiInputDevice; |
39 |
|
class EngineChannel; |
40 |
|
|
41 |
class MidiInputPort { |
class MidiInputPort { |
42 |
public: |
public: |
44 |
///////////////////////////////////////////////////////////////// |
///////////////////////////////////////////////////////////////// |
45 |
// type definitions |
// type definitions |
46 |
|
|
|
/** |
|
|
* MIDI channels |
|
|
*/ |
|
|
enum midi_chan_t { |
|
|
midi_chan_1 = 0, |
|
|
midi_chan_2 = 1, |
|
|
midi_chan_3 = 2, |
|
|
midi_chan_4 = 3, |
|
|
midi_chan_5 = 4, |
|
|
midi_chan_6 = 5, |
|
|
midi_chan_7 = 6, |
|
|
midi_chan_8 = 7, |
|
|
midi_chan_9 = 8, |
|
|
midi_chan_10 = 9, |
|
|
midi_chan_11 = 10, |
|
|
midi_chan_12 = 11, |
|
|
midi_chan_13 = 12, |
|
|
midi_chan_14 = 13, |
|
|
midi_chan_15 = 14, |
|
|
midi_chan_16 = 15, |
|
|
midi_chan_all = 16 |
|
|
}; |
|
|
|
|
47 |
/** MIDI Port Parameter 'NAME' |
/** MIDI Port Parameter 'NAME' |
48 |
* |
* |
49 |
* Used to assign an arbitrary name to the MIDI port. |
* Used to assign an arbitrary name to the MIDI port. |
213 |
virtual ~MidiInputPort(); |
virtual ~MidiInputPort(); |
214 |
|
|
215 |
friend class MidiInputDevice; |
friend class MidiInputDevice; |
216 |
|
|
217 |
private: |
private: |
218 |
EngineChannel* pPreviousProgramChangeEngineChannel; ///< Points to the engine channel which was connected by the previous DispatchProgramChange() call. |
EngineChannel* pPreviousProgramChangeEngineChannel; ///< Points to the engine channel which was connected by the previous DispatchProgramChange() call. |
219 |
}; |
}; |