Resources for “Running Windows Audio Applications under Wine”
March 27th, 2006 by Dave Phillips in
Wine Web Site: www.winehq.com
AudioMulch: www.audiomulch.com
Band-in-a-Box: www.pgmusic.com
Buzz (official site): www.buzzmachines.com
Buzz from Flavor8: flavor8.com/index.php/2005/10/15/buzz-tracker-on-linux
Other System Emulators: linux-sound.org/different.html
FST Project (VST Plugins on GNU/Linux): joebutton.co.uk/fst
Subscribe now!
Recently Popular
| How Should Mozilla Execute Its Vision? | Jul-08-08 |
| Why Python? | May-01-00 |
| Building a Call Center with LTSP and Soft Phones | Aug-25-05 |
| Add an Auto-Incrementing Build-Number to Your Build Process | Jul-08-08 |
| An Open Video to HP | Jul-02-08 |
| GPS and GIS: A Great Combination, Part I | Jul-08-08 |
Featured Video
From the Magazine
August 2008, #172
There's nuttin like a Cool Project to give you some relief from the summer heat, so get out your parka cuz we got a bunch of em. First up is the BUG, not a bug, The BUG. It's got a GPS, camera and more, in a hand-sized package that's user programmable. The BUG does everything. It's both a floor wax and a dessert topping. Get one now. Need a software version of a Swiss Army knife? Take a look at Billix, and don't leave home without it. Then, chew on this one, an X server on a Gumstix device driving an E-Ink display. Need more storage? How about 16 Terabytes? Can do.
And, of course, we have the usual cast of characters: Marcel, Reuven, Dave, Kyle, Doc, plus the new kid on the block Shawn Powers. But it doesn't stop there: build a MythTV box on a budget, build your own GIS system, set up the tools to monitor your enterprise and more. Finally, remember The War of the Worlds? Now you can play too.
Delicious
Digg
Reddit
Newsvine
Technorati






problem configuring a DAW under Linux and using the VST plug-ins
On December 15th, 2006 cavapippo (not verified) says:
Hi Davis,
I’m not familiar with the Linux Audio system. But I’m sure you will be able to help me.
I’ve read a lot of documents about how to setup a Linux for a musician and I’ve already tested a few distributions: Planet CCRMA, DEMUDI, MUSIX etc.
In the past I started using a Fedora Core 3; I rebuilt the kernel with the low latency patch and all the tools (jack etc.).
Now I'm using DEMUDI.
My issue is very easy: I have not a DAW under Linux yet! :-(
Note: I also use Windows (sorry for that) with the KX-Project drivers. So, with my SLBlaster Live Platinum, I’m able to play my guitar adding, in real-time, some VST plug-ins. Moreover, I can use the IK AmplitubeONE (it’s free!) as a stand alone application. Obviously, I use the ASIO driver with a latency of 10ms.
Summarizing my questions are:
How can I reproduce the same environment under Linux?
Which is the best distribution to do that?
I wonder if my issues only depend of a wrong configuration of the JACK connections.
Finally, I’ve found a lot of web documentation about how to use the VST plug-ins but I only can say: now I’m really confused!
Thanks a lot
Giuseppe
wine midi mapper not working?
On April 21st, 2006 Wolfgang Polzleitner (not verified) says:
Hi Dave!
I have just read your wonderful article in LJ 2006/05. You offered to be interested in feedback, which I am posting here.
Stimulated by your success story I ventured to try and get Band-In-A-Box installed on my Suse 10.0 system. I installed the program, but I did not get the sound working. BB displays the "wine midi mapper" in the available midi output drivers list (Opt->Midi driver setup), but BB keeps complaining that there is no MIDI Output Driver installed. Searching the web did not provide any answers to this problem, only nurtured my suspicion that midi mapper is not working in wine.
MY QUESTION: What did you do to be able to select the Emu10k1 (where is that menu, drop down list, configuration entry)? You do not seem to have been bothered by this midi mapper situation.
By the way, I use the latest version of wine (wine --version displays Wine 20060303), the crossover office version does the same (Wine 20050830).
Any help from anyone would be greatly appreciated.
Cheers (and thanks again for your great work!)
Wolfgang
Bank-In-A-Box 2005 and 2006, working fine in wine and cxoffice
On April 27th, 2006 Wolfgang Polzleitner (not verified) says:
Following my previous comment, I seem to have solved the problem. Here are the major steps (the impatient can find a summary at the end of my comment):
0. My system
SUSE 10.0, kernel 2.6.13-15.8-default, ALSA 1.0.9b
1. Sound Configuration.
The sound configuration of WINE has been changed by wine HQ and is now (versions after July 2005) only possible through the registry (the
~/.wine/configfile is happily ignored by the new versions). The best way to configure your wine sound system is to do# for cxoffice
$ wine --wl-app winecfg
or
# for the "regular" wine
$ winecfg
When you issue this command from the shell, the configuration window pops up. Select the Audio tab, and choose ALSA. (Sometimes I had to choose something else first and then ALSA to force the program to take over the selected parameter).
2. Midi driver setup in BIAB.
Now I can do (from the Band-In-A-Box wine-directory)
$ wine bbw.exe
and do "Opt." -> "Midi driver setup" and (WOW!) I can see my MIDI devices.
I don't have a MIDI-"enabled" sound card, so I need to play either through the MIDI-piano, or use timidity. However, using timidity is a little tricky:
3. Timidity.
The version of timidity I have (2.13.2-52) does not communicate correctly with Band-In-A-Box. It does receive MIDI data, but in a wrong way. I verified this by patching timidity from the source code (playmidi.c) to give me the MIDI events it acutally receives. The channels are screwed up. The reason is some weird combination of how Band-In-A-Box sends the MIDI events, ALSA, and timidity. (I tried Sweet-Midi, a Windows midi-player, and it worked fine with timidity). When I dump the midi events BIAB sends using
$ amidi -p virtual -d &
(and using the "virtual" MIDI-device in BIAB), the events from BIAB seem o.k. But how to get marvellous timidity back in business?
The good news: I found a work-around using Midi-Through. I need to start timidity as usual, e.g.,
$ timidity -iA -B2,8 -Os &
Requested buffer size 2048, fragment size 1024
ALSA pcm 'default' set buffer size 65536, period size 16384 bytes
TiMidity starting in ALSA server mode
Opening sequencer port: 128:0 128:1 128:2 128:3
And then do
$ aconnect 62:0 128:0
The magic 62:0 and 128:0 happen to be the port my Midi-Through virtual sound card is using and the port timidity offered when you started it. You can find out what you have to use instead of 62:0 by typing
$ cat /proc/asound/devices
and look for "raw midi" in the output.
Now, restart BIAB, goto Opt.->Midi driver setup, select Midi-Through, and try to play something. You shoud get timidity sound!
A final remark: I tried Midi-Through also to get BIAB sending its events to a VST-plugin using FST (Native Instruments Akoustic Piano). There I needed to disable "Midi-Thru" in the Midi driver setup window. Otherwise, even a single Midi event seemed to bounce back and forth between BIAB and the VST, finally forcing the VST to die of Midi event suffocation.
4. TODO
I have not had time to test any latency issues when playing a "real keyboard" throug BIAB related to this setup. Anyone interested, drop me a line.
5. SUMMARY
Here is a summary of the whole setup:
# -- Configure wine to use ALSA
$ winecfg # for "regular" wine
# -- for cxoffice # for cxoffice wine
$ wine --wl-app winecfg
$ timidity -iA -Os -B2,8 &
$ aconnect 62:0 128:0 # replace 62 and 128 by "your" values)
$ wine bbw.exe
# -- or
$ wine --start bbw.exe
# -- Then do Opt.-> Midi driver setup: Select Midi-Through
PLAY PLAY PLAY PLAY PLAY PLAY PLAY PLAY PLAY PLAY PLAY PLAY PLAY
error with aconnect
On March 9th, 2007 Anonymous (not verified) says:
Hello,
Thanks for your help. Indeed, OSS consume more CPU resources and I can use it. But with alsa, I can follow your advise. When I type
aconnect 8:0 128:0
I get :
connection failed (Argument invalide)
So timidity server works perfectly with 128:0
And when I type
cat /proc/asound/devices
I obtain :
0: [ 0] : control
1: : sequencer
4: [ 0- 0]: hardware dependent
6: [ 0- 2]: hardware dependent
8: [ 0- 0]: raw midi
9: [ 0- 1]: raw midi
10: [ 0- 2]: raw midi
16: [ 0- 0]: digital audio playback
18: [ 0- 2]: digital audio playback
19: [ 0- 3]: digital audio playback
24: [ 0- 0]: digital audio capture
25: [ 0- 1]: digital audio capture
26: [ 0- 2]: digital audio capture
33: : timer
So, 8:0 is a good value, no ? Idem for 9:0 or 10:0
Thanks for help,
Thibaud.
MIDI-thru
On September 25th, 2006 Alain (not verified) says:
Thanks for this great article and the comments. In Wolfgang's comment I miss a useful piece of info. It took me a while to find out, what your MIDI-Thru is and how to set it up.
What I had to do is load the snd-seq-dummy module to get a MIDI-Thru at port 62:0
then I did the
aconnect 62:0 128:0
now biab plays!
regards
Alain
Thank you
On December 13th, 2006 Anonymous (not verified) says:
Many thanks, now i can play Dink SmallWood in wine with midi sound.
VIRTUAL DJ 5 WORKS UNDER
On January 10th, 2007 Anonymous (not verified) says:
VIRTUAL DJ 5 WORKS UNDER WINE
WTF NICE