Skip trailing silence in MIDI files
using 3.4.3 on 14.04. if i need to upgrade, i'm happy to do so.
but the length of some midi songs are simply wrong. i cross-checked the time reported by Winamp, QMMP on the same Linux box.. even qtractor.. There are simply a number of songs in my midi collection that are not calculated correctly.
what to do? otherwise LOVE audacious/Fluidsynth/jack. things sound really good again.
#5 Updated by John Lindgren over 4 years ago
- Tracker changed from Bug to Feature
- Subject changed from midi song lengths to Skip trailing silence in MIDI files
- Category set to plugins/amidi-plug
- Status changed from New to Closed
- Target version set to 3.6
- % Done changed from 0 to 100
- Affects version 3.5.1 added
Well, "playing duration" is apparently calculated based on the time of the last MIDI event in the file, and the "end marker" is the 0xff 0x2f sequence at the end of a track. By design, that end marker has a time of its own, so that MIDI playlists can have a little bit of silence between the last note of one song and the first note of the next. Your test file just happens to have a lot of silence before its end marker.
It seems wrong that the other players are ignoring that silence, but whatever is the "correct" behavior, I've added options to our MIDI plugin to skip leading and trailing silence if desired.