MidiDjConsole.ProfileLedSwitch method |
|
Remarks
Switches on or off the physical led associated to a led item, stored inside the profile, by sending to the DJ Console the related MIDI command set through a previous call to the MidiDjConsole.ProfileLedMidiCommandSet method or loaded through an eventual call to the MidiDjConsole.ProfileLoad method.
A led can also work in blink mode through the MidiDjConsole.ProfileLedBlink method.
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.ProfileLedSwitch ( strItemName as String, bSwitchOn as Boolean ) as enumDjcErrorCodes |
[C#] public enumDjcErrorCodes MidiDjConsole.ProfileLedSwitch ( string strItemName, bool bSwitchOn ); |
[C++] public: enumDjcErrorCodes MidiDjConsole.ProfileLedSwitch ( string strItemName, bool bSwitchOn ); |
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. |
|||||||||
bSwitchOn |
Boolean value that specifies if the led must be switched on or off. Supported values are the following:
|
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. |