Ported from Arduino MIDI library Orignal: http://www.arduino.cc/playground/Main/MIDILibrary use Serial (UART)

Dependents:   MIDI_sample MIDI_usb_bridge MIDI_Interpreter midi-timer ... more

Embed: (wiki syntax)

« Back to documentation index

MIDI.h File Reference

MIDI.h File Reference

MIDI Library for the Arduino Version 3.2. More...

Go to the source code of this file.

Data Structures

struct  midimsg
class  MIDI
 The main class for MIDI handling.
See member descriptions to know how to use it, or check out the examples supplied with the library. More...

Typedefs

typedef uint8_t byte

Enumerations

enum  kMIDIType {
  NoteOff = 0x80, NoteOn = 0x90, AfterTouchPoly = 0xA0, ControlChange = 0xB0,
  ProgramChange = 0xC0, AfterTouchChannel = 0xD0, PitchBend = 0xE0, SystemExclusive = 0xF0,
  TimeCodeQuarterFrame = 0xF1, SongPosition = 0xF2, SongSelect = 0xF3, TuneRequest = 0xF6,
  Clock = 0xF8, Start = 0xFA, Continue = 0xFB, Stop = 0xFC,
  ActiveSensing = 0xFE, SystemReset = 0xFF, InvalidType = 0x00
}
enum  kThruFilterMode { Off = 0, Full = 1, SameChannel = 2, DifferentChannel = 3 }

Detailed Description

MIDI Library for the Arduino Version 3.2.

Project MIDI Library

Author:
Francois Best
Date:
24/02/11 License GPL Forty Seven Effects - 2011

Definition in file MIDI.h.


Typedef Documentation

typedef uint8_t byte

Type definition for practical use (because "unsigned char" is a bit long to write.. )

Definition at line 68 of file MIDI.h.


Enumeration Type Documentation

enum kMIDIType

Enumeration of MIDI types

Enumerator:
NoteOff 

Note Off.

NoteOn 

Note On.

AfterTouchPoly 

Polyphonic AfterTouch.

ControlChange 

Control Change / Channel Mode.

ProgramChange 

Program Change.

AfterTouchChannel 

Channel (monophonic) AfterTouch.

PitchBend 

Pitch Bend.

SystemExclusive 

System Exclusive.

TimeCodeQuarterFrame 

System Common - MIDI Time Code Quarter Frame.

SongPosition 

System Common - Song Position Pointer.

SongSelect 

System Common - Song Select.

TuneRequest 

System Common - Tune Request.

Clock 

System Real Time - Timing Clock.

Start 

System Real Time - Start.

Continue 

System Real Time - Continue.

Stop 

System Real Time - Stop.

ActiveSensing 

System Real Time - Active Sensing.

SystemReset 

System Real Time - System Reset.

InvalidType 

For notifying errors.

Definition at line 72 of file MIDI.h.

Enumeration of Thru filter modes

Enumerator:
Off 

Thru disabled (nothing passes through).

Full 

Fully enabled Thru (every incoming message is sent back).

SameChannel 

Only the messages on the Input Channel will be sent back.

DifferentChannel 

All the messages but the ones on the Input Channel will be sent back.

Definition at line 95 of file MIDI.h.