How to use wineasio from scratch with XT2.
////////////////////////////////////////*/
hello this is my simple guide on how to get wineasio up and running on your linux install. this guide assumes you know a little something about linux audio, asio, and other terms so if you don't you might wanna get some knowledge from teh google to see if you really wanna do this
--------- what you need: ---------------------------------------------------
1) pc/(mac?) with a linux distro (note: this guide is written for an Ubuntu install, probably best to use stock ubuntu 7.04 if you dont know much yet and are just starting off, this way you will run into fewer, "its your specific setup" type problems.)
*also if you use jacklab opensuse linux, wineasio is ALREADY IMPLEMENTED so if this guide fails you, just use JAD distrobution. without the works those guys have done, this would not be possible, shoutouts to them, im sure you'll see me in the irc sooner or later
2) newest wineasio version. (file: lucky for you guys i have a pre-compiled one i did myself in xubuntu, so hopefully it will work well if your also using an ubuntu/debian based distro. details on how to compile it coming later, if people really want to know how.)
3) newest version of wine.
4) XT2.exe and libaam.dll aka "windows version of XT2"
5) jack and its dependencies, qjackctl for the gui
6) low latency kernel (again easy with ubuntu or jacklab: jacklab IS a lowlatency kernel distro, as is ubuntustudio, or it can be installed on a plain vanilla ubuntu via apt-get etc. if your using something ELSE, you may have to roll your own low latency kernel, and for that you are own your own. good luck.)
7) alsa compatible soundcard/midi interface.
------------------- Setting it up ---------------------------------------------
okay time to get started. this guide pretends we are all starting with a fresh ubuntu install with the low latency kernel. first lets install the linux packages that we need. fire up a terminal and ctrl+shift+V these commands:
Code: Select all
sudo apt-get -y install wine wine-dev libjack0.100.0-dev \
qjackctl build-essentialCode: Select all
sudo apt-get -y install linux-lowlatencylet this stuff download and install. if you have beryl... this may be a good time to twirl the desktop cube until you have a seizure. just kidding.
okay let's grab the other files we need now:
XT2 windows.zip ( i assume you know where to get this...)
(updated) newest wineasio 0.5 (already compliled into "wineasio.dll.so") wineasio.0.5.dll.so
(BIG thanks to "sandsound" for hosting the file
make a note of where these files are on your HD once downloaded.
now this part is flexible, im just sharing exactly how i set it up to keep from confusing myself, so if you wanna do things your way here thats fine
-lets create a folder in /home/username/ called "XT2" without quotations.
-now create a folder in the XT2 folder called "win" without quotations. this will keep you organized when you wanna add the linux version. (which i recommend you call "lin" without quotations)
now in the "win" folder, lets unzip xt2win stuff in there: mainly Xt2.exe, and libaam.dll you can of course put all the other cool stuff in the zip in there as well. i like to be extra organized in this situation so here is what my "win" folder looks like:
//pic//

makes it easier to work with .ini files when all folders are close together like that.
why no folder for "vsts" ? you may ask... well those are going to go into your ".wine" directory.
i suggest before installing any vsts or attempting to install vst's to go into your /home/username/ folder and open your .wine folder (if you dont see it that means that "hidden" files are not shown. try ctr-h to show all folders with a "." in front of them, which simply means they are a "hidden" folder.) once in the ".wine" folder you will see something like this:
//pic//

go into the folder called "drive_c" . if your new to wine, think of this as a windows installed into this folder. inside you will see typical heiarchy of a windows install: a folder called "program Files" and a folder called "windows" where all your dll and system files go. for now just go into "program files" and create a folder called "VstPlugins" without the quotes. many will recognize this as the default folder for vst installation, when you don't own cubase. if your installer doesnt point to it, just manually point it to this folder come install time, and eventually it will be registered as the "default vst plugin folder". this behaves like windows. I also like to keep my free vst's in here, I create a folder within the "VstPlugins" folder called "feeVst' or something to that extent to drop .dll files in (since most free vst's are just the .dll itself. this makes it easy to keep track of ALL vsts used through wine.) once that is setup lets fire up a terminal and get things working.
with a terminal open type this:
Code: Select all
winecfgnow for a little pre-empitve work. fire up terminal again and do this:
to setup realtime access:
Code: Select all
sudo su -c 'echo @audio - rtprio 99 >> /etc/security/limits.conf'
sudo su -c 'echo @audio - memlock 250000 >> /etc/security/limits.conf'
sudo su -c 'echo @audio - nice -10 >> /etc/security/limits.conf'then lets setup alsa midi:
Code: Select all
sudo modprobe snd-seqto have it persistent across reboots, use this command:
Code: Select all
sudo su -c 'echo snd-seq >> /etc/modules'set the timer reolution to a freq that is suitable for midi use:
Code: Select all
sudo sysctl -w dev.rtc.max-user-freq=1024to make this resolution persistent across reboots do this:
Code: Select all
sudo su -c 'echo dev.rtc.max-user-freq=1024 >> /etc/sysctl.conf'
okay when thats done you need to go into administration menu and then open up users and groups. make a group called "audio" without quotes and make sure your user and root are members of this group.
now lets take the wineasio.dll.so file and place it in this folder:
/usr/lib/wine/
you may have to be sudo to place this in this folder. to do this the graphical way, just go into terminal if your using gnome and type:
Code: Select all
sudo nautilusthis will bring up a file manager, but with sudo so you can modify files inside your / path. be careful. go to wherever you have wineasio.dll.so file, copy it, and paste it in /usr/lib/wine folder. close the sudo nautilus.
(for xubuntu users, use sudo thunar instead of nautilus)
now to get this driver to register with wine. in a terminal type this:
Code: Select all
regsvr32 wineasio.dllnow wine will recognize wineasio. next, lets create a symlink so wineasio looks for jack:
Code: Select all
sudo ln -s /usr/lib/libjack-0.100.0.so.0 /usr/lib/libjack.so.0okay. now we should be in business
with jack server running, fire up XT2.exe in your XT2/win folder. go to "setup" and then the "audio" tab. Set it to "wineasio" so it looks (something) like this:
//pic//

now go over to the "midi" tab. if all works well, you should see your midi in and perhaps jacks "midi thru". this is what mine looks like:
//pic//

*now make sure your winecfg audio tab ONLY has alsa checked. midi will NOT WORK if this is not done.
okay now lets go to the "folders" tab. navigate to your wine program files/VstPlugins folder we made earlier. add this to "plugins". (you can set up the other folders later.
like so:
//pic//

okay. lets see if it works shall we
go to teh internetz and grab some free (windows) vst plugins, preferrably the "just a .dll" kind. copy the .dll's and place them in your .wine/drive_c/program files/Vstplugin/ folder. if xt2 was open before you put them in there, just go to the browser and right-click refresh once the plugins are in there. you should now see them listed. drag one to a midi track or to the comps window and dbl click it. if all goes well it will look something like this:
//pic// (large one)

if all goes well, you will get midi input too! star playing your synth, let out a flava flav style "yeeaah boi!" ...because you are now using wineasio with win XT2 in linux!!!
note: you do NOT have to run jack control to get it working everytime. you only have to run this IF you want to attach other jack apps together etc....this is beyond the scope of this howto, but hey, your welcome to ask questions i might be able to answer them
basic "install" instructions coming soon...but right now i have GOT to go do something else...anything else
--------------------- in closing -------------------------------------------
this guide owes much thanks to the people over at jacklab, drumfix metasybol and the gang for getting wineasio where it is now, dave hayes' blog on how to do this (with reaper) from which most of this guide is born from. these people get all the props.
feel free to post questions in here, but just know that i *may* not be able to help you. if anyone in the know is reading this feel free to answer someone's question if you know the answer. i will be editing this as its probably full of typos and whatnot. hope this can help people. Eventually i may make a faq type post for common problems and issues. have fun
edits: not sure why my pics are getting resized, to view them in their big glory, visit my flikr page, full of screenshots of vasrious linux xt2 wineasio things.
http://www.flickr.com/photos/wonderful00t/
















