So here is the tutorial to get Hauptwerk runnning under Ubuntu. I hope this long, technical post is appropriate for this forum here.
While writing this tutorial, I was installing Hauptwerk parallel on my netbook to check the individual steps (I will remove it again, because multiple copies of the free edition are not allowed...). Here, it all worked fine (and also the netbook, Asus eeepc, has enough power to run Hauptwerk FE satisfactorily).
The installation procedure of Ubuntustudio is not describe here. This can be found in various wikis. However, I tried to use the standard (non-realtime kernel auf jaunty jackalope) and Hauptwerk also works with nearly the same performance. So I think the common Ubuntu/Kubuntu version of jaunty is sufficient (in a few weeks the new version is to be released, and I cannot guarantee, that this how-to works also with karmic). In a later post, I can give some tips on performance tuning (polyphony/avoiding glitches/latency).
So the first task is to install the jack audio server:
Open a konsole/xterm (alt+f2 konsole) and type
- Code: Select all
sudo apt-get install jack
and the corresponding GUI (you don't need this, but configuring jack via the graphical interface is a lot easier)
- Code: Select all
sudo apt-get install qjackctl
If jack and your midi interface is working correctly can easily be checked with the pipe-organ synthesizer aeolus
- Code: Select all
sudo apt-get install aeolus
Start qjackctl, deactive "realtime" and press start. Then the sound server should start. Run "aeolus" (in another command window or via alt+f2) and watch the connections in jack (connection window). Connect the system--aeolus in the audio tab and in the alsa-midi tab, your midi interface(hopefully reckognized by ubuntu) with aeolus.
If you now play on your keyboard/organ/whatsoever, and select some stops in aeolus everything should work fine, given that the MIDI channels and keyboards are configured correctly. If not, then something with jack is probably not working. The jack settings are crucial for the Hauptwerk performance later on (the smaller the latency time the better of course). To get the best performance, install the ubuntustudio packages and the realtime kernel and run jack in realtime mode.
The next step is a working installation of the latest wine with wineasio support. The standard wine version from the ubuntu repositories is (from my experience) not the best choice, so add the developers repositories via
- Code: Select all
wget -q http://wine.budgetdedicated.com/apt/Scott%20Ritchie.gpg | sudo apt-get add -q "Scott Ritchie.gpg"
sudo wget http://wine.budgetdedicated.com/apt/sources.list.d/jaunty.list -O /etc/apt/sources.list.d/winehq.list
and install wine
- Code: Select all
sudo apt-get install wine wine-dev libjack-dev
you will also need the wine sources to build the asio drivers and the jack souces (to build jack support for wineasio)
The next step is the installation of wineasio. First, you need the asiosdk from Steinberg. The file is name "asiosdk2.2.zip". You have to register as a developer at Steinberg. But perhaps a google search for this file will also help (otherwise, there are many forums/wikis devoted to wine asio compiling).
Then, you need the wineasio drivers from
http://sourceforge.net/projects/wineasio/which are named "wineasio.???.tar.bz2".
Unzip both files and copy the file "asio.h" (only this file) from ASIOSDK2.2/common/ to the wineasio directory.
Go to the wineasio directory and type
- Code: Select all
make
to build the drivers. Warnings can be ignored (but errors of course not). Then type
- Code: Select all
sudo make install
then the dll has to be registered via (also in the wineasio directory)
- Code: Select all
regsvr32 wineasio.dll
Now, wine has to be configured for asio/jack usage. The configuration tool is winecfg. The important tab is the "audio" tab. Make sure, that "jack" is DEactivated and ALSA is activated. Exit winecfg. Wine is now running in low-latency mode.
Now (I'm not sure if the order is important) Hauptwerk is installed. Get the free edition and double-click the icon
(or type wine InstallHauptwerk.exe)
Hauptwerk is installing as usual (XP/VISTA). I select a different VST folder, because otherwise the dll would be located somewhere in the .wine subfolder system. It is easier to handle the vst plugin later on if you choose /home/yourname/hauptwerk. All other install questions can be answered as in window systems. Finally, the usb-dongle driver complains, which has to be ignored. I have not tried to install the basic/advanced Hauptwerk version up to now, but as soon as I have progress there, I will report on this (the license is on its way).
Hauptwerk FE is now ready for use. You can double-click the standalone version in the ubuntu start,wine,hauptwerk menu. If you select "wineasio" in Hauptwerk/Audio output and connect audio interfaces in jack, all should work, however, I have serious problems with hanging notes and audio glitches at latency times I would prefer to have for serious organ playing. You can play a bit around with the settings in qjackctl (buffer size etc.) to find the best settings for your system. But I never managed to come to a result I am satisfied with.
That's why I tried to use the VST interface. One possibility is to use the dssi-vst software, found on
http://breakfastquay.com/dssi-vst. (Wine and wineasio is also needed for this.)
the file is named dssi-vst-08.tar.gz
Again a software, you have to compile yourself.
Unzip/untar the file
- Code: Select all
tar -xvzf dssi-vst-08.tar.gz
change into the folder dssi-vst
install all necessary dependencies:
- Code: Select all
sudo apt-get install alsa-source dssi-dev libasound2-dev liblo-dev
and type
- Code: Select all
make
due to a bug (? at least at my system), you have to copy some files: type
- Code: Select all
cp dssi-vst-scanner.exe dssi-vst-scanner
cp dssi-vst-server.exe dssi-vst-server
then, hopefully all went correct
and by typing
- Code: Select all
sudo make install
you install the vsthost application.
Congratulations, you have now everything ready, to run Hauptwerk under Ubuntu with high performance:
start Jack with
- Code: Select all
qjackctl
and with
- Code: Select all
vsthost Haupwerk.dll
in your vst directory, Hauptwerk is started. The graphical interface is a bit slow (keys pressed are not displayed immediately) but this does not affect the main Hauptwerk-functionality.
The vsthost software can be compiled also with support of the Steinberg vst-sdk. I use this with higher performance than the build without, but you again need a sdk from Steinberg (where also the asio-sdk is found).
At the end, this tutorial/how-to looks very complicated. But, however, it is just typing commands in the terminal (in the correct order) and getting some files from the internet. It would be much easier, if Steinberg wouldn't have such a restrictive license on the asio-sdk. Then, it would be possible to distribute a debian/ubuntu binary package for the vsthost/wineasio stuff (and Hauptwerk as well, if Martin/Brett allows that).
Best wishes and good luck, I hope I have not missed some important point/command,
Sebastian