Posted: Tue Nov 27, 2007 5:16 pm
by padnum
I struggled in C++ to get Native Mode working.
Mostly user error, however I was unable to get the pads to respond to LED (my first task) until I sent all four sysex messages for native mode.
While frustrated yesterday I searched here to see if anyone posted the correct sysex to get the MicroKontrol to enter native mode, and I didn't find it. So, here is is, for the next person who was in my position (this darn thing just won't enter native mode!)
this may not be 100% correct (for instance I'm sending 0x00 for the LCD chars, when it should be in the ascii range) but it does enter native mode.
0xf0, 0x42, 0x40, 0x6E, 0x00, 0x00, 0x00, 0x01, 0xF7
(native mode ON request)
_________________________________________________
0xf0, 0x42, 0x40, 0x6E, 0x00, 0x3f, 0x27, 0x00,
0x00, //transpose
0x00, //global ch
0x00, //pitchbend ch
0x00, //pads 0-6 transmit note
0x00, //pads 7-C transmit note
0x00, //last 2 pads, transmit note
0x00, //pad1 MIDI ch
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, //pad1 note#
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xF7
_________________________________________________
3rd packet (second 'native mode' packet):
0xf0, 0x42, 0x40, 0x6E, 0x00,
0x3F, //Packet communication command
0x12, //message for "Packet Com 2" (says data 1+17 bytes)
0x01, //tells MicroKontrol this is the second packet
0x00, //Pad LED 1-7
0x00, //Pad LED 8-14
0x00, //more LEDs main buttons
0x00, //more led's, tempo arrows etc
0x00, //lcd color 1-2
0x00, // lcd color 3-4
0x00, //lcd color 5-6
0x00, //lcd color 7-8
0x00, // main backlight color
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, //main LCD ASCII
0xF7
__________________________________
3rd Native Message (4th total)
0xf0, 0x42, 0x40, 0x6E, 0x00, 0x3f, 0x21, 0x02,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, //DispSubLCD1
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, //sublcd4
0xF7
__________________________________
4th Native packet (5th total)
0xf0, 0x42, 0x40, 0x6E, 0x00, 0x3f, 0x21, 0x03,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, //Disp. Sub LCD 5
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, //Disp. Sub LCD 8
0xF7
__________________________________
finally my test packet:
0xf0, 0x42, 0x40, 0x6E, 0x00,
0x01, //PAD LED message
0x00, //which pad (PAD #0)
0x01, //state (light it up!)
0xF7
__________________________________
hope this helps someone!