oggy22 / MusicTools

Various musical tools including music hearing, machine composer and Chomsky music analyzer.
4 stars 2 forks source link

Midi sanitization #85

Open oggy22 opened 4 years ago

oggy22 commented 4 years ago

The midi files found on internet may contain number of inaccuracies. These inaccuracies manifest mostly as inaccurate durations of notes. For example note of duration 33 should last 30 ticks which leads that adjecent notes overlap in time whereas they should not.

The process of correcting the midi files is SANITIZATION.

This item is two-piece work: 1) Sanitize all the midi files currently in use and tests 2) Make the midi-load routine check for sanitization and fail if it is not sanitized.