summaryrefslogtreecommitdiff
path: root/floppyMusic/midi.h
blob: f30f1c4e5d6a2a817b15e5faaa5d79650257b9b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*
 * midi.h
 *
 * Created: 12.06.2017 20:43:37
 *  Author: Jonas
 */ 


#ifndef MIDI_H_
#define MIDI_H_

#define _MIDI_SEND 0
#define _MIDI_RECIEVE 1

#include "uart.h"

struct midi_command
{
	char command;
	char channel;
	char note;
	char velocity;
};


void midi_setup();

void midi_recieve(struct midi_command *_command);

void midi_send(struct midi_command _command);



#endif /* MIDI_H_ */