Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 253316 - media-sound/timidity-freepats-20060219 failed to load instrument files
Summary: media-sound/timidity-freepats-20060219 failed to load instrument files
Status: RESOLVED DUPLICATE of bug 219506
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Sound Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-01 00:09 UTC by Victor Tseng
Modified: 2009-05-12 17:21 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
timidity-freepats-20060219.ebuild (timidity-freepats-20060219.ebuild,1003 bytes, text/plain)
2009-01-01 00:10 UTC, Victor Tseng
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Victor Tseng 2009-01-01 00:09:59 UTC
After installing and configuring ("eselect timidity set" things), it fails to load freepats instrument files when timidity runs.

=== cut here ===
$ timidity mysong.mid
Requested buffer size 32768, fragment size 8192
ALSA pcm 'default' set buffer size 30104, period size 3760 bytes
Playing mysong.mid
MIDI file: mysong.mid
Format: 1  Tracks: 24  Divisions: 120
Sequence: untitled
Track name: Marimba
Track name: Glock
Track name: Rhodes

... blah ...

Instrument `004_Electric_Piano_1_Rhodes' can't be found.
Couldn't load instrument 004_Electric_Piano_1_Rhodes (tone bank 0, program 4)
Instrument `009_Glockenspiel' can't be found.
Couldn't load instrument 009_Glockenspiel (tone bank 0, program 9)
Instrument `013_Xylophone' can't be found.
Couldn't load instrument 013_Xylophone (tone bank 0, program 13)

... blah ...

=== cut here ===

The reason is because it misses one single line in timidity.cfg to point out the directory of the instrument files. For example, "dir /usr/share/timidity/freepots".
After adding this line in /usr/share/timidity/freepots/timidity.cfg, this instrument patch works great.

modified ebuild in attachment.

Reproducible: Always

Steps to Reproduce:
1. emerge media-sound/timidity-freepots
2. eselect timidity set [id of freepots in all your instrument patches]
3. timidity <some_midi_file.mid>

Actual Results:  
the following error message showed on screen, and no sound from the speaker.
=== cut here ===
Instrument `004_Electric_Piano_1_Rhodes' can't be found.
Couldn't load instrument 004_Electric_Piano_1_Rhodes (tone bank 0, program 4)
=== cut here ===

Expected Results:  
the speaker plays the song.
Comment 1 Victor Tseng 2009-01-01 00:10:49 UTC
Created attachment 176975 [details]
timidity-freepats-20060219.ebuild
Comment 2 Samuli Suominen (RETIRED) gentoo-dev 2009-05-12 17:21:52 UTC

*** This bug has been marked as a duplicate of bug 219506 ***