summaryrefslogtreecommitdiffstats
path: root/src/midi.c
diff options
context:
space:
mode:
authorNao Pross <naopross@thearcway.org>2018-03-12 16:21:53 +0100
committerNao Pross <naopross@thearcway.org>2018-03-12 16:21:53 +0100
commit0bf98ee37b7605dd7b3b98912efac118a653bc82 (patch)
tree525d1f208128b9efb6dea7d18cb2dc23313156eb /src/midi.c
parentUpdate quote, delete mplab garbage (diff)
downloadXilofono-0bf98ee37b7605dd7b3b98912efac118a653bc82.tar.gz
Xilofono-0bf98ee37b7605dd7b3b98912efac118a653bc82.zip
Remove midi_note_t enum, update gitignore
Diffstat (limited to 'src/midi.c')
-rw-r--r--src/midi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/midi.c b/src/midi.c
index 5513123..7ae8df4 100644
--- a/src/midi.c
+++ b/src/midi.c
@@ -59,7 +59,7 @@ int midi_set_channel(midi_message_t *pkt, unsigned channel)
return 0;
}
-int midi_note_on(midi_message_t *pkt, unsigned channel, midi_note_t note, uint8_t velocity)
+int midi_note_on(midi_message_t *pkt, unsigned channel, unsigned note, uint8_t velocity)
{
if (pkt == NULL) {
return -1;
@@ -84,7 +84,7 @@ int midi_note_on(midi_message_t *pkt, unsigned channel, midi_note_t note, uint8_
return 0;
}
-int midi_note_off(midi_message_t *pkt, unsigned channel, midi_note_t note, uint8_t velocity)
+int midi_note_off(midi_message_t *pkt, unsigned channel, unsigned note, uint8_t velocity)
{
if (pkt == NULL) {
return -1;