stuerp / foo_midi

A foobar2000 component to play MIDI files.
MIT License
63 stars 1 forks source link

Secret Sauce player doesn't change programs as intended when playing some weird MIDIs generated by FL Studio #34

Closed Dobby233Liu closed 4 months ago

Dobby233Liu commented 10 months ago

I find this kind of hard to describe so I'll just show samples

This output file straight from FL: Deozynn secret boss theme 1 midi.zip will sound like this, with the player set to SC and the MIDI flavor set to GS SC-88 Pro: Deozynn secret boss theme 1 midi BROKEN.webm As you can hear, tracks that start immediately when the song starts are somehow pianos, while those that enter later has their programs properly set.

This only happens when the flavor is set to anything GS or GM2; if I make it GM, it sounds as intended: Deozynn secret boss theme 1 midi ok.webm


Inspecting the file in Domino, I notice that there's junk duplicated events at the start (and the end) of the tracks that sound incorrect. image This seems to be the culprit, as when I remove them manually, the file then plays correctly.

What makes this even more interesting is that this doesn't happen on every file from FL; some just happen to work (digging in my archives this horrible mess seems to be one of them), even though the quirk above is too present in them. Seems to be related to the amount of tracks in the file.


fb2k version: v2.1 x86 scva version: v1.1.6 component version: v2.9.2.0

stuerp commented 6 months ago

@Dobby233Liu ,

how do you conclude they're junk events? In other words, if they are the culprit, how do I recognize them and ignore them?

stuerp commented 4 months ago

No reaction from issue poster.