ppmdu icon indicating copy to clipboard operation
ppmdu copied to clipboard

AudioUtil: .sf2 all looped samples are pitched too high

Open IsoFrieze opened this issue 6 years ago • 1 comments

I noticed when playing back certain songs, some instruments sound very out of tune, some more than others (synths especially). I also found that this was already a known issue for a while, but I found the cause. Every looped sample starts looping one sample too late. This causes the pitch to rise, and for shorter loops, this increase in frequency is greatly exaggerated. To see if I could fix it, I opened the .sf2 output from audioutil in Polyphone, a soundfont editor. In the attached images you can easily tell that the loop is incorrect, and decrementing the loop beginning point by one fixes it. I have confirmed this by fixing a handful of samples and playing sounds that use them. This effects all looped samples--there's probably an off-by-one error somewhere. sample309 sample307

IsoFrieze avatar Jun 30 '19 14:06 IsoFrieze

Did you use the latest binary or latest version on the repo? Its been a while and I think that I messed with the loop points since then.

PsyCommando avatar Sep 06 '19 21:09 PsyCommando