ref: d7e1d486d0930206d47dc9bd2aaef4a0f20bda3d
parent: 0615f1d570dfaf48818fa6cef8a3eaf664a98dc8
author: cancel <cancel@cancel.fm>
date: Tue Jan 21 13:59:30 EST 2020
Cleanup
--- a/tui_main.c
+++ b/tui_main.c
@@ -969,19 +969,14 @@
case Midi_mode_type_osc_bidule: {
if (!oosc_dev)
break; // not sure if needed
- I32 ints[3];
- ints[0] = (type << 4) | chan; // status
- ints[1] = byte1;
- ints[2] = byte2;
- oosc_send_int32s(oosc_dev, midi_mode->osc_bidule.path, ints,
- ORCA_ARRAY_COUNTOF(ints));
+ oosc_send_int32s(oosc_dev, midi_mode->osc_bidule.path,
+ (int[]){type << 4 | chan, byte1, byte2}, 3);
break;
}
#ifdef FEAT_PORTMIDI
case Midi_mode_type_portmidi: {
- int istatus = (type << 4) | chan;
PmError pme = Pm_WriteShort(midi_mode->portmidi.stream, 0,
- Pm_Message(istatus, byte1, byte2));
+ Pm_Message(type << 4 | chan, byte1, byte2));
(void)pme;
break;
}