Class EventType

Description

Represents the different MIDI events that can be fired in a track

  • copyright: © 2009 Tommy Montgomery <http://phpmidiparser.com/>
  • since: 1.0

Located in /Event/EventType.php (line 22)


	
			
Class Constant Summary
Variable Summary
static mixed $eventNameMap
Method Summary
static string getEventName (int $event)
Variables
static mixed $eventNameMap = array(
0x80 => 'Note Off',
0x90 => 'Note On',
0xA0 => 'Note Aftertouch',
0xB0 => 'Controller',
0xC0 => 'Program Change',
0xD0 => 'Channel Aftertouch',
0xE0 => 'Pitch Bend',
0xF0 => 'System Exclusive',
0xF1 => 'Undefined',
0xF2 => 'Song Position Pointer',
0xF3 => 'Song Select',
0xF4 => 'Undefined',
0xF5 => 'Undefined',
0xF6 => 'Tune Request',
0xF7 => 'Authorization',
0xF8 => 'Timing Clock',
0xF9 => 'Undefined',
0xFA => 'Sequence Start',
0xFB => 'Sequence Continue',
0xFC => 'Sequence Stop',
0xFD => 'Undefined',
0xFE => 'Active Sensing',
0xFF => 'Meta'
)
(line 162)
  • access: private
Methods
static method getEventName (line 197)

Gets the name of an event

static string getEventName (int $event)
  • int $event: One of the \Midi\EventType constants
Class Constants
ACTIVE_SENSING = 0xFE (line 154)

Describe this variable

AUTHORIZATION = 0xF7 (line 112)
CHANNEL_AFTERTOUCH = 0xD0 (line 58)
CONTROLLER = 0xB0 (line 46)

Change to a controller for a particular channel

META = 0xFF (line 160)

Represents a meta event

NOTE_AFTERTOUCH = 0xA0 (line 40)
NOTE_OFF = 0x80 (line 28)

Turns a note off for a particular channel

NOTE_ON = 0x90 (line 34)

Turns a note on for a particular channel

PITCH_BEND = 0xE0 (line 64)

Bends the pitch for a particular channel

PROGRAM_CHANGE = 0xC0 (line 52)

Changes a program (e.g. instrument for a channel)

SEQUENCE_CONTINUE = 0xFB (line 136)

Continues a previously stopped sequence

SEQUENCE_START = 0xFA (line 130)

Starts a sequence

SEQUENCE_STOP = 0xFC (line 142)

Stops a sequence

SONG_POSITION_POINTER = 0xF2 (line 82)
SONG_SELECT = 0xF3 (line 88)

Selects a song

SYSTEM_EXCLUSIVE = 0xF0 (line 70)

System exclusive event

TIMING_CLOCK = 0xF8 (line 118)
TUNE_REQUEST = 0xF6 (line 106)
UNDEFINED1 = 0xF1 (line 76)

Reserved event

UNDEFINED2 = 0xF4 (line 94)

Reserved event

UNDEFINED3 = 0xF5 (line 100)

Reserved event

UNDEFINED4 = 0xF9 (line 124)

Reserved event

UNDEFINED5 = 0xFD (line 148)

Reserved event

Documentation generated on Sun, 25 Oct 2009 22:38:16 -0700 by phpDocumentor 1.4.3