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

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

Postby KynikossDragonn » Tue Dec 14, 2021 6:48 am

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 allExpand view
## 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.
User avatar
KynikossDragonn
『霧雨魔理沙のペットドラゴン』
 
Joined: 12 Dec 2020
Location: Independence, KS, USA
Twitch ID: kynikossdragonn
Github ID: KynikossDragonn
Operating System: Other Linux 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: Intel (Modern GZDoom)

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

Postby Gez » Tue Dec 14, 2021 10:09 am

What's your wildmidi_config CVAR like?
Gez
 
 
 
Joined: 06 Jul 2007

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

Postby Graf Zahl » Tue Dec 14, 2021 11:18 am

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
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
 
Joined: 19 Jul 2003
Location: Germany

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

Postby KynikossDragonn » Tue Dec 14, 2021 4:28 pm

Gez wrote:What's your wildmidi_config CVAR 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.
User avatar
KynikossDragonn
『霧雨魔理沙のペットドラゴン』
 
Joined: 12 Dec 2020
Location: Independence, KS, USA
Twitch ID: kynikossdragonn
Github ID: KynikossDragonn
Operating System: Other Linux 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: Intel (Modern GZDoom)

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

Postby Gez » Tue Dec 14, 2021 4:36 pm

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?
Gez
 
 
 
Joined: 06 Jul 2007

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

Postby KynikossDragonn » Tue Dec 14, 2021 10:47 pm

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
KynikossDragonn
『霧雨魔理沙のペットドラゴン』
 
Joined: 12 Dec 2020
Location: Independence, KS, USA
Twitch ID: kynikossdragonn
Github ID: KynikossDragonn
Operating System: Other Linux 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: Intel (Modern GZDoom)

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

Postby Graf Zahl » Wed Dec 15, 2021 8:41 am

Do you get any error messages in the console?
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
 
Joined: 19 Jul 2003
Location: Germany

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

Postby KynikossDragonn » Thu Dec 16, 2021 2:26 am

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
KynikossDragonn
『霧雨魔理沙のペットドラゴン』
 
Joined: 12 Dec 2020
Location: Independence, KS, USA
Twitch ID: kynikossdragonn
Github ID: KynikossDragonn
Operating System: Other Linux 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: Intel (Modern GZDoom)

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

Postby Graf Zahl » Thu Dec 16, 2021 5:58 am

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
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
 
Joined: 19 Jul 2003
Location: Germany

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

Postby KynikossDragonn » Thu Dec 16, 2021 6:05 am

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.
User avatar
KynikossDragonn
『霧雨魔理沙のペットドラゴン』
 
Joined: 12 Dec 2020
Location: Independence, KS, USA
Twitch ID: kynikossdragonn
Github ID: KynikossDragonn
Operating System: Other Linux 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: Intel (Modern GZDoom)


Return to Technical Issues

Who is online

Users browsing this forum: No registered users and 0 guests