1 |
/* |
/* |
2 |
Copyright (C) 2008 - 2014 Christian Schoenebeck |
Copyright (C) 2008 - 2016 Christian Schoenebeck |
3 |
*/ |
*/ |
4 |
|
|
5 |
#ifndef LS_VIRTUALMIDIDEVICE_H |
#ifndef LS_VIRTUALMIDIDEVICE_H |
24 |
EVENT_TYPE_NOTEOFF = 2, |
EVENT_TYPE_NOTEOFF = 2, |
25 |
EVENT_TYPE_CC = 3, |
EVENT_TYPE_CC = 3, |
26 |
EVENT_TYPE_PITCHBEND, |
EVENT_TYPE_PITCHBEND, |
27 |
EVENT_TYPE_PROGRAM |
EVENT_TYPE_PROGRAM, |
28 |
|
EVENT_TYPE_CHPRESSURE, |
29 |
}; |
}; |
30 |
|
|
31 |
struct event_t { |
struct event_t { |
63 |
bool SendCCToSampler(uint8_t Controller, uint8_t Value); |
bool SendCCToSampler(uint8_t Controller, uint8_t Value); |
64 |
|
|
65 |
/** |
/** |
66 |
|
* Sends a MIDI @e Channel @e Pressure (aftertouch) event to the sampler. |
67 |
|
* |
68 |
|
* @returns true on success, false if internal FIFO full |
69 |
|
* (or provided value invalid) |
70 |
|
*/ |
71 |
|
bool SendChannelPressureToSampler(uint8_t Pressure); |
72 |
|
|
73 |
|
/** |
74 |
* Sends a MIDI @e Pitch @e Bend event to the sampler. |
* Sends a MIDI @e Pitch @e Bend event to the sampler. |
75 |
* |
* |
76 |
* @param Pitch - MIDI pitch value (-8192 ... +8191) |
* @param Pitch - MIDI pitch value (-8192 ... +8191) |