LinuxQuestions.org
Visit Jeremy's Blog.
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 02-04-2007, 06:32 PM   #1
mastersword
Member
 
Registered: Jun 2006
Distribution: openSuSE 10.2
Posts: 34

Rep: Reputation: 15
Timidity + Band In A Box 2006, No MIDI output


I'm trying to get Band in a Box 2006 working through Wine, however I'm having no luck in getting the MIDI output to work. I have Timidity installed, and it shows up several times in the BiaB's MIDI output driver options, but even when selected I get no results. I have a parallel thread running in another forum and so far it has yielded no results. I've also tried following these two guides/wiki's:

http://susewiki.org/index.php?title=Using_MIDI#WINE
http://nfs-uxsup.csx.cam.ac.uk/pub/d...n/ch15s10.html

I have timidity installed using an sf2 soundfont, which plays regular midi files fine. The following is my timidify.cfg:

dir /usr/share/timidity/eawpats source timidity.cfg

# This sets up the default patches

source piano+guitar.cfg
source drums.cfg
soundfont soundfont.sf2

I'm starting timidity with the following commands:

#timidity -iA -B2,8 -0s &

which yields:

[1] 6228
marctop:/usr/share/timidity # Requested buffer size 2048, fragment size 1024
ALSA pcm 'default' set buffer size 7524, period size 3760 bytes
TiMidity starting in ALSA server mode
Opening sequencer port: 128:0 128:1 128:2 128:3


When I start the play sequence in BiaB the following lines are appended:

Requested buffer size 2048, fragment size 1024
ALSA pcm 'default' set buffer size 7524, period size 3760 bytes


To me it looks like BiaB is calling to timidity, however, no sound is produced. I read somewhere (I believe it was in Wine's AppDB) that timidity in BiaB don't properly communicate, but some work around IS possible. I'll look for those details and post them here.

Any help at all would be great. Thanks!
 
Old 02-05-2007, 01:32 PM   #2
studioj
Member
 
Registered: Oct 2006
Posts: 460

Rep: Reputation: 31
read this
http://www.linuxjournal.com/node/8802/print

the answer might be in the section about ~/.wine/config file
 
Old 02-05-2007, 02:28 PM   #3
mastersword
Member
 
Registered: Jun 2006
Distribution: openSuSE 10.2
Posts: 34

Original Poster
Rep: Reputation: 15
Update!

I seem to have gotten midi working almost perfectly in BiaB. Using some information found on Wine's AppDB, I found that by installing the snd-virmidi module into the kernel (#modprobe snd-virmidi) to get a list of virtual midi ports using "cat /proc/asound/devices" I was able to connect one of the ports labelled "RAW Midi" to one of the ports used by timidity (in my case 14:0 and 128:0 respectively) with the command "aconnect 14:0 128:0" In my app, I then selected "Wine Midi Mapper" as the midi output in my app and voila! I now have sound!

The only issue I'm still having is that the drums aren't playing properly as drums, rather they are being articulated as a piano... I'm not quite sure how all of this works, but if someone would be so kind as to clarify for me and perhaps provide some kind of solution I would be extremely grateful. Thanks!
 
Old 02-05-2007, 03:29 PM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
First of all: congratulations! It's good to know BiaB works in WINE. If you could add your experiences to the WINE database it would make it easier for others. (You could for instance just post the URI of this thread.)

The only issue I'm still having is that the drums aren't playing properly as drums, rather they are being articulated as a piano.
Being used to Screamtracker and Fasttracker I know zilch about MIDI so I don't have a solution: as far as I know BiaB files don't translate 1:1 to "ordinary" MIDI files, so that sounds like a MIDI channel mapping issue. If you know MIDI you probably know what to do :-] (tweak instrument/channel mappings)

Last edited by unSpawn; 02-05-2007 at 03:33 PM.
 
Old 02-05-2007, 10:34 PM   #5
studioj
Member
 
Registered: Oct 2006
Posts: 460

Rep: Reputation: 31
piano is channel 1, drums are channel 10, i think if that helps
 
Old 02-06-2007, 03:02 PM   #6
mastersword
Member
 
Registered: Jun 2006
Distribution: openSuSE 10.2
Posts: 34

Original Poster
Rep: Reputation: 15
I'm not really sure how to go about fixing that in the slightest to be honnest. Looks like I have some research to do lol.
 
  


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
Band-in-a-box 2005 with wine and timidity mastersword Linux - Software 0 07-07-2006 11:55 AM
Midi files won't play, timidity won't start FibonacciPrower Linux - Software 0 06-10-2006 03:00 PM
Equivalent of Band in a Box raddad51x Linux - General 4 05-07-2006 04:11 PM
Solfege, timidity & DGuitar, MIDI issue. Jorek Linux - Software 2 01-13-2006 05:07 PM
no midi output... lucat Linux - Hardware 2 03-31-2003 04:54 AM

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

All times are GMT -5. The time now is 12:18 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