#24 The location of patch files is not respected.

v0.2.3
closed
nobody
5
2014-02-19
2012-09-13
No

I've recently installed wildmidi 0.2.3.5 om my Archlinux system. Since it comes with no config file, I adopted the default timidity.cfg coming with the timidity-freepats package (which supplies the freepats patch files for software midi playback) as the /etc/wildmidi.cfg file.
By default, this file has the only two uncommented lines:
dir /usr/share/timidity/freepats
source /etc/timidity++/freepats/freepats.cfg

Now, when playing some midi file, no sound is produced and two error messages are given:
libWildMidi(WM_BufferFile:103): ERROR Unable to stat /etc/timidity++/freepats/Tone_000/000_Acoustic_Grand_Piano.pat (No such file or directory)
libWildMidi(WM_BufferFile:103): ERROR Unable to stat /etc/timidity++/freepats/Tone_000/001_Acoustic_Brite_Piano.pat (No such file or directory).
It seems that the location of Gravis Ultrasound compatible patch files is not respected by wildmidi (given in the dir line). Instead it erroneously prepends the dir of the config file for freepats patches (given in the source line) to the relative file path of these two patches (and presumably to any other patch file if they are required).
The workarounds I've found out were to symlink /usr/share/timidity/freepats/*_000 subdirs into /etc/timidity++/freepats/ or erase the source line from /etc/wildmidi.cfg and paste the content of /etc/timidity++/freepats/freepats.cfg.

Discussion

1 2 3 .. 6 > >> (Page 1 of 6)
  • Anonymous - 2012-09-13

    Edited the WM_LoadConfig in the wildmidi_lib.c source file to include a 2nd parameter const char *patch_config_dir, which represents the file path given in the dir setting. This one should be used instead of the config file dir. All the changes are given in the attached patch file. Without any of the previous workarounds, with the recompiled package, wildmidi it is now working for me.

     
  • Nobody/Anonymous

    "unlikely"
    <a href="http://cggsformen.blogspot.com" title="uggs for men">uggs for men</a>

     
  • Nobody/Anonymous

    "miscarriage"
    <a href="http://discountcggs.webs.com" title="discount uggs">discount uggs</a>

     
  • Nobody/Anonymous

    "relate"
    <a href="http://cheapoggboots.webs.com" title="cheap ugg boots">cheap ugg boots</a>

     
  • Nobody/Anonymous

    "salve"
    <a href="http://isablmarantboots.weebly.com" title="isabel marant boots">isabel marant boots</a>

     
  • Nobody/Anonymous

    http://wiwt.com/user/seederjune1
    <a href="http://www.insanityworkoutdvds2012.info" title="Insanity Workout">Insanity Workout</a>

     
1 2 3 .. 6 > >> (Page 1 of 6)

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks