HI
i wold like to test a “case” by lighting up a LED when it reaches that line.
I’m running a MMv2 App where the LED are lit by received messages from the program.
what i need is the value to light up LED 1 on DOUT SR1. But i can’t find out how this piece of code works! I’m looking at it since hours!
/////////////////////////////////////////////////////////////////////////////
// This function is called from MM_MIDI_Received in mm_midi.c when
// a LED status message has been received
/////////////////////////////////////////////////////////////////////////////
const char mm_id_map_0a[8] = { ID_BANK, ID_GROUP, ID_RECRDY_x_FUNCTA, ID_FUNCTA_LED, ID_WRITE_x_FUNCTB, ID_FUNCTB_LED, ID_OTHER_x_FUNCTC, ID_FUNCTC_LED };
const char mm_id_map_0b[8] = { ID_FX_BYPASS_x_EFFECT1, ID_EFFECT1_LED, ID_SEND_MUTE_x_EFFECT2, ID_EFFECT2_LED, ID_PRE_POST_x_EFFECT3, ID_EFFECT3_LED, ID_SELECT_x_EFFECT4, ID_EFFECT4_LED };
void MM_DIO_LEDHandler(unsigned char led_id_l, unsigned char led_id_h)
{
unsigned char mm_id;
unsigned char ix = led_id_l & 0x07;
// map LSB/MSB to MIDIbox MM ID
if( led_id_h <= 0x07 ) {
mm_id = ((led_id_l << 3) & 0x38) | led_id_h;
} else if( led_id_h == 0x08 ) {
mm_id = ix | 0x30;
} else if( led_id_h == 0x09 ) {
mm_id = ix | 0x38;
} else if( led_id_h == 0x0a ) {
mm_id = mm_id_map_0a[ix];
} else if( led_id_h == 0x0b ) {
mm_id = mm_id_map_0b[ix];
}
// set LED status (bit #6 set: LED on)
MM_DIO_LEDSet(mm_id, led_id_l & (1 << 6 ));
Please please help!
thanks!



