Copyright © 2013-2014 MultiMedia Soft

MidiDjConsole.ProfileLedSwitch method

Previous pageReturn to chapter overviewNext page

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]

control.MidiDjConsole.ProfileLedSwitch (

strItemName as String,

bSwitchOn as enumBoolean

) as enumDjcErrorCodes


 

[C++]

short control.MidiDjConsole.ProfileLedSwitch (

BSTR strItemName,

short 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:

Mnemonic constant

Value

Meaning

BOOL_FALSE

0

Switch the led off

BOOL_TRUE

1

Switch the led on

 

 

Return value

 

Value

Meaning

 

 

Negative value

An error occurred, check the LastError property value in order to get the error code

enumErrorCodes.ERR_NOERROR (0)

The method call was successful