El Foro

[Script] Traktor Pro 2

Professional digital DJ software

Autor Respuestas
Jump to the page: 1 - 2
Ronin DUSETTE Sunday 3 February 2013 at 19:52
Ronin DUSETTE
Admin

Ahoy oy. Here is another one. Enjoy. :)
 
[code language=playonlinux]

#!/bin/bash
# Date : (2013-03-01)
# Last revision : (2013-03-01)
# Distribution used to test : Kubuntu 12.04 LTS
# Author : DJYoshaBYD
# Licence : GPLv3
# PlayOnLinux: 4.1.9
   
   
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
   
PREFIX="TraktorPro2"
WINEVERSION="1.5.20"
TITLE="Traktor Pro 2"
EDITOR="Native Instruments"
GAME_URL="http://www.native-instruments.com"
AUTHOR="DJYoshaBYD"
   
#Initialization
POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "http://files.playonlinux.com/resources/setups/$PREFIX/left.jpg" "$TITLE"
POL_SetupWindow_Init
   
POL_Debug_Init
   
# Presentation
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
   
# Create Prefix
POL_SetupWindow_browse "$(eval_gettext 'Please select $TITLE install file:')" "$TITLE"
POL_System_SetArch "x86"
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WINEVERSION"
   
#Dependencies
   
# Configuration
Set_OS "winxp"
Set_SoundDriver "alsa"
   
# Installation
POL_Wine_WaitBefore "$TITLE"
GC_DONT_GC=1 POL_Wine "$APP_ANSWER"
POL_Wine_WaitExit "$TITLE"
   
# Create Shortcuts
POL_Shortcut "Traktor.exe" "$TITLE"
   
POL_SetupWindow_message "$(eval_gettext 'NOTICE: For low-latency audio, look into WineASIO. Your MIDI controllers should work as expected.')" "$TITLE"
  
POL_SetupWindow_Close
exit 0
[/code]

Screenshots:



Link to setup images and icons:

http://djyoshabyd.quicktech209.com/repository/Resources/Icons/TraktorPro2/

Please:
Post debug logs & full computer specs in first post
No private messages for general help, use the forums
Read the wiki, Report broken scripts
petch Sunday 3 February 2013 at 20:06
petch
Developer

I think both POL_System_SetArch "x86" and Set_SoundDriver "alsa" are defaults, but well, that shouldn't hurt.
I noticed you systematically use the GC_DONT_GC=1 tweak. As far as I know there's only few programs that need it (I know of League of Legends installer and updater, that's about it), are you sure it's needed? Otherwise better drop it.
Ronin DUSETTE Sunday 3 February 2013 at 20:09
Ronin DUSETTE
Admin

I thought that Pulse was default? Thats the only reason that I changed it. The 64 bit install is something that I couldnt get to work, but will be trying to figure that out, so it will work for either one. I just do the x86 to make sure that its set like that. Id rather not leave it to guessing. haha.

the GC_DONT_GC=1 can be taken out. I dont see why it would be needed.

Im working off of a template that I make corrections to every time I submit something, so that is why they are somewhat similar. lol. but yeah. that line can leave.

Please:
Post debug logs & full computer specs in first post
No private messages for general help, use the forums
Read the wiki, Report broken scripts
petch Sunday 3 February 2013 at 20:24
petch
Developer

I'm quite confident POL_System_SetArch "x86" (32bit always) is the default. 64bit on 64bit OSes is POL_System_SetArch "auto". Then again it doesn't hurt to leave it, specially if you know that they're issues with 64bit installation, it sortof documents the fact.

Ubuntu compiles Wine with a patch to better support Pulseaudio; But since it's not official and that we use pristine sources, PlayOnLinux Wine packages are not fully Pulseaudio compatible: http://www.playonlinux.com/en/issue-1314.html
Ronin DUSETTE Sunday 3 February 2013 at 20:27
Ronin DUSETTE
Admin

ok. so, Ill do some testing on the other scripts and see how they behave in 64 bit, and Ill make the changes from there. Thats good to know that it defaults to 32 bit, that way if its a non-issue or 32 bit only program, I dont even have to worry about that.

Hmm. That would explain why on a regular wine install and building/installing a wineprefix from the command line, that it works better with that, and not the same with POL. I kind of wondered what that difference is. Now I know. lol. Thanks, Pierre.

Please:
Post debug logs & full computer specs in first post
No private messages for general help, use the forums
Read the wiki, Report broken scripts
petch Sunday 3 February 2013 at 20:41
petch
Developer

Small mistake, the smallest icon must be 22x22 pixels, not 24x24 (who knows why ;) )
Anyway, I recreated one from the 48x48 icon, everything should be validated now.
Ronin DUSETTE Sunday 3 February 2013 at 20:44
Ronin DUSETTE
Admin

Oh wow. My bad. Must have fat-fingered that number. I was going through my notes when resizing and must have just split 48 in half. haha. Ill take care to make sure that its correct next time.

I think Ill just make GIMP templates for those sizes.

Please:
Post debug logs & full computer specs in first post
No private messages for general help, use the forums
Read the wiki, Report broken scripts
Ronin DUSETTE Monday 11 March 2013 at 19:45
Ronin DUSETTE
Admin

Here is the updated script with a note saying to uncheck the NI drivers, as per bug 1912. There is no way to automate this; the user installing must uncheck those drivers install options. This script should now be as follows:

#!/bin/bash
# Date : (2013-03-01)
# Last revision : (2013-03-01)
# Distribution used to test : Kubuntu 12.04 LTS
# Author : DJYoshaBYD
# Licence : GPLv3
# PlayOnLinux: 4.1.9
    
    
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
    
PREFIX="TraktorPro2"
WINEVERSION="1.5.20"
TITLE="Traktor Pro 2"
EDITOR="Native Instruments"
GAME_URL="http://www.native-instruments.com"
AUTHOR="DJYoshaBYD"
    
#Initialization
POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "http://files.playonlinux.com/resources/setups/$PREFIX/left.jpg" "$TITLE"
POL_SetupWindow_Init
    
POL_Debug_Init
    
# Presentation
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
    
# Create Prefix
POL_SetupWindow_browse "$(eval_gettext 'During installation, please UNCHECK all drivers for the NI controllers and audio interfaces. The install will fail if left checked, and are not needed. Please select $TITLE install file:')" "$TITLE"
POL_System_SetArch "x86"
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WINEVERSION"
    
#Dependencies
    
# Configuration
Set_OS "winxp"
Set_SoundDriver "alsa"
    
# Installation
POL_Wine_WaitBefore "$TITLE"
GC_DONT_GC=1 POL_Wine "$APP_ANSWER"
POL_Wine_WaitExit "$TITLE"
    
# Create Shortcuts
POL_Shortcut "Traktor.exe" "$TITLE"
    
POL_SetupWindow_message "$(eval_gettext 'NOTICE: For low-latency audio, look into WineASIO. Your MIDI controllers should work as expected.')" "$TITLE"
   
POL_SetupWindow_Close
exit 0


Please:
Post debug logs & full computer specs in first post
No private messages for general help, use the forums
Read the wiki, Report broken scripts
brandville Sunday 24 March 2013 at 23:24
brandvilleAnonymous

Hi there,

I am a bit of a newbie. forgive me for not knowing much. can you explain to me how to run the script. 

Thank you.

Brand
petch Sunday 24 March 2013 at 23:40
petch
Developer

Sure, start PlayOnLinux, click on the Install button, then search "Traktor Pro 2" (either using search input field, or browsing in Multimedia section)
Ronin DUSETTE Monday 25 March 2013 at 17:46
Ronin DUSETTE
Admin

:)

Please:
Post debug logs & full computer specs in first post
No private messages for general help, use the forums
Read the wiki, Report broken scripts
marlonbrando Tuesday 17 September 2013 at 14:11
marlonbrandoAnonymous

Hi there 

I am using Ubuntu 13.04 raring ringtail. I would like to get Traktor 2 Pro 2.6.2 to work. Will your script help and how do I implement this script?

I have had some errors when trying to use PlayonLinux to install it.
Ronin DUSETTE Tuesday 24 September 2013 at 23:08
Ronin DUSETTE
Admin

Can you be more clear? I need plenty more info. Read the stickies and post the required information, and Im sure we can figure out why it is not working. :)

Please:
Post debug logs & full computer specs in first post
No private messages for general help, use the forums
Read the wiki, Report broken scripts
marlonbrando Monday 21 October 2013 at 0:00
marlonbrandoAnonymous

Thanks for responding managed to get Traktor installed, still struggling with Wineasio and Jack.
Ronin DUSETTE Tuesday 22 October 2013 at 19:02
Ronin DUSETTE
Admin

I have wineasio working great now. I actually cover this in good detail. I still need to do a writeup and sticky for this.

Check this post:

http://www.playonlinux.com/en/topic-11076.html

Please:
Post debug logs & full computer specs in first post
No private messages for general help, use the forums
Read the wiki, Report broken scripts
Ronin DUSETTE Tuesday 22 October 2013 at 19:05
Ronin DUSETTE
Admin

Check the 4th or 5th post down and further. I posted what you need to do, where to get everything, and how to get it working specifically in POL.

As this does not need root access, Im planning on writing a POL function to help do this in the scripts, and add it during install. This will only work if the user has wineasio installed SYSTEM-wide, but as long as its there, I can symlink it or cp within a function during the scripts install time.

Alas, this will be a little while, as Im super busy with work and studying, but trust me, I will be doing this soon.

Please:
Post debug logs & full computer specs in first post
No private messages for general help, use the forums
Read the wiki, Report broken scripts
marlonbrando Sunday 3 November 2013 at 19:59
marlonbrandoAnonymous

Thank You. Getting Winasio to work will make things that much Nicer.
Ronin DUSETTE Tuesday 24 December 2013 at 20:10
Ronin DUSETTE
Admin

Word. I actually made it into a function. It can now be installed via:

PlayOnLinux -> Configure -> select virtual drive for application -> Install Components tab -> wineasio

Please:
Post debug logs & full computer specs in first post
No private messages for general help, use the forums
Read the wiki, Report broken scripts
demether Monday 20 January 2014 at 0:16
demetherAnonymous

Hi,

How do Traktor pro 2 performs on linux ? Latency, stability, multiple audio outputs, usb controllers ?

Does this script works with the demo version ? I'd like to know if the software is correctly working before buying it.

thanks
Ronin DUSETTE Wednesday 22 January 2014 at 22:33
Ronin DUSETTE
Admin

Does this script works with the demo version ? I'd like to know if the software is correctly working before buying it.

Citar


Then try to install the Demo version. I installed using the real version.

Traktor 2's stability in terms of low-latency and audio outputs all has to do with with WineASIO and JACK. If you really want to use it for performance, you need to understand how Jack, Wine, and WineASIO work together. Google is your best friend on that one. Think of Jack like ReWire, but with a very extensive interface, and WineASIO is basically like ASIO4ALL, but specifically to expose an ASIO interface to Jack, which can communicate in low/real time for sound processing. Its not too complicated, but it does take reading.

USB controllers, for me, work fine. Most USB controllers are USB 2.0/MIDI compliant devices, and should really work plug-and-play on almost any system. I, for instance, use an Akai MPD26, a Launchpad, an E-Mu USB-MIDI keyboard, and a Numark TotalControl with no issues.

Again, the sound stuff is out of scope for this forum, but WineASIO is EASILY installed through POL. You just need to get the rest set up, and that will require some reading, as it is not all point-and-click like on Windows (BUT it is NOT hard, either).

Please:
Post debug logs & full computer specs in first post
No private messages for general help, use the forums
Read the wiki, Report broken scripts