MIDI Mapping for Pioneer DDJ-SB

XML preset files and script files (.js) for MIDI and other controllers.

Moderators: garth, User Customization Moderators

MIDI Mapping for Pioneer DDJ-SB

Postby wingcom » Sat Jan 24, 2015 10:06 am

Hi,

Currently there are two versions of Mixxx available for you to play with:
- v1.11 which is the stable version
- v1.12 which is in beta and has a ton more cool features

I highly recommend you download the beta version and switch to that one as it is the only one that actually implements ALL of the features available on the DDJ-SB. To give an example, v1.11 did not have FX so the FX knobs, the filter knob and the crossfade filter won't work as intended in that version.

I've been testing with the beta version and imho it is stable. A real joy to work with. Some people on Windows report problems with headphone cue'ing but it does not always seem to be the case.

So unless you don't want to play with the beta, use v1.12 with the matching mapping files found in this thread or here:
https://github.com/jardiacaj/mixxx
https://raw.githubusercontent.com/mixxx ... scripts.js
https://raw.githubusercontent.com/mixxx ... B.midi.xml
https://raw.githubusercontent.com/mixxx ... scripts.js

If you need to stick to v1.11 for some reason (you have older hardware or an older OS) use the files found here:
https://github.com/wingcom/Mixxx-Pioneer-DDJ-SB
https://raw.githubusercontent.com/wingc ... scripts.js
https://raw.githubusercontent.com/wingc ... B.midi.xml

If you try one version, then another or when you are replacing files from another version, be sure to replace them in the the system directory as well as the home directory (more info in this thread) and reload the mapping. If things still don't work, reboot Mixxx or eventually reboot your computer. I don't know why but people have reported this to be an issue sometimes (people on Windows)

The documentation of the mapping can be found on those pages and in this thread (http://mixxx.org/forums/viewtopic.php?p=25304#p25304)

If you have any questions/problems or comments, feel free to ask...

Cheers,

wingcom
Attachments
Pioneer-DDJ-SB.midi.xml
DDJ-SB mapping for Mixxx v1.12
(66.26 KiB) Downloaded 758 times
common-controller-scripts.js
DDJ-SB mapping for Mixxx v1.12
(14.83 KiB) Downloaded 570 times
Pioneer-DDJ-SB-scripts.js
DDJ-SB mapping for Mixxx v1.12
(34.28 KiB) Downloaded 570 times
Last edited by wingcom on Sun Sep 13, 2015 4:42 pm, edited 4 times in total.
wingcom
 
Posts: 23
Joined: Sun Jan 18, 2015 2:40 pm

Re: MIDI Mapping for Pioneer DDJ-SB

Postby hrudham » Tue Feb 03, 2015 7:36 am

Very cool man! I'm very glad to see someone is making good use of some the code I've written, and I can see you've put in a fair huge effort here :-D I know it's no joke reading someone else's code, so well done!

By the way, I believe filters are coming in Mixxx v1.12.0. I guess we'll both have to go and have a look at how they work when that's released. You can get hold of the alpha builds here: http://downloads.mixxx.org/builds/master. I'm not sure how much of my original mapping works with it though (I believe the scratching ended up being way too sensitive last time I tried it, but that would have been a while back and things could have changed).

I really need to get back an update the mapping on the DDJ-SR side soon; life's been getting in the way of my mini-hobby projects like this I'm afraid. All the best of luck with this!
User avatar
hrudham
 
Posts: 11
Joined: Thu Oct 02, 2014 3:09 pm

Re: MIDI Mapping for Pioneer DDJ-SB

Postby [email protected] » Tue Feb 03, 2015 10:18 pm

I am running Mixxx on Linux Mint and I am trying to use a Pioneer DDJ-SB but have not had any success getting it to work. I have downloaded the files and saved them to /usr/share/mixxx/midi because there were some other mapping files there and I did not see a controller folder. I am not having any luck connecting to the controller. Can any help?

Thanks.
[email protected]
 
Posts: 1
Joined: Tue Feb 03, 2015 9:54 pm

Re: MIDI Mapping for Pioneer DDJ-SB

Postby wingcom » Wed Feb 04, 2015 7:00 am

Are you running Mixxx v1.11?

My Ubuntu had the v1.10 version in the standard repository. The fact that you have a midi folder instead of a controller folder also points to you running a v1.10 version. The script is using stuff that is v1.11 only... check that first. I'll help you out further if that is not the case.

PS: You will probably also run into this: if you find your volume controls are not working -> you need to change the settings so the soundcard is set to your ddj-sb instead of your internal (pc) soundcard. Would have saved me alot of time figuring out wtf was wrong with the volume ;)

@hrudham: your code has been a real help m8, thank you for that... it gave me a very good starting point!

I've cleaned up your xml file (very necessary in your version because it has ALOT of double/triple/quadrupple entries in it's current form and that's very annoying) and i've also fixed these bugs:

- The performance pad leds: you were working with an enum that was bigger then the number of buttons you have (6 in your case). The led feedback is a "1 to 1 mapping". If you have only 6 buttons and you save the state in an enum of 8, your system will have trouble knowing which is which unless you read the xml and query which ones you've mapped. I've not found a consistent generic way that's correct in ALL cases but changing mappings will require some work, always

- The jogwheel sensitity problem: i don't know if it's just a typo or if this stuff works on your machine but not on mine but i've found that, in the script that is offered on github, the enums are referred incorrectly... You are retrieving indexes instead of the values that are found at these indexes. Since there are number behind the indexes as well, it looks like it works but it gets completely different values... hence the sensitivity problem. I think. I found this really weird because it looks like something you would have noticed yourself... but still, i had good results when I changed the way i referenced the enum.

The thing I skipped was your timer function... but i think i get it now why it was there :) Just haven't needed it yet.

That said: i will release an updated version within a few weeks and I might take a look at the alpha build then too. I've run into a few things I would like to see like other beatloop intervals, deleting loops completely and maybe make a pregain function out of the filtering "wheelbuttons"... unless of course we can assign real filtering to them. I'll decide that later ;)

But it's usable now and I'm enjoying mixxxing with it a bit first :D
wingcom
 
Posts: 23
Joined: Sun Jan 18, 2015 2:40 pm

Re: MIDI Mapping for Pioneer DDJ-SB

Postby Be. » Thu Jul 16, 2015 2:55 pm

How well does this work for 1.12 beta? It would be great to have a DDJ-SB mapping included in 1.12.
I heard FLAC and I haven't gone back.
Protect your hearing with earplugs!

Hear my mixes
User avatar
Be.
Mixxx Developer
 
Posts: 2506
Joined: Tue Jan 06, 2015 1:00 am
Location: Chicago, USA

Re: MIDI Mapping for Pioneer DDJ-SB

Postby wingcom » Tue Jul 21, 2015 7:38 am

Uhmmm, I only figured out now, that even though I created this post, I still need to subscribe to it to get notifications :/

I'll try to look into v1.12 next week... got a few days of then. Been too busy using the existing one ;)

**EDIT: No sorry, can't do. I'm on 12.04 and appearently only 14.04 and up is supported. I've heard reports from people that have no sound on the ddj-sb in 14.04 and moreover the machine this is running on, is too critical to upgrade right now. Don't feel like upgrading and spending days while everything still does what I want it to do.

That said, I've changed a thing or two to the mapping.
Some initialization stuff and I've mapped the filter knobs to be used as pregain... can come in handy.

Next thing I want to look into is the jogwheel sensitivity. It's not really bad but still I find that in Serato I can "grab" a beat more precisely. I want that.
Other stuff will only be added as I start needing it...

Or you can always ask to implement something (i probably don't know the use for it yet)

Cheers
Attachments
Pioneer-DDJ-SB-scripts.js
Some initialization stuff fixed (don't remember what exactly. Fixed some months ago)
(10.24 KiB) Downloaded 329 times
Pioneer-DDJ-SB.midi.xml
Added Filter-to-Pregain mapping
(16.49 KiB) Downloaded 398 times
wingcom
 
Posts: 23
Joined: Sun Jan 18, 2015 2:40 pm

Re: MIDI Mapping for Pioneer DDJ-SB

Postby jardiacaj » Tue Jul 28, 2015 12:33 am

Hello,

thanks for your work, wingcom, I was very glad to find a working mapping for the DDJ-SB.

I started making small improvements on your mapping and ended up with a mapping that implements all features of the controller and some more :) It definitely works better than in Serato DJ Intro (I didn't try the full version as I don't have it).

I tried the current version only with the git master of Mixxx, I still have to test version 1.12 but I'm confident it will work well there, too. I guess most features will work with 1.11, but I have not tested it.

What is done:
- All basic controls, including library browsing, the features not available in Serato DJ Intro, filtering, slipping, etc. Some features that are not labeled on the controller, like pregain control and kill switches, are implemented too.
- Effects.
- Jog wheels, including touch sensitive scratching in vinyl mode.
- 4 decks (switch decks with the tempo range buttons).
- Makes use of 14 bit resolution where available (actually the controller has a lower resolution, somewhere between 8 and 9 bit).

You can download the two files under these URL:
https://raw.githubusercontent.com/jardi ... scripts.js
https://raw.githubusercontent.com/jardi ... B.midi.xml

Or see the whole repository at https://github.com/jardiacaj/mixxx

I intend to test the mapping a bit more the next days, maybe make the code a bit nicer too (it has become looong) and write some documentation for it.

Feedback would be very appreciated, it would be great if other DDJ-SB users can test it!

Cheers!
jardiacaj
 
Posts: 20
Joined: Mon Jul 27, 2015 11:54 pm

Re: MIDI Mapping for Pioneer DDJ-SB

Postby wingcom » Tue Jul 28, 2015 4:49 am

wow VERY cool jardiacaj!

I really felt like I needed to work on this some more but I was happy just dj'ing instead of coding :p
Coding is work, dj'ing is relaxation ;)

And now someone magically did all the work for me.
The community works :) Super!
You even have Filtering and Effects implemented. Very nice!

I'm gonna install your mapping tonight and will start using it from then on.
I will report back with feedback as soon as I've tested the basics and will report issues on the github issues-system

Thank you very much for your work m8
wingcom
 
Posts: 23
Joined: Sun Jan 18, 2015 2:40 pm

Re: MIDI Mapping for Pioneer DDJ-SB

Postby Be. » Tue Jul 28, 2015 5:26 pm

I had a chance to play with a DDJ-SB last night and tested the mapping. I noticed two issues that should be easy to fix. The sync button uses the old beatsync control. Change it to use the new sync_enabled to take advantage of master sync. Also, shift+hotcue activated hotcues 11-15 rather than 5-8 (on the left deck; I didn't test that on the right deck).

The filter crossfade is interesting. I'm going to map my Electrix Tweaker to do that and play around with it.
I heard FLAC and I haven't gone back.
Protect your hearing with earplugs!

Hear my mixes
User avatar
Be.
Mixxx Developer
 
Posts: 2506
Joined: Tue Jan 06, 2015 1:00 am
Location: Chicago, USA

Re: MIDI Mapping for Pioneer DDJ-SB

Postby wingcom » Tue Jul 28, 2015 5:40 pm

Is the sync_enabled a v1.12 thing?
I didn't know it was there... searched for it before though, weird.

This will make my life easier and my experience with Mixxx even better ;)
wingcom
 
Posts: 23
Joined: Sun Jan 18, 2015 2:40 pm

Next

Return to Controller presets/mappings

Who is online

Users browsing this forum: No registered users and 2 guests