/Users/franky/Documents/Dropbox/SVN/embedded/toolbox/libraries/MIDILib/trunk/Arduino/MIDI.h File Reference

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

#include <inttypes.h>
#include "Compatibility_v2.5.h"

Go to the source code of this file.

Classes

struct  midimsg
class  MIDI_Class

Defines

#define COMPATIBILITY_V25   1
#define COMPFLAG_MIDI_IN   1
#define COMPFLAG_MIDI_OUT   1
#define USE_SERIAL_PORT   Serial
#define USE_RUNNING_STATUS   1
#define MIDI_BAUDRATE   31250
#define MIDI_CHANNEL_OMNI   0
#define MIDI_CHANNEL_OFF   17
#define MIDI_SYSEX_ARRAY_SIZE   255

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 }

Variables

MIDI_Class MIDI


Detailed Description

MIDI Library for the Arduino Version 3.0.

Project MIDI Library

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

Definition in file MIDI.h.


Define Documentation

#define COMPATIBILITY_V25   1

Definition at line 30 of file MIDI.h.

#define COMPFLAG_MIDI_IN   1

Definition at line 33 of file MIDI.h.

#define COMPFLAG_MIDI_OUT   1

Definition at line 34 of file MIDI.h.

#define MIDI_BAUDRATE   31250

Definition at line 53 of file MIDI.h.

#define MIDI_CHANNEL_OFF   17

Definition at line 57 of file MIDI.h.

#define MIDI_CHANNEL_OMNI   0

Definition at line 56 of file MIDI.h.

#define MIDI_SYSEX_ARRAY_SIZE   255

Definition at line 59 of file MIDI.h.

#define USE_RUNNING_STATUS   1

Definition at line 41 of file MIDI.h.

#define USE_SERIAL_PORT   Serial

Definition at line 37 of 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 62 of file MIDI.h.


Enumeration Type Documentation

enum kMIDIType

Enumeration of MIDI types

Enumerator:
NoteOff 
NoteOn 
AfterTouchPoly 
ControlChange 
ProgramChange 
AfterTouchChannel 
PitchBend 
SystemExclusive 
TimeCodeQuarterFrame 
SongPosition 
SongSelect 
TuneRequest 
Clock 
Start 
Continue 
Stop 
ActiveSensing 
SystemReset 
InvalidType 

Definition at line 65 of file MIDI.h.

00065                {
00066         NoteOff               = 0x80,   // Note Off
00067         NoteOn                = 0x90,   // Note On
00068         AfterTouchPoly        = 0xA0,   // Polyphonic AfterTouch
00069         ControlChange         = 0xB0,   // Control Change / Channel Mode
00070         ProgramChange         = 0xC0,   // Program Change
00071         AfterTouchChannel     = 0xD0,   // Channel (monophonic) AfterTouch
00072         PitchBend             = 0xE0,   // Pitch Bend
00073         SystemExclusive       = 0xF0,   // System Exclusive
00074         TimeCodeQuarterFrame  = 0xF1,   // System Common - MIDI Time Code Quarter Frame
00075         SongPosition          = 0xF2,   // System Common - Song Position Pointer
00076         SongSelect            = 0xF3,   // System Common - Song Select
00077         TuneRequest           = 0xF6,   // System Common - Tune Request
00078         Clock                 = 0xF8,   // System Real Time - Timing Clock
00079         Start                 = 0xFA,   // System Real Time - Start
00080         Continue              = 0xFB,   // System Real Time - Continue
00081         Stop                  = 0xFC,   // System Real Time - Stop
00082         ActiveSensing         = 0xFE,   // System Real Time - Active Sensing
00083         SystemReset           = 0xFF,   // System Real Time - System Reset
00084         InvalidType           = 0x00    // For notifying errors
00085 };

Enumeration of Thru filter modes

Enumerator:
Off 
Full 
SameChannel 
DifferentChannel 

Definition at line 88 of file MIDI.h.

00088                      {
00089         Off                   = 0,  // Thru disabled (nothing passes through).
00090         Full                  = 1,  // Fully enabled Thru (every incoming message is sent back).
00091         SameChannel           = 2,  // Only the messages on the Input Channel will be sent back.
00092         DifferentChannel      = 3   // All the messages but the ones on the Input Channel will be sent back.
00093 };


Variable Documentation

Main instance (the class comes pre-instantiated).

Definition at line 18 of file MIDI.cpp.


Generated on Mon Mar 7 23:44:18 2011 for Arduino MIDI Library by  doxygen 1.5.8