Wohlstand / OPNMIDI-Player-Java

Simple MIDI-player for Android based on libOPNMIDI library
https://play.google.com/store/apps/details?id=ru.wohlsoft.opnmidiplayer
MIT License
15 stars 2 forks source link

Setting volume model to "CMF" mutes the song #4

Closed freq-mod closed 1 year ago

freq-mod commented 3 years ago

It kills the music almost as soon as it's toggled.

Sorry if it is more libOPNMIDI bug rather than this player's.

Wohlstand commented 3 years ago

The "CMF" model is just mapping the volume level over the chip native volume model directly, but, unlike OPL3, OPN2 has worse curve that needs to make the counting of volume from 65 to 127 rather direct mappings that I made with DMX and 9X models

freq-mod commented 3 years ago

So, if I understood correctly, this thing assigns MIDI volume levels to OPN carrier total levels 127-64, like it was OPL3?

If yes, no wonder it's broken

Wohlstand commented 1 year ago

I tweaked all volume models, so, they do use the 64-127 range instead of being scaled to the full range.