Can't use WildMidi, no clear reason given either as to why.

Need help running G/Q/ZDoom/ECWolf/Zandronum/3DGE? Did your computer break? Ask here.

Moderator: GZDoom Developers

User avatar
KynikossDragonn
Posts: 202
Joined: Sat Dec 12, 2020 10:59 am
Twitch ID: kynikossdragonn
Github ID: KynikossDragonn
Graphics Processor: Intel (Modern GZDoom)
Location: Independence, KS, USA

Can't use WildMidi, no clear reason given either as to why.

Post by KynikossDragonn »

I wanted to try using freepats inside of GZDoom, I can't figure out how to make TiMidity++ to use it, so I try to use WildMidi and it just gives me a "Unable to create WildMidi MIDI device. Falling back to FluidSynth" without even telling me what's going wrong and where.

I have a /etc/wildmidi/wildmidi.cfg with the following in it:

Code: Select all

## wildmidi.cfg
## This is used to set and configure GUS patchsets to be used with WildMidi
## Please refer to the wildmidi.cfg(5) manpage for more details.

## Load the patchset from freepats
dir /usr/share/freepats
source /etc/freepats/freepats.cfg
I can confirm that WildMidi is working outside of GZDoom because I have working MIDI music in EasyRPG Player, even with this strange way of packing together the pats Void Linux's freepats package does. EasyRPG Player is one of the few things that SPECIFICALLY wants WildMidi, it doesn't have a option to build with FluidSynth.

It doesn't matter if I set "wildmidi_config" to "/etc/wildmidi/wildmidi.cfg" or to just "wildmidi.cfg" with the config symlinked to GZDoom's configuration directory, the result is always the same. The options menu doesn't even show any selectable .cfg files when you access the configuration selection menu either. (Is that menu even supposed to display anything at all?)

The Wiki doesn't give any hints how to make this part of ZMusic work either, so... I'm at a complete loss what's going on, the error message is entirely unhelpful.
Gez
 
 
Posts: 17635
Joined: Fri Jul 06, 2007 3:22 pm

Re: Can't use WildMidi, no clear reason given either as to w

Post by Gez »

What's your [wiki=CVARs:Audio#WildMIDI_settings]wildmidi_config CVAR[/wiki] like?
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 47988
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Can't use WildMidi, no clear reason given either as to w

Post by Graf Zahl »

The WildMidi implementation in ZMusic does not use any system installation. It is a stripped down version of the core player that is being driven by GZDoom's internal MIDI sequencer. It never even looks at the file you listed unless you let the CVAR given by Gez point to it.
User avatar
KynikossDragonn
Posts: 202
Joined: Sat Dec 12, 2020 10:59 am
Twitch ID: kynikossdragonn
Github ID: KynikossDragonn
Graphics Processor: Intel (Modern GZDoom)
Location: Independence, KS, USA

Re: Can't use WildMidi, no clear reason given either as to w

Post by KynikossDragonn »

Gez wrote:What's your [wiki=CVARs:Audio#WildMIDI_settings]wildmidi_config CVAR[/wiki] like?
I tried setting it exactly to "/etc/wildmidi/wildmidi.cfg" and it didn't work. I tried symlinking that file to ~/.config/gzdoom and just setting it to "wildmidi.cfg" and it also didn't work.
Gez
 
 
Posts: 17635
Joined: Fri Jul 06, 2007 3:22 pm

Re: Can't use WildMidi, no clear reason given either as to w

Post by Gez »

KynikossDragonn wrote:I tried setting it exactly to "/etc/wildmidi/wildmidi.cfg" and it didn't work.
Okay. As far as I understand, it should have worked.

Have you tried setting it directly to /etc/freepats/freepats.cfg?
User avatar
KynikossDragonn
Posts: 202
Joined: Sat Dec 12, 2020 10:59 am
Twitch ID: kynikossdragonn
Github ID: KynikossDragonn
Graphics Processor: Intel (Modern GZDoom)
Location: Independence, KS, USA

Re: Can't use WildMidi, no clear reason given either as to w

Post by KynikossDragonn »

Gez wrote:Have you tried setting it directly to /etc/freepats/freepats.cfg?
Same result.

freepats.cfg doesn't have any dir commands in it to actually tell WildMidi where the actual files are so that wouldn't of worked in the actual thing.

EDIT: I symlink'd /usr/share/freepats/Tone_000 and /usr/share/freepats/Drum_000 AND /etc/freepats/freepats.cfg into the soundfonts directory in GZDoom, still didn't work. Into the ~/.config/gzdoom directory, still didn't work. In the WORKING DIRECTORY of GZDoom, still doesn't work.

I guess this is just plain broken and probably needs to be reported as a issue under the ZMusic github?
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 47988
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Can't use WildMidi, no clear reason given either as to w

Post by Graf Zahl »

Do you get any error messages in the console?
User avatar
KynikossDragonn
Posts: 202
Joined: Sat Dec 12, 2020 10:59 am
Twitch ID: kynikossdragonn
Github ID: KynikossDragonn
Graphics Processor: Intel (Modern GZDoom)
Location: Independence, KS, USA

Re: Can't use WildMidi, no clear reason given either as to w

Post by KynikossDragonn »

Nope, which is strange also because I can get FluidSynth error messages just fine. (stuff like program numbers not existing so it's substituting them)
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 47988
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Can't use WildMidi, no clear reason given either as to w

Post by Graf Zahl »

I suspect your issue with Timidity++ is the same thing then. This is also being used as an internal synth driven by ZMusic's sequencer. It also does not use the system's installation.
User avatar
KynikossDragonn
Posts: 202
Joined: Sat Dec 12, 2020 10:59 am
Twitch ID: kynikossdragonn
Github ID: KynikossDragonn
Graphics Processor: Intel (Modern GZDoom)
Location: Independence, KS, USA

Re: Can't use WildMidi, no clear reason given either as to w

Post by KynikossDragonn »

TiMidity++ works fine with SF2s I just don't know how to configure it to use PAT files instead of SF2s. I haven't worked with CFG's for TiMidity in a long time and the CFG that was installed in my distro seems to be specifically for WildMidi.

Return to “Technical Issues”