diff options
author | Jonathan Straub <j.f.straub@gmx.de> | 2023-12-07 00:45:16 +0100 |
---|---|---|
committer | Jonathan Straub <j.f.straub@gmx.de> | 2023-12-07 00:45:16 +0100 |
commit | 42d201534b4c113db00c8404835658024f89e271 (patch) | |
tree | c9a0c229a959ced17daca78ee6b33d84c8949236 | |
parent | 811592c8190d12c6c7affa5772db3be30ba941e9 (diff) | |
download | midimonster-42d201534b4c113db00c8404835658024f89e271.tar.gz midimonster-42d201534b4c113db00c8404835658024f89e271.tar.bz2 midimonster-42d201534b4c113db00c8404835658024f89e271.zip |
Fix midi pitch output on aarch64 devices
-rw-r--r-- | backends/midi.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/backends/midi.c b/backends/midi.c index 4bf846a..a5f953e 100644 --- a/backends/midi.c +++ b/backends/midi.c @@ -247,8 +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); + midi_tx(data->port, ident.fields.type, ident.fields.channel, ident.fields.control, (int16_t) (v[u].normalised * 16383.0) - 8192); break; default: midi_tx(data->port, ident.fields.type, ident.fields.channel, ident.fields.control, v[u].normalised * 127.0); |