diff options
author | Nao Pross <naopross@thearcway.org> | 2018-03-12 16:21:53 +0100 |
---|---|---|
committer | Nao Pross <naopross@thearcway.org> | 2018-03-12 16:21:53 +0100 |
commit | 0bf98ee37b7605dd7b3b98912efac118a653bc82 (patch) | |
tree | 525d1f208128b9efb6dea7d18cb2dc23313156eb /src/midi.h | |
parent | Update quote, delete mplab garbage (diff) | |
download | Xilofono-0bf98ee37b7605dd7b3b98912efac118a653bc82.tar.gz Xilofono-0bf98ee37b7605dd7b3b98912efac118a653bc82.zip |
Remove midi_note_t enum, update gitignore
Diffstat (limited to 'src/midi.h')
-rw-r--r-- | src/midi.h | 15 |
1 files changed, 2 insertions, 13 deletions
@@ -18,17 +18,6 @@ #define MIDI_DATA_MAX_SIZE 4 #endif - -typedef enum { - C = 0, // Do - D = 1, // Re - E = 2, // Mi - F = 3, // Fa - G = 4, // Sol - A = 5, // La - B = 6, // Si -} midi_note_t; - typedef enum { NOTE_OFF = 0x8, NOTE_ON = 0x9, @@ -83,8 +72,8 @@ extern int midi_set_status(midi_message_t *pkt, midi_status_t status); extern int midi_set_channel(midi_message_t *pkt, unsigned channel); // message building -extern int midi_note_on(midi_message_t *pkt, unsigned channel, midi_note_t note, uint8_t velocity); -extern int midi_note_off(midi_message_t *pkt, unsigned channel, midi_note_t note, uint8_t velocity); +extern int midi_note_on(midi_message_t *pkt, unsigned channel, unsigned note, uint8_t velocity); +extern int midi_note_off(midi_message_t *pkt, unsigned channel, unsigned note, uint8_t velocity); // optimization // extern int midi_thin_data(void *buffer, midi_message_t pkt[]); |