diff options
author | skullY <skullydazed@gmail.com> | 2019-08-30 11:19:03 -0700 |
---|---|---|
committer | skullydazed <skullydazed@users.noreply.github.com> | 2019-08-30 15:01:52 -0700 |
commit | b624f32f944acdc59dcb130674c09090c5c404cb (patch) | |
tree | bc13adbba137d122d9a2c2fb2fafcbb08ac10e25 /quantum/process_keycode/process_midi.h | |
parent | 61af76a10d00aba185b8338604171de490a13e3b (diff) | |
download | qmk_firmware-b624f32f944acdc59dcb130674c09090c5c404cb.tar.gz qmk_firmware-b624f32f944acdc59dcb130674c09090c5c404cb.zip |
clang-format changes
Diffstat (limited to 'quantum/process_keycode/process_midi.h')
-rw-r--r-- | quantum/process_keycode/process_midi.h | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/quantum/process_keycode/process_midi.h b/quantum/process_keycode/process_midi.h index 1968fbe3f..0007b3ed2 100644 --- a/quantum/process_keycode/process_midi.h +++ b/quantum/process_keycode/process_midi.h | |||
@@ -21,24 +21,24 @@ | |||
21 | 21 | ||
22 | #ifdef MIDI_ENABLE | 22 | #ifdef MIDI_ENABLE |
23 | 23 | ||
24 | #ifdef MIDI_BASIC | 24 | # ifdef MIDI_BASIC |
25 | void process_midi_basic_noteon(uint8_t note); | 25 | void process_midi_basic_noteon(uint8_t note); |
26 | void process_midi_basic_noteoff(uint8_t note); | 26 | void process_midi_basic_noteoff(uint8_t note); |
27 | void process_midi_all_notes_off(void); | 27 | void process_midi_all_notes_off(void); |
28 | #endif | 28 | # endif |
29 | 29 | ||
30 | void midi_task(void); | 30 | void midi_task(void); |
31 | 31 | ||
32 | #ifdef MIDI_ADVANCED | 32 | # ifdef MIDI_ADVANCED |
33 | typedef union { | 33 | typedef union { |
34 | uint32_t raw; | 34 | uint32_t raw; |
35 | struct { | 35 | struct { |
36 | uint8_t octave :4; | 36 | uint8_t octave : 4; |
37 | int8_t transpose :4; | 37 | int8_t transpose : 4; |
38 | uint8_t velocity :4; | 38 | uint8_t velocity : 4; |
39 | uint8_t channel :4; | 39 | uint8_t channel : 4; |
40 | uint8_t modulation_interval :4; | 40 | uint8_t modulation_interval : 4; |
41 | }; | 41 | }; |
42 | } midi_config_t; | 42 | } midi_config_t; |
43 | 43 | ||
44 | extern midi_config_t midi_config; | 44 | extern midi_config_t midi_config; |
@@ -46,12 +46,12 @@ extern midi_config_t midi_config; | |||
46 | void midi_init(void); | 46 | void midi_init(void); |
47 | bool process_midi(uint16_t keycode, keyrecord_t *record); | 47 | bool process_midi(uint16_t keycode, keyrecord_t *record); |
48 | 48 | ||
49 | #define MIDI_INVALID_NOTE 0xFF | 49 | # define MIDI_INVALID_NOTE 0xFF |
50 | #define MIDI_TONE_COUNT (MIDI_TONE_MAX - MIDI_TONE_MIN + 1) | 50 | # define MIDI_TONE_COUNT (MIDI_TONE_MAX - MIDI_TONE_MIN + 1) |
51 | 51 | ||
52 | uint8_t midi_compute_note(uint16_t keycode); | 52 | uint8_t midi_compute_note(uint16_t keycode); |
53 | #endif // MIDI_ADVANCED | 53 | # endif // MIDI_ADVANCED |
54 | 54 | ||
55 | #endif // MIDI_ENABLE | 55 | #endif // MIDI_ENABLE |
56 | 56 | ||
57 | #endif | 57 | #endif |