Skip to content

Commit

Permalink
Merge pull request #30 from kavika13/patch-1
Browse files Browse the repository at this point in the history
Fix incorrect constant for μs per quarter note
  • Loading branch information
schellingb committed Oct 17, 2018
2 parents 7e646b6 + e58c162 commit d182f65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tml.h
Expand Up @@ -415,7 +415,7 @@ TMLDEF tml_message* tml_load(struct tml_stream* stream)
tml_message *PrevMessage = TML_NULL, *Msg, *MsgEnd, Swap;
unsigned int ticks = 0, tempo_ticks = 0; //tick counter and value at last tempo change
int step_smallest, msec, tempo_msec = 0; //msec value at last tempo change
double ticks2time = 480000 / (1000.0 * division); //milliseconds per tick
double ticks2time = 500000 / (1000.0 * division); //milliseconds per tick

// Loop through all messages over all tracks ordered by time
for (step_smallest = 0; step_smallest != 0x7fffffff; ticks += step_smallest)
Expand Down

0 comments on commit d182f65

Please sign in to comment.