Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm trying to get Band-in-a-box 2005 running under Wine (in order to finally free myself from Windows hold on my computer) and I can't seem to get the MIDI to work properly/at all. After doing some research, I found people with similar problems, all of which used timidity to fix them. So, I downloaded timidity and tried to install it, but can't get it to work either. Whenever I try to run timidity, it tells me it can't read from the cfg file at /usr/loca/share/timidity/timidity.cfg. I tried manually looking for this config file, and it doesnt seem to exist. So I've probably done something wrong during the install... I followed the instruction included with the package I downloaded (start with /bin/sh configure, followed by make and then make install), but none the less I can't seem to get it to work. Could someone either post what a timidity.cfg should look like or perhaps tell me what I've done wrong?
# Instrument configuration file for timidity
# $Id: timidity.cfg,v 1.7 2005/09/03 19:26:03 hmh Exp $
# You can change just about every option in TiMidity++ using
# This config file. Please refer to the timidity.cfg(5) manpage
# for more details
## If you have a slow CPU, uncomment these:
#opt EFresamp=d #disable resampling
#opt EFvlpf=d #disable VLPF
#opt EFreverb=d #disable reverb
#opt EFchorus=d #disable chorus
#opt EFdelay=d #disable delay
#opt no-anti-alias #disable sample anti-aliasing
#opt EWPVSETOZ #disable all Midi Controls
#opt p32a #default to 32 voices with auto reduction
#opt s32kHz #default sample frequency to 32kHz
#opt fast-decay #fast decay notes
## If you have a moderate CPU, try these:
#opt EFresamp=l
#opt EFreverb=g,42
#opt EFchorus=s
#opt s32kHz
#opt p64a
# Disabling some of the Midi Controls can help with the CPU usage a lot.
# The same goes to the VLPF, sample anti-aliasing and effects such as
# reverb and chorus
# By default, try to use the instrument patches from freepats:
source /etc/timidity/freepats.cfg
You may want to give the -c switch to timidity when you invoke it. You may also want to install freepats.
Also, which distro are you using? If you go to `My LQ -> edit profile' and fill it in you won't have to answer that all the time. Have you checked whether your distro includes timidity? If it does, install the distro package over some "random" package you found on the net. (And if it doesn't, get a proper distro --sorry, just teasing).
I'm using SuSE 10.1, and it does have timidity included. I forgot to mention in my original post that after the package I downloaded from the sourceforge page didn't work I tride using the one that came with my distro, but still had the same problem. (I'll make sure to go and include that in my profile lol)
Ok, I've got timidity running now, but BIAB 2005 still tells me "No Output drivers" blah blah. I'm trying to use instructions which I located here. At the point where he says I'm to look for "raw midi" in the output, I can't seem to find it. Here is the output I'm getting:
Code:
# cat /proc/asound/devices
2: : timer
3: [ 0- 4]: digital audio playback
4: [ 0- 3]: digital audio capture
5: [ 0- 2]: digital audio capture
6: [ 0- 1]: digital audio capture
7: [ 0- 0]: digital audio playback
8: [ 0- 0]: digital audio capture
9: [ 0] : control
10: : sequencer
Last edited by mastersword; 06-21-2006 at 09:45 AM.
He says he is using a "Midi-Through virtual sound card." I don't know if that's the same as the ALSA module, but you could try loading the kernel module called snd-virmidi, if your system has it, and that you sould give you the raw midi ports in /proc/asound/devices.
Ok, I tried loading snd-virmidi like you said, and here's what I get now
Code:
# cat /proc/asound/devices
2: : timer
3: [ 0- 4]: digital audio playback
4: [ 0- 3]: digital audio capture
5: [ 0- 2]: digital audio capture
6: [ 0- 1]: digital audio capture
7: [ 0- 0]: digital audio playback
8: [ 0- 0]: digital audio capture
9: [ 0] : control
10: : sequencer
11: [ 1- 3]: raw midi
12: [ 1- 2]: raw midi
13: [ 1- 1]: raw midi
14: [ 1- 0]: raw midi
15: [ 1] : control
I then tried
Code:
# aconnect 14:0 128:0
# Requested buffer size 2048, fragment size 1024
ALSA pcm 'default' set buffer size 7524, period size 3760 bytes
and it seemed to work out (ie no errors that I could tell...) but I still can't get sound working in BIAB. I did notice that in the instructions I'm using he says you should use "Midi-through" which is not an option in my settings, I only have "Wine Midi Mapper"
Last edited by mastersword; 06-22-2006 at 09:22 AM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.