I am trying to read a Hercules DJControl Inpulse 200 Mk2 MIDI input codes from terminal.
This is what I get when I use aseqdump:
geppettvs@AORUS:~/ins/usolo$ aseqdump -l
Port Client name Port name
0:0 System Timer
0:1 System Announce
14:0 Midi Through Midi Through Port-0
24:0 DJControl Inpulse 200 Mk2 DJControl Inpulse 200 Mk2 MIDI
geppettvs@AORUS:~/ins/usolo$ aseqdump -p 24:0
Waiting for data. Press Ctrl+C to end.
Source Event Ch Data
24:0 Control change 1, controller 9, value 1
24:0 Control change 1, controller 9, value 1
24:0 Control change 1, controller 9, value 1
24:0 Control change 1, controller 9, value 1
24:0 Control change 1, controller 9, value 1
24:0 Control change 1, controller 9, value 127
24:0 Control change 1, controller 9, value 127
24:0 Control change 1, controller 9, value 127
24:0 Control change 1, controller 9, value 127
24:0 Control change 1, controller 9, value 127
What I want is to get the midi codes (I don't know how it is called) in format "0x00" to implement the corresponding Javascript for the jogwheels, as per in this Mixxx controller setup:
// track playing: top of jog scratches
// track not playing: seek thru track (using same scratch ticks and gives more positive response) or seek faster through track when push button held down
//
DJTechCDJ101.jogtop = function(channel, control, value, status, group)
{
value -= 0x40;
if (!engine.getValue(group, "play") && DJTechCDJ101.pushed) {
DJTechCDJ101.beatjump(group, value);
}
else {
engine.scratchTick(parseInt(group.substring(8,9)), value);
}
}
What's the best tool to get this in a xev style? In which xev shows the keystroke codes as here:
KeyPress event, serial 34, synthetic NO, window 0x3400001,
root 0x282, subw 0x0, time 2977574, (774,1033), root:(1856,1063),
state 0x40, keycode 50 (keysym 0xffe1, Shift_L), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False