Skip to content

Commit

Permalink
Time division fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ZILtoid1991 committed Jul 25, 2023
1 parent 117ffcf commit 5cc5834
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ public class SequencerM1 : Sequencer {
if (src.headerChunk.trackFormat == TrackFormat.simultaneous) {
if (src.headerChunk.division.getFormat == 0) {
for (int t ; t < usecPerTic.length ; t++)
usecPerTic[t] = usecPerQNote / src.headerChunk.division.getTicksPerQuarterNote();
usecPerTic[t] = (usecPerQNote / src.headerChunk.division.getTicksPerQuarterNote()) * 10;
} else {
switch (src.headerChunk.division.getNegativeSMPTEFormat()) {
case -29:
Expand All @@ -142,7 +142,7 @@ public class SequencerM1 : Sequencer {
}
} else {
if (src.headerChunk.division.getFormat == 0) {
usecPerTic[track] = usecPerQNote / src.headerChunk.division.getTicksPerQuarterNote();
usecPerTic[track] = (usecPerQNote / src.headerChunk.division.getTicksPerQuarterNote()) * 10;
} else {
switch (src.headerChunk.division.getNegativeSMPTEFormat()) {
case -29:
Expand Down

0 comments on commit 5cc5834

Please sign in to comment.