summaryrefslogtreecommitdiff
path: root/floppyMusic/midi.c
diff options
context:
space:
mode:
Diffstat (limited to 'floppyMusic/midi.c')
-rw-r--r--floppyMusic/midi.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/floppyMusic/midi.c b/floppyMusic/midi.c
index 8e760a8..62c1b1d 100644
--- a/floppyMusic/midi.c
+++ b/floppyMusic/midi.c
@@ -31,6 +31,8 @@ void midi_setup()
UCSRB = (1<<RXEN) | (1<<TXEN) | (1<<RXCIE); //Enable Tx, Rx and Rx Interrupt
UCSRC = (1<<URSEL) | (1<<USBS) | (3<<UCSZ0);
+ midi_uart_outs("MIDI set up successfully");
+
}
void midi_process()
@@ -52,6 +54,8 @@ void midi_process()
midi_command(command, note, velocity);
+ //midi_uart_outs("\nCommand received:\n");
+ midi_uart_out(command);
}
void midi_command(char _cmd, char _note, char _vel)
@@ -138,3 +142,12 @@ void midi_uart_out(unsigned char _c)
/* Put data into buffer, sends the data */
UDR = _c;
}
+
+ void midi_uart_outs( char *_s)
+ {
+ while(*_s)
+ {
+ midi_uart_out(*_s);
+ _s++;
+ }
+ } \ No newline at end of file