Bug 752167
Summary: | timidity ignores /etc/timidity.cfg from fluid-soundfont-lite-patches | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Pavel Roskin <plroskin> |
Component: | timidity++ | Assignee: | Jindrich Novy <jnovy> |
Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 16 | CC: | chkr, hdegoede, jnovy, pknirsch |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2011-11-09 08:41:58 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Pavel Roskin
2011-11-08 17:50:50 UTC
So first of all let me explain why things are done the way they are: The behavior of timidity preferring /etc/timidity++.cfg over /etc/timidity.cfg is intentional. timidity is not the only user of "timidity" patches nor has it been for a long time. Various other softsynths, like the midi support build into the SDL_mixer and allegro gaming library also need instrument patches and they use /etc/timidity.cfg to get these patches. Unlike timidity++, they only support GUS format .pat instrument patches, just like the original timidity. timidity++ however also supports sf2 format soundfonts, which are a lot better. Hence timidity (which really is timidity++) has been patched in Fedora to use /etc/timidity++.cfg, and ships with a /etc/timidity++.cfg which contains this single line: soundfont /usr/share/soundfonts/default.sf2 /usr/share/soundfonts/default.sf2 gets provided by the virtual soundfont2-default provides. fluid-soundfont-gm provides soundfont2-default and a /usr/share/soundfonts/default.sf2 symlink This whole exercise leaves the overloaded /etc/timidity.cfg config file free for use by applications which only expect old style gus format patches, which currently are: [hans@shalem ~]$ sudo repoquery -q --whatrequires timidity++-patches allegro-0:4.4.2-1.fc16.i686 allegro-0:4.4.2-1.fc16.x86_64 gt-0:0.4-13.fc16.x86_64 libtimidity-0:0.1.0-9.fc15.i686 libtimidity-0:0.1.0-9.fc15.x86_64 vavoom-0:1.33-1.fc16.x86_64 wildmidi-libs-0:0.2.3.4-3.fc15.i686 wildmidi-libs-0:0.2.3.4-3.fc15.x86_64 Note that SDL_mixer is not on this list, technically it requires them too, but since most SDL-mixer apps don't use midi files and the large size of the patches, the requires has been moved to the the apps themselves for those who need the midi support. Also note that the timidity++-patches virtual provides is a poorly chosen name, since this are actually regular timidity patches not timidity++ patches, but the name has grown to be the way it is historically. So long story short, the use of /etc/timidity.cfg has grown over time, changing its meaning from "timidity's config file" to "config file for apps / libs which need instrument patches for softsynth midi playback", that together with the fact that some of those apps now support sf2 format soundfonts where as most only support the old timidity.cfg syntax with GUS patches, the meaning now a days is: /etc/timidity.cfg: "config file for apps / libs which need instrument patches in GUS format for softsynth midi playback" /etc/timidity.cfg++: "config file for apps / libs which need instrument patches for softsynth midi playback and preferably in sf2 format" ### Secondly as for your bug report, you write: "Steps to Reproduce: 1. Install timidity++, fluid-soundfont-lite-patches and kmid2 (just to have some MIDI file)" You cannot just install timidity++ and fluid-soundfont-lite-patches, without also getting fluid-soundfont-gm, since timidity++ requires soundfont2-default and fluid-soundfont-gm is the only package providing that. If you have timidity++ without having fluid-soundfont-gm, you either have found a yum/rpm bug, or you've forced things with --nodeps. And once you've both timidity++ and fluid-soundfont-gm, timidity++ will not only work fine (no need to remove /etc/timidity++.cfg) , it will also sound a whole lot better then when using the GUS format patches (and also use less diskspace). Conclusion -> this is not a bug. I meant "install with dependencies", obviously. It was confusing that I install a huge soundfont that provides a config file for timidity, and timidity keeps using whatever it used before. So, it's not a bug, it's a quirk. Thanks for the detailed explanation! |