MT-32 Emulation Sounds Weird

Ask for help with ScummVM problems

Moderator: ScummVM Team

Post Reply
jimms
Posts: 1
Joined: Thu Apr 27, 2023 9:15 am

MT-32 Emulation Sounds Weird

Post by jimms »

Trying to use the MT-32 emulator with Loom EGA and its patch. I think I have the right Control and PCM files. Their hashes:
b083518fffb7f66b03c23b7eb4f868e62dc5a987
f6b1eebc4b2d200ec6d3d21d51325d5b48c60252

However, it doesn't play the music correctly. The intro theme after the overture sounds like this:
https://voca.ro/1esSvL0ArG9X

Why could it sound like that?

Thanks
User avatar
eriktorbjorn
ScummVM Developer
Posts: 3525
Joined: Mon Oct 31, 2005 7:39 am

Re: MT-32 Emulation Sounds Weird

Post by eriktorbjorn »

jimms wrote: Fri Apr 28, 2023 11:53 am Why could it sound like that?
Wild guess, but one possibility is if you've cranked up the "MIDI gain" so much that the sound is clipping. (Which would also account for the overall loudness of the audio.)
User avatar
Praetorian
ScummVM Developer
Posts: 797
Joined: Tue May 08, 2007 8:54 am
Location: Greece
Contact:

Re: MT-32 Emulation Sounds Weird

Post by Praetorian »

eriktorbjorn wrote: Sat Apr 29, 2023 8:01 am
jimms wrote: Fri Apr 28, 2023 11:53 am Why could it sound like that?
Wild guess, but one possibility is if you've cranked up the "MIDI gain" so much that the sound is clipping. (Which would also account for the overall loudness of the audio.)
I think there's something else at play. (Although in my case, where I can reproduce the issue, I had indeed MIDI gain set to "3.03").

I set MIDI gain to 1.0 and the issue is not noticeable as much, but something is still not right, especially with the bass(?) sustained notes. I also tested with a "clean install" (deleted my configuration file and let ScummVM recreate it).

And if I press spacebar to pause and then resume the game, the playback changes and then it sounds ok (or better I am definitely not a sound expert).

Also of interest, this does not seem to happen in ScummVM 2.6.1 (even with MIDI Gain set to 3.03).
ScummVM 2.7.0 and 2.8git dailies do have the issue.
User avatar
eriktorbjorn
ScummVM Developer
Posts: 3525
Joined: Mon Oct 31, 2005 7:39 am

Re: MT-32 Emulation Sounds Weird

Post by eriktorbjorn »

Praetorian wrote: Sat Apr 29, 2023 10:06 am Also of interest, this does not seem to happen in ScummVM 2.6.1 (even with MIDI Gain set to 3.03).
ScummVM 2.7.0 and 2.8git dailies do have the issue.
There was indeed a regression caused by a Sam & Max-related commit made about half a year ago. A fix for this was committed earlier today. (Not by me, though I did help in tracking down the problem.) For details, see:

Regression: https://github.com/scummvm/scummvm/comm ... 1218119d2a
Fix: https://github.com/scummvm/scummvm/comm ... fe47367461

So the daily builds should have the fix soon enough, I guess.
Post Reply