MarkCWirt / MIDIUtil

A pure Python library for creating multi-track MIDI files
Other
247 stars 49 forks source link

Output files are not compatible with libsmf #19

Closed Flarp closed 6 years ago

Flarp commented 6 years ago

Trying to read an output file into Ardour provides this error

** (ardour-5.12.0:2858): CRITICAL **: 16:43:51.914: SMF file uses FPS timing instead of PPQN, no support for that yet.

Some research shows this is a problem in libsmf, a library for parsing MIDI files. Offending line here

https://github.com/stump/libsmf/blob/master/src/smf_load.c#L201

if (smf->ppqn == 0) {
        g_critical("SMF file uses FPS timing instead of PPQN, no support for that yet.");
        return (-4);
}

This program has a very nice API and I would love to use it more, but until I can actually use the output files, I can't. How can these files be converted to PPQN timing, or can this be implemented into the lib itself?

Flarp commented 6 years ago

your boy is stupid i was uploading the wrong file ur good g