I like this controller (already working with it for quite a long time using a customized mapping) and I would like to do an official much more feature-contained and Mixxx 2.1 support mapping for it.
But I’m stuck in the very beginning of this process as soon as I try to use the following lines in the xml-file:
<scriptfiles> <file filename="lodash.mixxx.js"/> <file filename="midi-components-0.0.js"/> <file functionprefix="DJCRMX2" filename="Hercules-DJ-Console-RMX-2-scripts.js"/> </scriptfiles>
If I start Mixxx by the terminal using
I get the following error message (occurs even before using the new Deck() function in the script file):
"ERROR! new Deck() called without specifying any deck numbers"
My init part of the script code looks exactly like described here: https://www.mixxx.org/wiki/doku.php/components_js.
Now when I try to use the play button, for example, I get the following error message:
ControllerEngine: "Nicht abgefangene Ausnahme bei Zeile 1 in übergebenem Code: TypeError: Result of expression 'DJCRMX2.leftDeck' [undefined] is not an object.
I think these two errors cohere with each other?! What’s the problem here?
I’m using a MacBook Air with MacOS 10.13.4 and the latest Mixxx 2.1 release from here: http://downloads.mixxx.org/builds/2.1/release/
The strange thing is that I get the error messages using @Be.'s Hercules P32 mapping, too (without physically owning this controller).