Line No. | Rev | Author | Line |
---|---|---|---|
1 | 6 | kaklik | #ifndef _MIDI_H |
2 | #define _MIDI_H |
||
3 | |||
4 | #define MIDI_NOTE_ON 0x90 |
||
5 | #define MIDI_NOTE_OFF 0x80 |
||
6 | |||
7 | // 1010cccc 0nnnnnnn 0vvvvvvv |
||
8 | #define MIDI_POLY_TOUCH 0xA0 |
||
9 | // 1011cccc 0nnnnnnn 0vvvvvvv |
||
10 | #define MIDI_CONTROL_CHANGE 0xB0 |
||
11 | // 1100cccc 0ppppppp |
||
12 | #define MIDI_PROGRAM_CHANGE 0xC0 |
||
13 | |||
14 | #define MIDI_CHANNEL_TOUCH 0xD0 |
||
15 | |||
16 | #define MIDI_PITCH_BEND 0xE0 |
||
17 | |||
18 | #define MIDI_DATA_MASK 0x7F |
||
19 | #define MIDI_STATUS_MASK 0xF0 |
||
20 | #define MIDI_CHANNEL_MASK 0x0F |
||
21 | |||
22 | #define MIDI_BAUD_RATE 31250 |
||
23 | |||
24 | #include "global.h" |
||
25 | #include "buffer.h" |
||
26 | |||
27 | void midiInit(void); |
||
28 | u08 midiNoteOnOut(u08 note, u08 vel, u08 channel); |
||
29 | u08 midiNoteOffOut(u08 note, u08 vel, u08 channel); |
||
30 | u08 midiControlChangeOut(u08 controller, u08 value, u08 channel); |
||
31 | u08 midiProgramChangeOut(u08 program, u08 channel); |
||
32 | u08 midiPolyTouchOut(u08 note, u08 pressure, u08 channel); |
||
33 | u08 midiChannelTouchOut(u08 pressure, u08 channel); |
||
34 | u08 midiPitchBendOut(u08 bendLSB, u08 bendMSB, u08 channel); |
||
35 | |||
36 | #endif |
Powered by WebSVN v2.8.3