VOGONS


First post, by superfury

User metadata
Rank l33t++
Rank
l33t++

When I try to apply all volume controls with my MIDI emulation, for some reason it gets too loud, overflowing the container (according to the little noise made when playing songs). I did it according to the Soundfont 2.4 specification as far as I know.

My source code:
ADSR: https://bitbucket.org/superfury/x86emu/src/91 … dsr.c?at=master
Renderer and MIDI packet data processing into renderer data(note on/off etc): https://bitbucket.org/superfury/x86emu/src/91 … ice.c?at=master

Anyone knows why the sound is actually overflowing the container (therefore clipping)? Is there an error in my volume calculations? If so(it works fine without it), what's going wrong? It seems to have something to do with the volume requested by software(initialAttenuation data). Anyone can see what's going wrong there(or in the ADSR/both)?

Author of the UniPCemu emulator.
UniPCemu Git repository
UniPCemu for Android, Windows, PSP, Vita and Switch on itch.io