I am not clear what the optimized LED-Pattern Transfair is, the Readme says:
host updates all LEDs by sending CC events (Bn ..)
CC messages? can you give me a example? Do i need sysex handshakes 4 that, or can i simple send a CC,
i have a Array of Variables, call it Matrix{16[[16], ok now i want to transfair the whole data from one Core32 to the BLM Core32 (via Midi.)
-ok, up to now I send single Note Events for every cell, like this:
u8 CCoutPort = 32;
u8 counter = 0;
u8 Matrix[16][16] = {{}}
for(Counter=0; Counter<16; Counter ) {
MIOS32_MIDI_SendNoteOn(CCoutPort,0, Counter, Matrix[0][Counter]);
MIOS32_MIDI_SendNoteOn(CCoutPort,1, Counter, Matrix[1][Counter]);
MIOS32_MIDI_SendNoteOn(CCoutPort,2, Counter, Matrix[2][Counter]);
MIOS32_MIDI_SendNoteOn(CCoutPort,3, Counter, Matrix[3][Counter]);
MIOS32_MIDI_SendNoteOn(CCoutPort,4, Counter, Matrix[4][Counter]);
MIOS32_MIDI_SendNoteOn(CCoutPort,5, Counter, Matrix[5][Counter]);
MIOS32_MIDI_SendNoteOn(CCoutPort,6, Counter, Matrix[6][Counter]);
MIOS32_MIDI_SendNoteOn(CCoutPort,7, Counter, Matrix[7][Counter]);
MIOS32_MIDI_SendNoteOn(CCoutPort,8, Counter, Matrix[8][Counter]);
MIOS32_MIDI_SendNoteOn(CCoutPort,9, Counter, Matrix[9][Counter]);
MIOS32_MIDI_SendNoteOn(CCoutPort,10, Counter, Matrix[10][Counter]);
MIOS32_MIDI_SendNoteOn(CCoutPort,11, Counter, Matrix[11][Counter]);
MIOS32_MIDI_SendNoteOn(CCoutPort,12, Counter, Matrix[12][Counter]);
MIOS32_MIDI_SendNoteOn(CCoutPort,13, Counter, Matrix[13][Counter]);
MIOS32_MIDI_SendNoteOn(CCoutPort,14, Counter, Matrix[14][Counter]);
MIOS32_MIDI_SendNoteOn(CCoutPort,15, Counter, Matrix[15][Counter]); }
and with this i can see coming the LEDs from Left to right…
The Stripped Down Readme:
Quote
MIDI Protocol
All numbers in hexadecimal format! \<row\>: 0..F (coded into MIDI channel) \<column\>: 00..0F (Note Number) \<button-state\>: 00: depressed, 7F: pressed \<colour\>: 00: off, 20: green colour only, 40: red colour only, 7F: all colours (Decimal 32, 64,127) \<fader\>: 00..0F (coded into MIDI channel) Received LED events (single access): +---------------------------------------+-----------------------------+ | BLM16x16 LEDs | 9\<row\> \<column\> \<colour\> | | Extra column LEDs | 9\<row\> \<40+column\> \<colour\> | | Extra row LEDs | 90 \<60+column\> \<colour\> | | Additional extra LEDs (e.g. Shift) | 9F \<60+function\> \<colour\> | +---------------------------------------+-----------------------------+ BLM16x16 optimized LED pattern transfer (prefered usage): +-----------------------------------------------+---------------------+ | column LEDs 0..6, green colour, 8th LED off | B\<row\> 10 \<pattern\> | | column LEDs 0..6, green colour, 8th LED on | B\<row\> 11 \<pattern\> | | column LEDs 8..14, green colour, 16th LED off | B\<row\> 12 \<pattern\> | | column LEDs 8..14, green colour, 16th LED on | B\<row\> 13 \<pattern\> | +-----------------------------------------------+---------------------+ | column LEDs 0..6, red colour, 8th LED off | B\<row\> 20 \<pattern\> | | column LEDs 0..6, red colour, 8th LED on | B\<row\> 21 \<pattern\> | | column LEDs 8..14, red colour, 16th LED off | B\<row\> 22 \<pattern\> | | column LEDs 8..14, red colour, 16th LED on | B\<row\> 23 \<pattern\> | +-----------------------------------------------+---------------------+ Communication- host requests layout informations with F0 00 00 7E 4E 00 00 F7
- this application replies with F0 00 00 7E 4E 00 01 … F7 to send back the
available number of buttons and LEDs
- host updates all LEDs by sending CC events (Bn ..)As long as no MIDI data has been received after startup, the BLM is in test mode.
The buttons cycle the colour of the corresponding LED:
- first button press: green colour
- second button press: red colour
- third button press: both colours
- fourth button press: all LEDs off
- period===============================================================================
From [16][16] Array to CC - whats the way?
thnx for tips, and explaination - phat.