Class EventParser

Description

Class for parsing MIDI events

  • since: 1.0

Located in /Parsing/EventParser.php (line 24)

Parser
   |
   --EventParser
Variable Summary
Method Summary
EventParser __construct ()
ChannelEvent getChannelEvent (int $type, int $channel, int $param1, [int|null $param2 = null])
MetaEvent getMetaEvent (int $type, string|binary $data)
ChannelEvent parseChannelEvent (int $eventType, bool $isContinuation)
Variables
int|null $continuationEvent (line 31)

The current continuation event type

  • access: protected

Inherited Variables

Inherited from Parser

Parser::$file
Parser::$state
Methods
Constructor __construct (line 38)

Constructor

  • since: 1.0
  • access: public
EventParser __construct ()

Redefinition of:
Parser::__construct()
Constructor
getChannelEvent (line 56)

Channel event factory

ChannelEvent getChannelEvent (int $type, int $channel, int $param1, [int|null $param2 = null])
  • int $type: See EventType
  • int $channel: Valid values: 0-15
  • int $param1
  • int|null $param2
getMetaEvent (line 99)

Meta event factory

If the event type does not exist, then an UnknownMetaEvent object is returned.

MetaEvent getMetaEvent (int $type, string|binary $data)
getSystemExclusiveEvent (line 157)

System exclusive event factory

SystemExclusiveEvent getSystemExclusiveEvent (string|binary $data)
  • string|binary $data
parse (line 172)
Event parse ()

Redefinition of:
Parser::parse()
Parses the buffer stream and returns the next chunk
parseChannelEvent (line 215)

Parses the buffer stream for a channel event

ChannelEvent parseChannelEvent (int $eventType, bool $isContinuation)
  • int $eventType: See EventType
  • bool $isContinuation: Whether the event is a continuation of a previous event
parseMetaEvent (line 243)

Parses the buffer stream for a meta event

MetaEvent parseMetaEvent ()
parseSystemExclusiveEvent (line 262)

Parses the buffer stream for a system exclusive event

SystemExclusiveEvent parseSystemExclusiveEvent ()

Inherited Methods

Inherited From Parser

Parser::__construct()
Parser::afterLoad()
Parser::afterSetFile()
Parser::createFileObject()
Parser::getDelta()
Parser::getState()
Parser::load()
Parser::parse()
Parser::read()
Parser::setFile()
Parser::setState()

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