Jump to content

Recommended Posts

Posted (edited)

Hi all,

 

I'm trying to configure my MIDIbox to work with FL Studio, and so far I've successfully mapped outputs from the box to control knobs and switches in FL. However, I haven't had any luck in sending feedback to the box to trigger LEDs to light up.

 

FL has a plugin called 'MIDI out' which allows you to send CC, RPN or NRPN bytes to an external MIDI device. My firmware has only been configured to switch LEDs in response to note events. Does anyone have any suggestions how I can take CC, RPN or NRPN bytes being sent from FL and translate them into note events so the LEDs light up on my MIDIbox?

 

Ideally, I'd like to configure FL so it sends out a separate CC for each LED (on channel 2, as 1 is used for my pots and encoders). A CC value of 0 would turn off the LED, while 127 would turn it on.

 

Thanks

Edited by Triffki
  • 2 weeks later...
Posted

Of course, e.g.:

 

    if( evnt0 == 0xb0 ) { // listen to CC Channel 1
        // the CC number selects the pin:
        unsigned char pin = evnt1;
        // and the CC value turns the LED on or off
        unsigned char value = (evnt2 >= 64) ? 1 : 0;
        // finally set the LED:
        MIOS_DOUT_PinSet(pin, value);
    }

 

 

Best Regards, Thorsten.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...