From ad43eedfeec3db424867ee34564cb26c8b967a59 Mon Sep 17 00:00:00 2001 From: heck Date: Wed, 14 Dec 2022 23:01:08 +0100 Subject: [PATCH] cosmetic --- src/vmio.h | 31 ++++++++++++++++++------------- 1 file changed, 18 insertions(+), 13 deletions(-) diff --git a/src/vmio.h b/src/vmio.h index 0e2c989..97b43c6 100644 --- a/src/vmio.h +++ b/src/vmio.h @@ -1,6 +1,12 @@ #pragma once #include "base.h" +enum +{ + Oevent_osc_int_count = 35, + Oevent_udp_string_count = 16 +}; + typedef enum { Oevent_type_midi_note, @@ -16,24 +22,28 @@ typedef struct { typedef struct { U8 oevent_type; - U8 channel, octave, note, velocity, duration : 7, mono : 1; + U8 channel; + U8 octave; + U8 note; + U8 velocity; + U8 duration : 7; + U8 mono : 1; } Oevent_midi_note; typedef struct { U8 oevent_type; - U8 channel, control, value; + U8 channel; + U8 control; + U8 value; } Oevent_midi_cc; typedef struct { U8 oevent_type; - U8 channel, lsb, msb; + U8 channel; + U8 lsb; + U8 msb; } Oevent_midi_pb; -enum -{ - Oevent_osc_int_count = 35 -}; - typedef struct { U8 oevent_type; Glyph glyph; @@ -41,11 +51,6 @@ typedef struct { U8 numbers[Oevent_osc_int_count]; } Oevent_osc_ints; -enum -{ - Oevent_udp_string_count = 16 -}; - typedef struct { U8 oevent_type; U8 count;