Class for calculating human-usable musical time divisions from the internal MIDI clock ticks
Located in /Util/Timer.php (line 22)
Constructor
Dot-izes the number of ticks
Gets the number of ticks needed for an eighth note
Gets the number of ticks needed for the specified note division
Gets the time division
Gets the number of ticks needed for a half note
Gets the number of ticks needed for a quarter note
Resolves rounding errors when calculating triplets
For example, when calculating the number of ticks for a triplet that should be 100 ticks long, the default division will be 33, 33 and 33 for each note of the triplet. That can mess up your calculations later on since the division is one tick short of what it should be. This method will solve those rounding errors by returning the remainder for the third note of the triplet, e.g. 33, 33 and 34 for a total tick count of 100.
This function should not be used directly unless you're trying to calculate a triplet rest. Use triplet() for actual triplets of notes.
Gets the number of ticks needed for a sixteenth note
Gets the number of ticks needed for a 64th note
Stoccato-izes the number of ticks
Gets the number of ticks needed for a 32nd note
Triplet-izes the number of ticks
un-Stoccato-izes the number of ticks
Gets the number of ticks needed for a whole note
Documentation generated on Sun, 25 Oct 2009 22:38:21 -0700 by phpDocumentor 1.4.3