LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Timidity not configuring properly (https://www.linuxquestions.org/questions/linux-software-2/timidity-not-configuring-properly-565090/)

heffo_j 06-28-2007 07:12 AM

Timidity not configuring properly
 
Hi there,

May be some of you who know Timidity can help with this: Jack and Rosegarden/Muse seem okay and appear to be talking.

At the timidity end though, it seems that it is not configured correctly and I have no clue how to fix it. Here is the code when I try to tun it in terminal:

Quote:

$ timidity /home/john/whats going on.mid
gravis.cfg: No such file or directory
gsdrums.cfg: No such file or directory
gssfx.cfg: No such file or directory
xgmap2.cfg: No such file or directory
Couldn't open output device
Anyone who has got Timidity to work and can help with this I would appreciate it. For example, how do I check if my Alsa is accepting midi?

Edit: Here is my readout from Rosegarden Sequencer Status box:

Quote:

Rosegarden 1.4.0 - AlsaDriver - alsa-lib version 1.0.13

JackDriver::initialiseAudio - JACK sample rate = 48000Hz, buffer size = 1024
JackDriver::initialiseAudio - creating disk thread
JackDriver::initialiseAudio - found 2 JACK physical outputs
JackDriver::initialiseAudio - connecting from "rosegarden:master out L" to "alsa_pcm:playback_1"
JackDriver::initialiseAudio - connecting from "rosegarden:master out R" to "alsa_pcm:playback_2"
JackDriver::initialiseAudio - found 2 JACK physical inputs
JackDriver::initialiseAudio - connecting from "alsa_pcm:capture_1" to "rosegarden:record in 1 L"
JackDriver::initialiseAudio - connecting from "alsa_pcm:capture_2" to "rosegarden:record in 1 R"
JackDriver::initialiseAudio - initialised JACK audio subsystem

ALSA Client information:


System timer is only 250Hz, sending a warning
Current timer set to "system timer" with timer checks
WARNING: using system timer with only 250Hz resolution!
AlsaDriver::initialiseMidi - initialised MIDI subsystem

System timer is only 250Hz, sending a warning
Current timer set to "system timer" with timer checks
WARNING: using system timer with only 250Hz resolution!
Creating device 2 in Play mode -- no connection available
Default device name for this device is Anonymous MIDI device 1

ALSA Client information:
Is it as basic as the timer being too slow? I read in another thread not to worry about this message.


Regards
John

GregLee 06-28-2007 09:38 AM

Timidity needs to find the files it is complaining about. They must be mentioned in its master cfg file, which is timidity.cfg, but they're not present in any of the directories timidity searches. So, you need to find where they are ("locate gravis.cfg", e.g.), and (a) if you just don't have them, edit the file timidity.cfg to remove the references to them, or (b) if you do find them, edit timidity.cfg to give paths for those files. Or, you could move the files and the patches they refer to into the directory where you found timidity.cfg. Or, you could call timidity with the option "-L <dir>" to have it look in <dir> for the files it needs to find.

studioj 06-28-2007 01:56 PM

timidity needs soundfonts and for its config files to point to its soundfonts

GregLee 06-28-2007 06:15 PM

Quote:

Originally Posted by studioj
timidity needs soundfonts and for its config files to point to its soundfonts

TiMidity can use soundfonts, but it doesn't need soundfonts. It can use GUS patch files, and by default, that's what it does use. "GUS" stands for Gravis UltraSound, which was a popular and very capable ISA sound card, once upon a time. A GUS patch is a file containing patches, i.e. samples, for a single instrument, while a soundfont has sets of patches for many instruments.

studioj 06-28-2007 07:19 PM

Quote:

Originally Posted by GregLee
TiMidity can use soundfonts, but it doesn't need soundfonts. It can use GUS patch files, and by default, that's what it does use. "GUS" stands for Gravis UltraSound, which was a popular and very capable ISA sound card, once upon a time. A GUS patch is a file containing patches, i.e. samples, for a single instrument, while a soundfont has sets of patches for many instruments.

yea then it needs to know where those are.
timidity doesn't come with any "patches" in whatever format by "default"
the default config does look for freepats. but can't find them if they are not there.

GregLee 06-28-2007 08:23 PM

TiMidity patches did come with my FC6 distribution (or, possibly, with the first set of updates to it). There are around 196 in /usr/share/timidity/instruments.

heffo_j 06-29-2007 02:24 AM

Timidy working but.....
 
Thank you Greg and StudioJ,

I now have timidity working in a fashion. I find the midi file, right click and go to "open with". I select Timidity off the list.

I played some files okay (sounded a little plastic) but now all I get is the piano track. Any clues?

Edit: I feel like an idiot. True. The midi file I was running with just the piano track playing only had one track anyway. I must have loaded it and mucked about with it and stupidly hit the save button and lost all the other tracks at the same time.

Timidity, Jack and Rosegarden are working: just getting the sound out of Rosegarden is now the challenge. Where is the Google window?



Regards

John

metalearth 07-07-2007 06:39 PM

Dear John
The file cannot be found because linux does not detect a file name with spaces in it unless you use a different command which I cannot think of at the moment.

But never fear ! you can locate your sound files and rename the folder and files so that they contain no spaces :
for example :

$ timidity /home/john/whats going on.mid

would be changed to

$ timidity /home/john/whatsgoingon.mid

this will now work.
:p


All times are GMT -5. The time now is 12:21 AM.