Copyright © 2013-2014 MultiMedia Soft

MidiDjConsole.ProfileLedBlink method

Previous pageReturn to chapter overviewNext page



Starts blinking the physical led associated to the given led item.


For DJ Consoles not supporting native blinking there is the possibility to simulate blinking programmatically by specifying a certain delay: in case of simulation the component will send to the console the MIDI command for switching the led on and off set through a previous call to the MidiDjConsole.ProfileLedMidiCommandSet method or loaded through an eventual call to the MidiDjConsole.ProfileLoad method.


Blinking can be stopped at any time by switching the same led on or off through the MidiDjConsole.ProfileLedSwitch method.


Certain models of console come with a specific MIDI command for blinking a led natively but usually don't allow specifying at which rate this should occur: through simulation, the usage of this specific method gives more freedom about the blinking rate also for console supporting native blinking at a fixed rate.


For further details about interfacing with MIDI DJ Consoles see the MidiDjConsole object section and the How to manage MIDI DJ consoles tutorial.





[Visual Basic]

MidiDevices.MidiDjConsole.ProfileLedBlink (

strItemName as String,

bSimulated as Boolean,

nBlinkDelay as Int32

) as enumDjcErrorCodes



public enumDjcErrorCodes MidiDjConsole.ProfileLedBlink (

string strItemName,

bool bSimulated,

Int32 nBlinkDelay




public: enumDjcErrorCodes MidiDjConsole.ProfileLedBlink (

string strItemName,

bool bSimulated,

Int32 nBlinkDelay







String containing the name of the led item.

If no led item with this specific name should be available inside the profile, the method would fail and would return an error code.


Boolean value specifying if the blinking is simulated or native.

Supported values are the following:

Mnemonic constant





Led blinking occurs natively by sending to the console the appropriate MIDI command.

When this option is selected the nBlinkDelay parameter below is ignored.



Led blinking is simulated by the control which automatically sends to the console the sequence of on/off MIDI commands.

The blink rate is determined through the nBlinkDelay parameter below.


Number representing the applied blinking rate expressed in milliseconds.  The minimal accepted value is 50 milliseconds; values under this limit will be automatically capped to 50.

If for example this parameter should be set to 1000, the led would start blinking by staying on for 1 seconds, then off for 1 seconds and so on.



Return value






Negative value

An error occurred. Check the LastError property value in order to see the last error.

enumDjcErrorCodes.ERR_DJC_NOERROR (0)

The method call was successful.