Class TimeSignatureEvent

Description

Represents the set time signature meta event

This event should be in the first track. There may be multiple time signature events (if the time signature changes in the middle of the song, for example).

  • since: 1.0

Located in /Event/TimeSignatureEvent.php (line 25)

MetaEvent
   |
   --TimeSignatureEvent
Method Summary
static string getTimeSignature (int $numerator, int $logarithmicDenominator)
TimeSignatureEvent __construct (int $numerator, int $denominator, [int $metronomePulse = 24], [int $thirtySecondNotesPerQuarterNote = 8])
int getSubtype ()
Variables

Inherited Variables

Inherited from MetaEvent

MetaEvent::$data
MetaEvent::$length
Methods
static method getTimeSignature (line 63)

Gets a user-friendly time signature

static string getTimeSignature (int $numerator, int $logarithmicDenominator)
  • int $numerator
  • int $logarithmicDenominator: The base 2 logarithm of the actual denominator (e.g. 1 instead of 2, 2 instead of 4, 4 instead of 16, etc.)
Constructor __construct (line 35)
  • since: 1.0
  • access: public
TimeSignatureEvent __construct (int $numerator, int $denominator, [int $metronomePulse = 24], [int $thirtySecondNotesPerQuarterNote = 8])
  • int $numerator
  • int $denominator
  • int $metronomePulse: The number of clock ticks per metronome pulse
  • int $thirtySecondNotesPerQuarterNote

Redefinition of:
MetaEvent::__construct()
Constructor
getParamDescription (line 45)
string getParamDescription ()
getSubtype (line 73)
int getSubtype ()

Redefinition of:
MetaEvent::getSubtype()
Gets the meta event subtype for this event

Inherited Methods

Inherited From MetaEvent

MetaEvent::__construct()
MetaEvent::getData()
MetaEvent::getLength()
MetaEvent::getSubtype()
MetaEvent::getType()
MetaEvent::toBinary()
MetaEvent::__toString()

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