Sanford.Multimedia.Midi icon indicating copy to clipboard operation
Sanford.Multimedia.Midi copied to clipboard

Fix Ppqn Assertion in DEBUG.

Open trigger-segfault opened this issue 5 years ago • 0 comments

Any Ppqn midi tracks will throw an assertion if division is less than PpqnMinValue when AssertValid() is called. AssertValid() is called in set_Format as well as set_TrackCount during Read(Stream) while division is set to 0 beforehand.

Solution: Set Division FIRST during Read(Stream).

trigger-segfault avatar Mar 26 '19 16:03 trigger-segfault