LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 06-19-2006, 10:46 AM   #1
mastersword
Member
 
Registered: Jun 2006
Distribution: openSuSE 10.2
Posts: 34

Rep: Reputation: 15
timidity install problems


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?
 
Old 06-19-2006, 03:50 PM   #2
jonaskoelker
Senior Member
 
Registered: Jul 2004
Location: Denmark
Distribution: Ubuntu, Debian
Posts: 1,524

Rep: Reputation: 47
This is my /etc/timidity/timidity.cfg
Code:
# 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
And my /etc/timidity/freepats.cfg
Code:
dir /usr/share/midi/freepats

# Automatically generated on Sat Mar 20 15:25:44 EST 2004
# by http://freepats.opensrc.org/mkcfg.sh.txt

drumset 0

 25	Drum_000/025_Snare_Roll.pat 
 26	Drum_000/026_Snap.pat 
 27	Drum_000/027_High_Q.pat 
 31	Drum_000/031_Sticks.pat 
 32	Drum_000/032_Square_Click.pat 
 33	Drum_000/033_Metronome_Click.pat 
 34	Drum_000/034_Metronome_Bell.pat 
 37	Drum_000/037_Stick_Rim.pat 
 38	Drum_000/038_Snare_1.pat 
 40	Drum_000/040_Snare_2.pat 
 42	Drum_000/042_Hi-Hat_Closed.pat 
 44	Drum_000/044_Hi-Hat_Pedal.pat 
 46	Drum_000/046_Hi-Hat_Open.pat 
 49	Drum_000/049_Cymbal_Crash_1.pat 
 51	Drum_000/051_Cymbal_Ride_1.pat 
 52	Drum_000/052_Cymbal_Chinese.pat 
 54	Drum_000/054_Tombourine.pat 
 55	Drum_000/055_Cymbal_Splash.pat 
 56	Drum_000/056_Cow_Bell.pat 
 57	Drum_000/057_Cymbal_Crash_2.pat 
 58	Drum_000/058_Vibra-Slap.pat 
 59	Drum_000/059_Cymbal_Ride_2.pat 
 60	Drum_000/060_Bongo_High.pat 
 61	Drum_000/061_Bongo_Low.pat 
 63	Drum_000/063_Conga_High_2_Open.pat 
 64	Drum_000/064_Conga_Low.pat 
 65	Drum_000/065_Timbale_High.pat 
 66	Drum_000/066_Timbale_Low.pat 
 67	Drum_000/067_Agogo_High.pat 
 68	Drum_000/068_Agogo_Low.pat 
 70	Drum_000/070_Maracas.pat 
 71	Drum_000/071_Whistle_1_High_Short.pat 
 72	Drum_000/072_Whistle_2_Low_Long.pat 
 73	Drum_000/073_Guiro_1_Short.pat 
 74	Drum_000/074_Guiro_2_Long.pat 
 76	Drum_000/076_Wood_Block_1_High.pat 
 77	Drum_000/077_Wood_Block_2_Low.pat 
 80	Drum_000/080_Triangle_1_Mute.pat 
 81	Drum_000/081_Triangle_2_Open.pat 
 82	Drum_000/082_Shaker.pat 
 84	Drum_000/084_Belltree.pat 

bank 0

 0	Tone_000/000_Acoustic_Grand_Piano.pat amp=120 pan=center
 1	Tone_000/001_Acoustic_Brite_Piano.pat 
 2	Tone_000/002_Electric_Grand_Piano.pat 
 4	Tone_000/004_Electric_Piano_1_Rhodes.pat 
 5	Tone_000/005_Electric_Piano_2_Chorused_Yamaha_DX.pat 
 6	Tone_000/006_Harpsichord.pat 
 7	Tone_000/007_Clavinet.pat 
 8	Tone_000/008_Celesta.pat 
 9	Tone_000/009_Glockenspiel.pat 
 13	Tone_000/013_Xylophone.pat 
 14	Tone_000/014_Tubular_Bells.pat 
 15	Tone_000/015_Dulcimer.pat 
 16	Tone_000/016_Hammond_Organ.pat 
 19	Tone_000/019_Church_Organ.pat 
 21	Tone_000/021_Accordion.pat 
 23	Tone_000/023_Tango_Accordion.pat 
 24	Tone_000/024_Nylon_Guitar.pat 
 25	Tone_000/025_Steel_Guitar.pat 
 26	Tone_000/026_Jazz_Guitar.pat 
 27	Tone_000/027_Clean_Electric_Guitar.pat 
 28	Tone_000/028_Muted_Electric_Guitar.pat 
 29	Tone_000/029_Overdriven_Guitar.pat 
 30	Tone_000/030_Distortion_Guitar.pat 
 32	Tone_000/032_Acoustic_Bass.pat 
 33	Tone_000/033_Finger_Bass.pat 
 34	Tone_000/034_Pick_Bass.pat 
 35	Tone_000/035_Fretless_Bass.pat 
 36	Tone_000/036_Slap_Bass_1.pat 
 37	Tone_000/037_Slap_Bass_2.pat 
 38	Tone_000/038_Synth_Bass_1.pat 
 40	Tone_000/040_Violin.pat 
 42	Tone_000/042_Cello.pat 
 44	Tone_000/044_Tremolo_Strings.pat 
 45	Tone_000/045_Pizzicato_Strings.pat 
 46	Tone_000/046_Harp.pat 
 47	Tone_000/047_Timpani.pat 
 48	Tone_000/048_String_Ensemble_1_Marcato.pat 
 53	Tone_000/053_Voice_Oohs.pat 
 56	Tone_000/056_Trumpet.pat 
 57	Tone_000/057_Trombone.pat 
 58	Tone_000/058_Tuba.pat 
 59	Tone_000/059_Muted_Trumpet.pat 
 60	Tone_000/060_French_Horn.pat 
 61	Tone_000/061_Brass_Section.pat 
 64	Tone_000/064_Soprano_Sax.pat 
 65	Tone_000/065_Alto_Sax.pat 
 66	Tone_000/066_Tenor_Sax.pat 
 67	Tone_000/067_Baritone_Sax.pat 
 68	Tone_000/068_Oboe.pat 
 69	Tone_000/069_English_Horn.pat 
 70	Tone_000/070_Bassoon.pat 
 71	Tone_000/071_Clarinet.pat 
 72	Tone_000/072_Piccolo.pat 
 73	Tone_000/073_Flute.pat 
 74	Tone_000/074_Recorder.pat 
 75	Tone_000/075_Pan_Flute.pat 
 76	Tone_000/076_Bottle_Blow.pat 
 79	Tone_000/079_Ocarina.pat 
 80	Tone_000/080_Square_Wave.pat 
 84	Tone_000/084_Charang.pat 
 88	Tone_000/088_New_Age.pat 
 94	Tone_000/094_Halo_Pad.pat 
 95	Tone_000/095_Sweep_Pad.pat 
 98	Tone_000/098_Crystal.pat 
 101	Tone_000/101_Goblins--Unicorn.pat 
 102	Tone_000/102_Echo_Voice.pat 
 104	Tone_000/104_Sitar.pat 
 114	Tone_000/114_Steel_Drums.pat 
 115	Tone_000/115_Wood_Block.pat 
 120	Tone_000/120_Guitar_Fret_Noise.pat 
 122	Tone_000/122_Seashore.pat 
 125	Tone_000/125_Helicopter.pat
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).

hth --Jonas
 
Old 06-20-2006, 09:26 AM   #3
mastersword
Member
 
Registered: Jun 2006
Distribution: openSuSE 10.2
Posts: 34

Original Poster
Rep: Reputation: 15
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)
 
Old 06-21-2006, 09:42 AM   #4
mastersword
Member
 
Registered: Jun 2006
Distribution: openSuSE 10.2
Posts: 34

Original Poster
Rep: Reputation: 15
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.
 
Old 06-21-2006, 11:50 AM   #5
Sonneteer
Member
 
Registered: May 2006
Location: Canada
Distribution: Slackware 13.37; Ubuntu 12.04
Posts: 81
Blog Entries: 5

Rep: Reputation: 15
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.
 
Old 06-22-2006, 09:14 AM   #6
mastersword
Member
 
Registered: Jun 2006
Distribution: openSuSE 10.2
Posts: 34

Original Poster
Rep: Reputation: 15
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
TiMidity++ Install Problem--Can't Find Configuration File bleedingturnips Linux - Software 14 04-06-2020 04:31 PM
Problem on timidity++ satimis Linux - Software 0 07-06-2005 08:45 PM
timidity paul62 Linux - Software 1 06-07-2005 10:59 PM
timidity paul62 Slackware 5 04-23-2005 06:02 PM
Help with Timidity++ Guitarist88 Linux - Software 7 09-22-2004 06:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:59 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration