Jump to content

Archived

This topic is now archived and is closed to further replies.

gardan

LVar for Chrono

Recommended Posts

Hi,

The question is in the title.

For make the chrono ON, STOP, and OFF,

And congratulations at team of AAX :excellenttext_s:

Thank you and sorry for my English

Michel

Share this post


Link to post

Hi,

The var is L:AB_MPL_CLOCK_ET_SW, number

0 = start

1 = stop

2 = reset.

Thk Joshua

Share this post


Link to post

Thk Joshua

Hi,

Why this do not work :confused_s:

-- CHRONO button toggle
if ipcPARAM == 225 then

    LVarSet = "L:AB_MPL_CLOCK_ET_SW"
    LVarGet = ipc.readLvar(LVarSet) 

    if LVarGet == 2  then
    LVarGet = -1
    end
	
    ipc.writeLvar(LVarSet,LVarGet+1)
	ipc.writeLvar("L:SmallOverheadPushButtons", 1)
	
end

Thk at all

Share this post


Link to post

Hi,

Why this do not work :confused_s:

-- CHRONO button toggle
if ipcPARAM == 225 then

    LVarSet = "L:AB_MPL_CLOCK_ET_SW"
    LVarGet = ipc.readLvar(LVarSet) 

    if LVarGet == 2  then
    LVarGet = -1
    end
	
    ipc.writeLvar(LVarSet,LVarGet+1)
	ipc.writeLvar("L:SmallOverheadPushButtons", 1)
	
end

Thk at all

The developer of the SDK is back from vacation next monday and I'll ask him to check on this.

Share this post


Link to post

The LINDA module actaly contains the clock section. Here is the code

(But I must say, I haven't tried it actaly - maybe codes have changed ...)

With this code, you should be able to make your own script, if you don't want to use LINDA ...

-- ## Clock Main Panel ###############

function AB_MPL_CLOCK_Chrono_start ()
ipc.writeLvar("L:AB_MPL_CLOCK_Chrono_start", 1)
SmallOverheadPushButtons ()
DspShow ("CHR", "strt")
end

function AB_MPL_CLOCK_Chrono_stop ()
ipc.writeLvar("L:AB_MPL_CLOCK_Chrono_start", 0)
SmallOverheadPushButtons ()
DspShow ("CHR", "stop")
end

function AB_MPL_CLOCK_Chrono_toggle ()
if _tl("AB_MPL_CLOCK_Chrono_start", 0) then
AB_MPL_CLOCK_Chrono_start ()
else
AB_MPL_CLOCK_Chrono_stop ()
end
end

function AB_MPL_CLOCK_Chrono_reset ()
ipc.writeLvar("L:AB_MPL_CLOCK_RST", 1)
SmallOverheadPushButtons ()
DspShow ("CHR", "rset")
end

-----
function AB_MPL_CLOCK_run ()
ipc.writeLvar("AB_MPL_CLOCK_ET_SW", 0)
DspShow ("CLCK", "run")
ASC_KnobRotate ()
end

function AB_MPL_CLOCK_stp ()
ipc.writeLvar("AB_MPL_CLOCK_ET_SW", 1)
DspShow ("CLCK", "stp")
ASC_KnobRotate ()
end

function AB_MPL_CLOCK_st ()
ipc.writeLvar("AB_MPL_CLOCK_ET_SW", 2)
DspShow ("CLCK", "st")
ASC_KnobRotate ()
end

function AB_MPL_CLOCK_inc ()
CLCK = ipc.readLvar("AB_MPL_CLOCK_ET_SW")
if CLCK == 0 then AB_MPL_CLOCK_stp ()
elseif CLCK == 1 then AB_MPL_CLOCK_st ()
end
end

function AB_MPL_CLOCK_dec ()
CLCK = ipc.readLvar("AB_MPL_CLOCK_ET_SW")
if CLCK == 2 then AB_MPL_CLOCK_stp ()
elseif CLCK == 1 then AB_MPL_CLOCK_run ()
end
end

Share this post


Link to post

Hi,

Why this do not work :confused_s:

-- CHRONO button toggle
if ipcPARAM == 225 then

    LVarSet = "L:AB_MPL_CLOCK_ET_SW"
    LVarGet = ipc.readLvar(LVarSet) 

    if LVarGet == 2  then
    LVarGet = -1
    end
	
    ipc.writeLvar(LVarSet,LVarGet+1)
	ipc.writeLvar("L:SmallOverheadPushButtons", 1)
	
end

Thk at all

Hi,

The variable you got should be working and is for the CLOCK CHRONO. If you are requesting for the ND Chrono, its a different variable.

Share this post


Link to post
Guest
This topic is now closed to further replies.

×
×
  • Create New...