Skip to content

Commit

Permalink
Merge pull request #2 from Slight0/patch-1
Browse files Browse the repository at this point in the history
Fix MidiSequence.DivisionType; logic was swapped
  • Loading branch information
stephentoub committed Mar 6, 2017
2 parents 544e398 + 38c3990 commit 632373d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions MidiSharp/MidiSequence.cs
Expand Up @@ -85,7 +85,7 @@ public int Division
/// <summary>Gets the division type of the sequence.</summary>
public DivisionType DivisionType
{
get { return (Division & 0x8000) != 0 ? DivisionType.TicksPerBeat : DivisionType.FramesPerSecond; }
get { return (Division & 0x8000) != 0 ? DivisionType.FramesPerSecond : DivisionType.TicksPerBeat; }
}

/// <summary>
Expand Down Expand Up @@ -211,4 +211,4 @@ public static MidiSequence Open(Stream inputStream)
return sequence;
}
}
}
}

0 comments on commit 632373d

Please sign in to comment.