1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-30 16:24:09 +03:00

Initial Arduino IDE based on Processing.

This commit is contained in:
David A. Mellis
2005-08-25 21:06:28 +00:00
commit 9fc5aa63f6
373 changed files with 71081 additions and 0 deletions

View File

@ -0,0 +1,30 @@
#ifndef _MIDI_H
#define _MIDI_H
#define MIDI_NOTE_ON 0x90
#define MIDI_NOTE_OFF 0x80
// 1001cccc 0nnnnnnn 0vvvvvvv
#define MIDI_POLY_PRESSURE 0xA0
// 1011cccc 0nnnnnnn 0vvvvvvv
#define MIDI_CONTROL_CHANGE 0xB0
// 1100cccc 0ppppppp
#define MIDI_PROGRAM_CHANGE 0xC0
#define MIDI_DATA_MASK 0x7F
#define MIDI_STATUS_MASK 0xF0
#define MIDI_CHANNEL_MASK 0x0F
#define MIDI_BAUD_RATE 31250
#include "global.h"
#include "buffer.h"
void midiInit(void);
u08 midiNoteOnOut(u08 note, u08 vel, u08 channel);
u08 midiNoteOffOut(u08 note, u08 vel, u08 channel);
u08 midiControlChangeOut(u08 controller, u08 value, u08 channel);
u08 midiProgramChangeOut(u08 program, u08 channel);
#endif