summaryrefslogtreecommitdiffstats
path: root/src/midi.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/midi.h')
-rw-r--r--src/midi.h15
1 files changed, 2 insertions, 13 deletions
diff --git a/src/midi.h b/src/midi.h
index 7ee42b7..0cf458e 100644
--- a/src/midi.h
+++ b/src/midi.h
@@ -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[]);