Edited arduino and xml files so new buttons send MIDI messages and mapped tto Mixxx functions

This commit is contained in:
Marc Monka
2026-03-17 18:02:03 +01:00
parent 2118dc8852
commit 61c87361bd
3 changed files with 149 additions and 13 deletions
Vendored
BIN
View File
Binary file not shown.
+72 -9
View File
@@ -114,7 +114,6 @@ Bounce loopin_boto = Bounce (loopin_pin, 50);
Bounce loopout_boto = Bounce (loopout_pin, 50);
Bounce reloop_boto = Bounce (reloop_pin, 50);
//Bounce time_boto = Bounce (time_pin, 50);
// --- Execute Function if receiving a MIDI Message ---
@@ -277,10 +276,20 @@ jet_boto.update();
zip_boto.update();
wah_boto.update();
hold_boto.update();
//time_boto.update();
mastertempo_boto.update();
load_boto.update();
// --- update new buttons for the xdj200sx ---
foldersearch_back_boto.update();
foldersearch_forward_boto.update();
loopin_boto.update();
loopout_boto.update();
reloop_boto.update();
beatloop_boto.update();
autocue_boto.update();
//Play
if(play_boto.fallingEdge()){
@@ -369,13 +378,13 @@ if(hold_boto.fallingEdge()){
if(hold_boto.risingEdge()){
usbMIDI.sendNoteOff(71, 0, channel);
}
//time
//if(time_boto.fallingEdge()){
// usbMIDI.sendNoteOn(72, 127, channel);
// }
// if(time_boto.risingEdge()){
// usbMIDI.sendNoteOff(72, 0, channel);
// }
//autocue
if(autocue_boto.fallingEdge()){
usbMIDI.sendNoteOn(72, 127, channel);
}
if(autocue_boto.risingEdge()){
usbMIDI.sendNoteOff(72, 0, channel);
}
//load
if(load_boto.fallingEdge()){
usbMIDI.sendNoteOn(73, 127, channel);
@@ -385,6 +394,60 @@ if(load_boto.fallingEdge()){
}
// ---- addiitonal buttons for the xdj200sx -----
// Folder Search left
if(foldersearch_back_boto.fallingEdge()){
usbMIDI.sendNoteOn(74, 127, channel); //0x4A
}
if(foldersearch_back_boto.risingEdge()){
usbMIDI.sendNoteOff(74, 0, channel); //0x4A
}
}
// Folder Search right
if(foldersearch_forward_boto.fallingEdge()){
usbMIDI.sendNoteOn(75, 127, channel); //0x4B
}
if(foldersearch_forward_boto.risingEdge()){
usbMIDI.sendNoteOff(75, 0, channel); //0x4B
}
// Loop IN
if(loopin_boto.fallingEdge()){
usbMIDI.sendNoteOn(76, 127, channel); //0x4C
}
if(loopin_boto.risingEdge()){
usbMIDI.sendNoteOff(76, 0, channel); //0x4C
}
// Loop OUT
if(loopout_boto.fallingEdge()){
usbMIDI.sendNoteOn(77, 127, channel); //0x4D
}
if(loopout_boto.risingEdge()){
usbMIDI.sendNoteOff(77, 0, channel); //0x4D
}
// Reloop
if(reloop_boto.fallingEdge()){
usbMIDI.sendNoteOn(78, 127, channel); //0x4E
}
if(reloop_boto.risingEdge()){
usbMIDI.sendNoteOff(78, 0, channel); //0x4E
}
// Beatloop
if(beatloop_boto.fallingEdge()){
usbMIDI.sendNoteOn(79, 127, channel); //0x4F
}
if(beatloop_boto.risingEdge()){
usbMIDI.sendNoteOff(79, 0, channel); //0x4F
}
// ---- end of new additions to xdj200sx -----
//Jog: cridem la funció JogNudge
JogNudge();
+77 -4
View File
@@ -74,8 +74,8 @@
</control>
<control>
<group>[Channel1]</group>
<key>loop_halve</key>
<description>LOOP HALF</description>
<key>beatjump_X_forward</key>
<description>BEAT JUMP BCK 16 BEATS</description>
<status>0x90</status>
<midino>0x40</midino>
<options>
@@ -84,8 +84,8 @@
</control>
<control>
<group>[Channel1]</group>
<key>loop_double</key>
<description>LOOP DOUBLE</description>
<key>beatjump_16_forward</key>
<description>BEAT JUMP FWD 16 BEATS</description>
<status>0x90</status>
<midino>0x41</midino>
<options>
@@ -243,6 +243,79 @@
<script-binding/>
</options>
</control>
<!-- NEW BUTTONS FOR THE XDJ200SX-->
<!--Folder search left: LOOP HALF-->
<control>
<group>[Channel1]</group>
<key>loop_halve</key>
<description>LOOP HALF</description>
<status>0x90</status>
<midino>0x4A</midino>
<options>
<normal/>
</options>
</control>
<!--Folder search right: LOOP DOUBLE-->
<control>
<group>[Channel1]</group>
<key>loop_double</key>
<description>LOOP DOUBLE</description>
<status>0x90</status>
<midino>0x4B</midino>
<options>
<normal/>
</options>
</control>
<!--LOOP IN-->
<control>
<group>[Channel1]</group>
<key>loop_in</key>
<description>LOOP IN</description>
<status>0x90</status>
<midino>0x4C</midino>
<options>
<normal/>
</options>
</control>
<!--LOOP OUT-->
<control>
<group>[Channel1]</group>
<key>loop_out</key>
<description>LOOP OUT</description>
<status>0x90</status>
<midino>0x4D</midino>
<options>
<normal/>
</options>
</control>
<!--RELOOP-->
<control>
<group>[Channel1]</group>
<key>reloop_exit</key>
<description>RELOOP</description>
<status>0x90</status>
<midino>0x4E</midino>
<options>
<normal/>
</options>
</control>
<!--BEATLOOP: MAKE A 4 BEAT LOOP AUTOMATICALLY-->
<control>
<group>[Channel1]</group>
<key>beatloop_4_toggle</key>
<description>4 BEAT LOOP</description>
<status>0x90</status>
<midino>0x4F</midino>
<options>
<normal/>
</options>
</control>
<!-- END OF NEW BUTTONS XDJ200SX-->
</controls>