MidiDjConsole.ProfileLedBlink method |
|
Remarks
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.
Syntax
[Visual Basic] MidiDevices.MidiDjConsole.ProfileLedBlink ( strItemName as String, bSimulated as Boolean, nBlinkDelay as Int32 ) as enumDjcErrorCodes |
[C#] public enumDjcErrorCodes MidiDjConsole.ProfileLedBlink ( string strItemName, bool bSimulated, Int32 nBlinkDelay ); |
[C++] public: enumDjcErrorCodes MidiDjConsole.ProfileLedBlink ( string strItemName, bool bSimulated, Int32 nBlinkDelay ); |
Parameter |
Description |
|||||||||
|
|
|||||||||
strItemName |
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. |
|||||||||
bSimulated |
Boolean value specifying if the blinking is simulated or native. Supported values are the following:
|
|||||||||
nBlinkDelay |
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
Value |
Meaning |
|
|
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. |