Re: [Mixxx-devel] NI Traktor Kontrol S2 MK2 (HID) is not detected under Linux

2015-09-24 Thread Daniel Schürmann
Hi douteiful,

great! Would you mind to help to bring the change to the Mixxx repository?

Do you have a contact to the hidapi developers? They may help to pick a
suitable version for a Mixxx release or a cherry-pick.

But first of all, we need a Launchpad bug to track this issue.
Please report your issue and findings here
https://bugs.launchpad.net/mixxx/+filebug
Or do we have already one?

Thank you very much,

Daniel


2015-09-25 2:14 GMT+02:00 douteiful :

> Hi again,
>
> I made it work!
>
> It seems there is something wrong with the internal version of the hidapi
> library used by Mixxx (lib/hidapi-0.8.0-pre). The hid_enumerate() function
> wasn't returning the Traktor S2 MK2 at all.
>
> What I did was to clone the hidapi-0.8.0-rc tag from hidapi's official git
> and built Mixxx with it instead (by putting it in the lib/ directory and
> renaming the source files). I re-compiled and now Mixxx detects my Traktor
> S2 MK2! I can enable it and it even outputs the input of the controller
> with --controllerDebug, so it seems to be working properly so far.
>
> I haven't looked closely into the library source, but the problem is
> somewhere in the internal version that you're currently using in the repo.
> We should either update the library and/or allow the user to use the system
> version (which is TODO as I've seen).
>
> Here's the log with it working (I added the Seen line while I was
> experimenting, please ignore it).
>
> I hope it helps.
>
> Be wrote:
>
>> Can you attach the whole mixxx.log after opening controller preferences?
>>
>>
>> On Sep 21, 2015 1:00 AM, douteiful  wrote:
>>
>>>
>>> Hi all,
>>>
>>> I have a NI Traktor Kontrol S2 MK2 controller, which according to the
>>> wiki is HID compliant (unlike the MK1), and I'd like to contribute
>>> creating a HID mapping for it.
>>>
>>> It's detected as a HID device in Mixxx under Windows (even if the
>>> official NI drivers are not installed), but no matter what I do I can't
>>> make it show up in Mixxx under Linux.
>>>
>>> After adding the udev rules suggested in the wiki, my USB mouse showed
>>> up in the Mixxx's configuration panel as a HID device, but the Traktor
>>> S2 MK2 just refuses to appear.
>>>
>>> Distributions tested: Debian Sid (amd64), Linux Mint, Crossfade
>>> Mixxx versions tested: 1.11, 1.12 beta, latest git
>>>
>>> Same result in every case: only my USB mouse shows up, but not the
>>> Traktor S2 MK2.
>>>
>>> dmesg output after turning the controller on:
>>>
>>> [ 6362.621988] usb 1-4: new high-speed USB device number 3 using
>>> ehci-pci
>>> [ 6362.754736] usb 1-4: New USB device found, idVendor=17cc,
>>> idProduct=1320
>>> [ 6362.754748] usb 1-4: New USB device strings: Mfr=12, Product=7,
>>> SerialNumber=13
>>> [ 6362.754756] usb 1-4: Product: Traktor Kontrol S2 MK2
>>> [ 6362.754762] usb 1-4: Manufacturer: Native Instruments
>>> [ 6362.754767] usb 1-4: SerialNumber: 6D874030
>>> [ 6362.765198] hid-generic 0003:17CC:1320.0002: hiddev0,hidraw1: USB HID
>>> v1.10 Device [Native Instruments Traktor Kontrol S2 MK2] on
>>> usb-:00:12.2-4/input3
>>> [ 6362.884222] usbcore: registered new interface driver snd-usb-audio
>>>
>>>
>>> If you need any more information please let me know. I'm willing to do
>>> any tests.
>>>
>>> Thank you for your hard work on Mixxx 1.12, and thanks in advance for
>>> any help.
>>>
>>>
>>> --
>>> ___
>>> Get Mixxx, the #1 Free MP3 DJ Mixing software Today
>>> http://mixxx.org
>>>
>>>
>>> Mixxx-devel mailing list
>>> Mixxx-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/mixxx-devel
>>>
>>
>
>
> --
>
> ___
> Get Mixxx, the #1 Free MP3 DJ Mixing software Today
> http://mixxx.org
>
>
> Mixxx-devel mailing list
> Mixxx-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mixxx-devel
>
--
___
Get Mixxx, the #1 Free MP3 DJ Mixing software Today
http://mixxx.org


Mixxx-devel mailing list
Mixxx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mixxx-devel

Re: [Mixxx-devel] NI Traktor Kontrol S2 MK2 (HID) is not detected under Linux

2015-09-24 Thread douteiful

Hi again,

I made it work!

It seems there is something wrong with the internal version of the 
hidapi library used by Mixxx (lib/hidapi-0.8.0-pre). The hid_enumerate() 
function wasn't returning the Traktor S2 MK2 at all.


What I did was to clone the hidapi-0.8.0-rc tag from hidapi's official 
git and built Mixxx with it instead (by putting it in the lib/ directory 
and renaming the source files). I re-compiled and now Mixxx detects my 
Traktor S2 MK2! I can enable it and it even outputs the input of the 
controller with --controllerDebug, so it seems to be working properly so 
far.


I haven't looked closely into the library source, but the problem is 
somewhere in the internal version that you're currently using in the 
repo. We should either update the library and/or allow the user to use 
the system version (which is TODO as I've seen).


Here's the log with it working (I added the Seen line while I was 
experimenting, please ignore it).


I hope it helps.

Be wrote:

Can you attach the whole mixxx.log after opening controller preferences?

On Sep 21, 2015 1:00 AM, douteiful  wrote:


Hi all,

I have a NI Traktor Kontrol S2 MK2 controller, which according to the
wiki is HID compliant (unlike the MK1), and I'd like to contribute
creating a HID mapping for it.

It's detected as a HID device in Mixxx under Windows (even if the
official NI drivers are not installed), but no matter what I do I can't
make it show up in Mixxx under Linux.

After adding the udev rules suggested in the wiki, my USB mouse showed
up in the Mixxx's configuration panel as a HID device, but the Traktor
S2 MK2 just refuses to appear.

Distributions tested: Debian Sid (amd64), Linux Mint, Crossfade
Mixxx versions tested: 1.11, 1.12 beta, latest git

Same result in every case: only my USB mouse shows up, but not the
Traktor S2 MK2.

dmesg output after turning the controller on:

[ 6362.621988] usb 1-4: new high-speed USB device number 3 using ehci-pci
[ 6362.754736] usb 1-4: New USB device found, idVendor=17cc, idProduct=1320
[ 6362.754748] usb 1-4: New USB device strings: Mfr=12, Product=7,
SerialNumber=13
[ 6362.754756] usb 1-4: Product: Traktor Kontrol S2 MK2
[ 6362.754762] usb 1-4: Manufacturer: Native Instruments
[ 6362.754767] usb 1-4: SerialNumber: 6D874030
[ 6362.765198] hid-generic 0003:17CC:1320.0002: hiddev0,hidraw1: USB HID
v1.10 Device [Native Instruments Traktor Kontrol S2 MK2] on
usb-:00:12.2-4/input3
[ 6362.884222] usbcore: registered new interface driver snd-usb-audio


If you need any more information please let me know. I'm willing to do
any tests.

Thank you for your hard work on Mixxx 1.12, and thanks in advance for
any help.

--
___
Get Mixxx, the #1 Free MP3 DJ Mixing software Today
http://mixxx.org


Mixxx-devel mailing list
Mixxx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mixxx-devel


Debug [Main]: Loading SoundSource plugins "/mnt/g/z411/Documents/git/mixxx/lin64_build/plugins" 
Debug [Main]: SoundSourceProvider for "aif" is "libsndfile" 
Debug [Main]: SoundSourceProvider for "aiff" is "libsndfile" 
Debug [Main]: SoundSourceProvider for "flac" is "Xiph.org libFLAC" 
Debug [Main]: SoundSourceProvider for "mp3" is "MAD: MPEG Audio Decoder" 
Debug [Main]: SoundSourceProvider for "ogg" is "Xiph.org OggVorbis" 
Debug [Main]: SoundSourceProvider for "wav" is "libsndfile" 
Debug [Main]: Mixxx "2.1-alpha-pre" "(git master r5466; built on: Sep 24 2015 @ 20:28:20; flags: asan=0 autodjcrates=1 bulk=1 color=0 coreaudio=0 faad=0 ffmpeg=0 hid=1 hss1394=0 ipod=0 localecompare=1 macappstore=0 mad=1 mediafoundation=0 modplug=0 optimize=portable opus=0 perftools=0 perftools_profiler=0 profiling=0 qdebug=1 qt_sqlite_plugin=0 shoutcast=1 test=False vamp=1 verbose=1 vinylcontrol=1 wv=0)" is starting... 
Debug [Main]: Qt version is: 4.8.7 
Debug [Main]: QDesktopServices::storageLocation(HomeLocation): "/home/z411" 
Debug [Main]: QDesktopServices::storageLocation(DataLocation): "/home/z411/.local/share/data//Mixxx" 
Debug [Main]: QCoreApplication::applicationDirPath() "/mnt/g/z411/Documents/git/mixxx" 
Debug [Main]: Configuration file is at the current version 2.1-alpha-pre 
Debug [Main]: Loading resources from  "/mnt/g/z411/Documents/git/mixxx/res/" 
Debug [Main]: Loading resources from  "/mnt/g/z411/Documents/git/mixxx/res/" 
Warning [Main]: QLayout: Attempting to add QLayout "" to LaunchImage "", which already has a layout
Debug [Main]: Loading resources from  "/mnt/g/z411/Documents/git/mixxx/res/" 
Debug [Main]: Loading resources from  "/mnt/g/z411/Documents/git/mixxx/res/" 
Debug [Main]: Loading translations for locale "en_US" from translations folder "/mnt/g/z411/Documents/git/mixxx/res/translations/" : fail 
Debug [Main]: Loading resources from  "/mnt/g/z411/Documents/git/mixxx/res/" 
Debug [Main]: Compressor attack per frame:  0.000408163 decay per frame:  4.08163e-05 

Re: [Mixxx-devel] brainstorming for future mapping format

2015-09-24 Thread Be
On 07/07/2015 10:14 AM, raskolni...@es.gnu.org wrote:
> On the other hand, I have the impression that what we really need is a
> two simple functions `map[Output,Input]Control(channel, value, group,
> name, options)` that allows to define a MIDI mapping at run-time.  This
> would be the JS equivalent of the  tags.

I just realized this is already possible. The function names specified 
in the XML file are JavaScript variables, so just assign the variable to 
a different function. I'll play around with this, refactor the Electrix 
Tweaker mapping, and document how to use the technique on the wiki.

--
___
Get Mixxx, the #1 Free MP3 DJ Mixing software Today
http://mixxx.org


Mixxx-devel mailing list
Mixxx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mixxx-devel


Re: [Mixxx-devel] wiki overhaul

2015-09-24 Thread Be
HID mapping documentation is sorely lacking. It'd be great if someone 
started a new page with an HID crash course and an explanation of how to 
map HID signals with JS.

On 09/24/2015 03:07 AM, Be wrote:
> I reorganized the controller mapping documentation into smaller pages
> that link to each other. I created the new pages "Controller mapping
> file locations", "Contributing mappings", and "MIDI crash course". I
> also revised the "MIDI controller mapping file format" page and added an
> XML crash course to it.
>
> http://mixxx.org/wiki/doku.php/start#controller_mapping_documentation
>
> On 06/10/2015 05:01 PM, Be wrote:
>> I have started overhauling the wiki. Take a look and feel free to edit.
>>
>> On the front page, I:
>> * moved the info about GSoC to its own page,
>> * moved the links to old meeting minutes to their own page,
>> * removed the outdated and confusing link about the Hercules driver,
>> * updated the manual link to the current online manual, and
>> * reorganized a lot of other links.
>> On other pages, I:
>> * added Crossfade to the page about live GNU/Linux distros
>> * removed outdated info about MixxxOS
>> * added info about Native Instruments Traktor controllers to the
>> hardware compatibility page
>> * updated compilation instructions for Fedora.
>> * updated info about using two sound cards in the FAQ
>>
>> To do:
>> * Rewrite beginner's guide considering info that is already in manual. I
>> am also working on revising the manual, especially chapter 3.
>> * Add prices to hardware compatibility tables
>> * Update info about controllers where info is available
>> * Organize sound cards on hardware compatibility page into a table with
>> info about each OS and the capabilities of the hardware
>> * add more sound cards
>> * undicate which controllers bundle sound cards
>>
>> --
>> ___
>> Get Mixxx, the #1 Free MP3 DJ Mixing software Today
>> http://mixxx.org
>>
>>
>> Mixxx-devel mailing list
>> Mixxx-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/mixxx-devel
>>
>
> --
> Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
> Get real-time metrics from all of your servers, apps and tools
> in one place.
> SourceForge users - Click here to start your Free Trial of Datadog now!
> http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
> ___
> Get Mixxx, the #1 Free MP3 DJ Mixing software Today
> http://mixxx.org
>
>
> Mixxx-devel mailing list
> Mixxx-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mixxx-devel
>

--
Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
Get real-time metrics from all of your servers, apps and tools
in one place.
SourceForge users - Click here to start your Free Trial of Datadog now!
http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
___
Get Mixxx, the #1 Free MP3 DJ Mixing software Today
http://mixxx.org


Mixxx-devel mailing list
Mixxx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mixxx-devel


Re: [Mixxx-devel] wiki overhaul

2015-09-24 Thread Be
I reorganized the controller mapping documentation into smaller pages 
that link to each other. I created the new pages "Controller mapping 
file locations", "Contributing mappings", and "MIDI crash course". I 
also revised the "MIDI controller mapping file format" page and added an 
XML crash course to it.

http://mixxx.org/wiki/doku.php/start#controller_mapping_documentation

On 06/10/2015 05:01 PM, Be wrote:
> I have started overhauling the wiki. Take a look and feel free to edit.
>
> On the front page, I:
> * moved the info about GSoC to its own page,
> * moved the links to old meeting minutes to their own page,
> * removed the outdated and confusing link about the Hercules driver,
> * updated the manual link to the current online manual, and
> * reorganized a lot of other links.
> On other pages, I:
> * added Crossfade to the page about live GNU/Linux distros
> * removed outdated info about MixxxOS
> * added info about Native Instruments Traktor controllers to the
> hardware compatibility page
> * updated compilation instructions for Fedora.
> * updated info about using two sound cards in the FAQ
>
> To do:
> * Rewrite beginner's guide considering info that is already in manual. I
> am also working on revising the manual, especially chapter 3.
> * Add prices to hardware compatibility tables
> * Update info about controllers where info is available
> * Organize sound cards on hardware compatibility page into a table with
> info about each OS and the capabilities of the hardware
> * add more sound cards
> * undicate which controllers bundle sound cards
>
> --
> ___
> Get Mixxx, the #1 Free MP3 DJ Mixing software Today
> http://mixxx.org
>
>
> Mixxx-devel mailing list
> Mixxx-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mixxx-devel
>

--
Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
Get real-time metrics from all of your servers, apps and tools
in one place.
SourceForge users - Click here to start your Free Trial of Datadog now!
http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
___
Get Mixxx, the #1 Free MP3 DJ Mixing software Today
http://mixxx.org


Mixxx-devel mailing list
Mixxx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mixxx-devel