Skip to content

Commit c247b03

Browse files
authored
Merge pull request #137 from JonFStr/master
Fix midi pitch output on aarch64 devices
2 parents 18fb703 + 42d2015 commit c247b03

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

backends/midi.c

+1-2
Original file line numberDiff line numberDiff line change
@@ -247,8 +247,7 @@ static int midi_set(instance* inst, size_t num, channel** c, channel_value* v){
247247
}
248248
break;
249249
case pitchbend:
250-
//TODO check whether this actually works that well
251-
midi_tx(data->port, ident.fields.type, ident.fields.channel, ident.fields.control, (v[u].normalised * 16383.0) - 8192);
250+
midi_tx(data->port, ident.fields.type, ident.fields.channel, ident.fields.control, (int16_t) (v[u].normalised * 16383.0) - 8192);
252251
break;
253252
default:
254253
midi_tx(data->port, ident.fields.type, ident.fields.channel, ident.fields.control, v[u].normalised * 127.0);

0 commit comments

Comments
 (0)