dwhinham / mt32-pi

🎹🎶 A baremetal kernel that turns your Raspberry Pi 3 or later into a Roland MT-32 emulator and SoundFont synthesizer based on Circle, Munt, and FluidSynth.
https://twitter.com/d0pefish
GNU General Public License v3.0
1.28k stars 80 forks source link

🐛 [BUG] - Mixing Issue when playing MIDI files on Soundfont mode #348

Open tomnoua opened 1 year ago

tomnoua commented 1 year ago

Hardware and software

Bug description

I'm using an external version of the MT32-pi with a Raspi 3A and a PCM5102 dac. I play a midi file using Falcosoft's MIDI Player with the output set to the MIDI out of my MAudio Fasttrack Pro. This player allows you to load Soundfonts as well, so right away I noticed that using soundfonts, especially Arachno, with the MT32-PI, I have some mixing issues (some instruments sound louder than others).

The same midi file with the same soundfont but loaded into the MIDI player sounds correctly. Every instrument is properly mixed.

I'll attach the midi file (taken from Star Wars Dark Forces)

Steps to reproduce

  1. Put MT32-pi in Soundfont Mode and load Arachno
  2. Play midi file with MIDI Player from Falcosoft and set the output your MIDI OUT

Music should sound with some instruments louder than others.

Repeat but loading the soundfont on the MIDI player

  1. Set MIDI Player from Falcosoft to use BASS (sSoundfonts/vsti)
  2. Load Arachno SF
  3. Play midi file

Music should sound correctly.

Expected behavior

Music should sound the same using the MT32-pi as when you play it using the same SF but loaded in the MIDI Player.

Additional information

The issue varies if I change the SF. For example, Chaos seems to work properly but FluidR3 has a mixing issue only present when I play the midi file though the MT32-PI (in this case, the trumpet is the loudest instrument). Some midi files are OK and some present these issues that seem to go away when I play them by loading the soundfonts in the midi player.

I'll also two audio rips, one taken from the MT32-pi playing the file using Arachno SF and the other playing the same file with the same SF but loaded into the MIDI Player. issue - SF instrument mix.zip

tomnoua commented 1 year ago

template fixed. sorry for that.

tomnoua commented 1 year ago

I have just checked the original game (Dark Forces) with my pentium 233 in dos using MT32pi in Soundfont Mode with Arachno SF2 and the issue happens here as well.

tomnoua commented 1 year ago

Solved! It was the setting for Reverb and Chorus that was afecting instruments mixing in some soundfonts. I turned them off and now it sounds as it should. I would recommend you turning them off by default in the general setting as it drastically affects the way midi files sound (for the worst I might add). It is very noticeable.