It’s me again.
I use a novation launchpad and use some functions in a script.
I use the function “procedure OnEncoderInputToogle”. But counter to other functions, there is no way to have a function when encoder is on and another when encoder is off.
It should allow me to change the LED status of my launchpad.
procedure OnEncoderInputToggle(Input: TEncoderInput; NewState: boolean);
begin
if Encoder.GetConnections.GetItem(0).GetState = ecsConnected then
MidiOut (Launchpad_Device,176, SessionButtons[5],cBlinkRed) ;
if Encoder.GetConnections.GetItem(0).GetState = ecsDisconnected then
MidiOut (Launchpad_Device,176, SessionButtons[5],cHighGreen) ;
end;
but it doesn’t work
I’ve tried :
procedure OnEncoderInputToggle(Input: TEncoderInput; NewState: boolean);
begin
if Encoder.GetConnections.GetItem(0).GetState = ecsConnected then
begin
MidiOut (Launchpad_Device,176, SessionButtons[5],cBlinkRed) ;
end;
if Encoder.GetConnections.GetItem(0).GetState = ecsDisconnected then
begin
MidiOut (Launchpad_Device,176, SessionButtons[5],cHighGreen) ;
end;
end;
It doesn’t work neither… any idea ?