diff options
author | cbdev <cb@cbcdn.com> | 2021-01-15 21:35:21 +0100 |
---|---|---|
committer | cbdev <cb@cbcdn.com> | 2021-01-15 21:35:21 +0100 |
commit | 35f4798673194733358cd3db19a4d2baf70887fd (patch) | |
tree | b445b7012c1ef44d1d391cec178c2e39fe041c4f /backends/midi.c | |
parent | 8ff86335bc9f5233564a0f791174a9cc49ae2df4 (diff) | |
download | midimonster-35f4798673194733358cd3db19a4d2baf70887fd.tar.gz midimonster-35f4798673194733358cd3db19a4d2baf70887fd.tar.bz2 midimonster-35f4798673194733358cd3db19a4d2baf70887fd.zip |
Implement EPN's for the rtpmidi backend
Diffstat (limited to 'backends/midi.c')
-rw-r--r-- | backends/midi.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/backends/midi.c b/backends/midi.c index 10c8c4a..4bf846a 100644 --- a/backends/midi.c +++ b/backends/midi.c @@ -247,6 +247,7 @@ static int midi_set(instance* inst, size_t num, channel** c, channel_value* v){ } break; case pitchbend: + //TODO check whether this actually works that well midi_tx(data->port, ident.fields.type, ident.fields.channel, ident.fields.control, (v[u].normalised * 16383.0) - 8192); break; default: @@ -282,7 +283,7 @@ static char* midi_type_name(uint8_t type){ return "unknown"; } -//this state machine is used more-or-less verbatim in the winmidi and jack backends - fixes need to be applied there, too +//this state machine is used more-or-less verbatim in the winmidi, rtpmidi and jack backends - fixes need to be applied there, too static void midi_handle_epn(instance* inst, uint8_t chan, uint16_t control, uint16_t value){ midi_instance_data* data = (midi_instance_data*) inst->impl; midi_channel_ident ident = { |