Hercules RMX and Steel pitch control not centered at 0 mark
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mixxx |
Fix Released
|
Low
|
Jens Nachtigall | ||
1.10 |
Fix Released
|
Low
|
Jens Nachtigall | ||
1.9 |
Fix Released
|
Low
|
Jens Nachtigall |
Bug Description
I have a Hercules RMX. When the pitch is set to the middle position, the device correctly sends a "3F", but mixxx still does not go to 0 position but takes the pitch to -0.16
output from (which looks correctly to me):
$ mixxx --midiDebug
....
Debug: [PM 3. Hercules DJ Console RMX MIDI 1]: "MIDI ch 1: opcode: B0, ctrl: 3B, val: 3F"
Debug: [MidiScriptEngine 2]: Starting one-shot timer: 872415239
Debug: [MidiScriptEngine 2]: Starting one-shot timer: 889192484
Debug: [MidiScriptEngine 2]: Starting one-shot timer: 905969695
Debug: [MidiScriptEngine 2]: Killing timer: 872415239
Debug: [MidiScriptEngine 2]: Killing timer: 889192484
Debug: [MidiScriptEngine 2]: Starting one-shot timer: 989855780
Debug: [MidiScriptEngine 2]: Killing timer: 905969695
Debug: [MidiScriptEngine 2]: Starting one-shot timer: 1023410207
Debug: [MidiScriptEngine 2]: Killing timer: 989855780
Debug: [MidiScriptEngine 2]: Killing timer: 1023410207
Happens with mixxx1.10 and 1.9. I can try to debug it, but I do not know at which src to start looking (e.g. using gdb). Maybe you can give me a pointer.
The problem is first described here: http://
Related branches
tags: | added: midi needs-triage |
Changed in mixxx: | |
importance: | Undecided → Low |
summary: |
- Hercules RMX pitch control not centered at 0 mark + Hercules RMX and Steel pitch control not centered at 0 mark |
tags: | added: hercules-dj-control-steel |
Changed in mixxx: | |
status: | Fix Committed → Fix Released |
okay, after some debugging, I found the problem: The expected midInput was set to 0x40 instead of 0x3F. The attached patch fixes this. I tested it and it works now.
=== modified file 'mixxx/ res/midi/ Hercules- DJ-Console- RMX-scripts. js' midi/Hercules- DJ-Console- RMX-scripts. js 2010-12-20 00:15:26 +0000 midi/Hercules- DJ-Console- RMX-scripts. js 2011-10-06 14:41:30 +0000 Decks.Left. Controls. Vol.minOutput = 0.0; Decks.Left. Controls. Vol.midOutput = 0.4; Decks.Left. Controls. Vol.maxOutput = 1.0; Decks.Left. Controls. Pitch.midInput = 0x40; Decks.Left. Controls. Pitch.midInput = 0x3F;
--- mixxx/res/
+++ mixxx/res/
@@ -537,7 +544,7 @@
HerculesRMX.
HerculesRMX.
HerculesRMX.
-HerculesRMX.
+HerculesRMX.
HerculesRMX. Decks.Right. addButton( "Keypad1" , new HerculesRMX. Button( 0x19), "keypad1Handler"); Decks.Right. addButton( "Keypad2" , new HerculesRMX. Button( 0x1A), "keypad2Handler"); Decks.Right. Controls. Vol.minOutput = 0.0; Decks.Right. Controls. Vol.midOutput = 0.4; Decks.Right. Controls. Vol.maxOutput = 1.0; Decks.Right. Controls. Pitch.midInput = 0x40; Decks.Right. Controls. Pitch.midInput = 0x3F;
HerculesRMX.
@@ -584,7 +591,7 @@
HerculesRMX.
HerculesRMX.
HerculesRMX.
-HerculesRMX.
+HerculesRMX.
//Mapping functions