Band in a Box is a popular utility that often comes with some problems regarding its audio output. As Band in a Box uses MIDI sound and Linux often fails to incorporate that type of audio with its integrated peripherals, even with some popular multi-platform transitional software application like Wine, there can still be problems. The alsa base, alsa utils and alsa -oss timidity
packages have to be installed, and after that Wine needs to be configured in terms of audio. Check only the alsa drives, and sound will come. Moreover, Timidity
has to be activated under Server mode from the commands given from the console.
You can use Wine to run Band in a Box (BiaB) under Linux, but there will still be no sound. Here is the solution!
Sometimes Wine emits no sound, because BiaB uses MIDI sounds, which are quite troublesome to manage under Linux. To rectify this, it is necessary to update some alsa packages (sound manager) and install Timidity: a synthesizer managing midi files.
Installation of missing packages
To solve the problem, install alsa-base, alsa-utils, alsa-oss and timidity.
sudo apt-get install alsa-base alsa-utils alsa-oss timidity
Then go Wine> Configure Wine. In the Audio tab, you have a list of drivers. Check only the ALSA driver.
You can test the sound using the button on the right.
Before launching BiaB, consider the activation of Timidity under server mode. To do this in a console, use the following command:
timidity -iA -B2,8 -Os -EFreverb=0
- iA: launch the timidity server mode usingf ALSA
- B2, 8: B represents the buffer. If it works, set it to 4.8 (best results).
- Os: "Output to alsa'.
- EFreverb-= 0: to remove the " reverb" effects of MIDI files.
From now you can start BiaB.
Don't forget to close Timidity once BiaB is off (otherwise it will use your memory). To do a quick killall:
sudo killall timidity
It is quite tedious to repeat this process at each launch. For this, here is a small script to automate the process! To do this, instead of using BiaB via Wine, we will run a script that takes care of starting Timidity and then BiaB. This script will also handle the closing down of the software:
echo "Launch timidity"
nohup timidity -iA -B2,8 -Os -EFreverb=0
echo "Timidity is launched"
echo "Starting Band in a box ..."
echo "Upon closure of BIAB, Timidity will turn off automatically.."
echo "Lauch program... !"
echo "Wait for user to close biab..."
nohup wine "C:\bandinabox2007\bbw.exe"
echo "Band in a box was closed : timidity suicide"
sudo killall timidity
echo "Timidity is killed"
Thanks to Mihawk for this tip.