Business Template Forums Macros Looper state function

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #5095

    Hi,

    I am looking for a function that would return the current state of a looper, e.g. play, record, overdub etc. I am looking for something like:

    If { LooperAState == Record}
    Action 1
    ElseIf { LooperAState == Overdub}
    Action 2
    EndIf

    Thanks for any help!

    //
    Daniel

    #5097
    Philippe
    Keymaster

    Hi Daniel,
    To know the state of almost everything in Logelloop.
    You will use the variables.
    Every variable is in the “Macro Variable Viewer” you open in the tools menu.

    Then, if you want to know the state of a record, you can put Record in the filter and you will see $state_record$ in the list.
    $state_record$ will be true when the main looper is recording.

    So the macro is :

    DoRepeat

    If {$state_record$ == true}
    Message “Recording in action”
    EndIf

    If {$state_overdub$ == true}
    Message “Overdub in action”
    EndIf

    Sleep 100

    While true

    #5099

    Thank you.

    I now found the variables you mentioned in the reference guide. I still have some questions though.
    1. The “Main looper” is that the currently selected looper (could I use $current_selected_track$)? If not, can I somehow define what looper/track to ask the state for?
    2. Is there any “Play” state for the looper? I.e. is there anyway of knowing if the looper is just playing (not in record, mute, overdub, multiply…)?
    3. Is there anyway of knowing the state of an Insert Looper?

    Thanks again!

    #5100
    Philippe
    Keymaster

    Hi,

    1 – The main looper is the 10 tracks looper.$state_multiply$, $state_mute$, $state_overdub$, $state_record$ will tell you the state of this main looper.
    $current_full_tracks_count$ and $current_last_full_track$ will tell you how many tracks are playing in the main looper.

    2 – $current_loop_duration_ms$ and $current_loop_duration_samples$ will tell you if there is something in the main looper : {$current_loop_duration_ms$ != 0} means something is recorded and if it is not muted ({$state_mute$ == false}) it should be playing.

    3 – if you load a looper in fx3 / rank 1, this variable will be created : $Looper_fx3_rank1_Record_state$ and it will be visible in the list.
    If you put $Looper_fx3 in the filter part of the variable table, you will see this list :

    $Looper_fx3_rank1_ActionAtNextBar_state$
    $Looper_fx3_rank1_AutoFade_state$
    $Looper_fx3_rank1_CrossFadeShape_state$
    $Looper_fx3_rank1_Group_state$
    $Looper_fx3_rank1_LatencyCompensation_state$
    $Looper_fx3_rank1_MuteFadeLength_state$
    $Looper_fx3_rank1_Mute_state$
    $Looper_fx3_rank1_PauseMode_state$
    $Looper_fx3_rank1_Play_state$
    $Looper_fx3_rank1_Record_state$
    $Looper_fx3_rank1_SelectionIn_state$
    $Looper_fx3_rank1_SelectionOut_state$
    $Looper_fx3_rank1_SpeedFloat_state$
    $Looper_fx3_rank1_SpeedSemiTone_state$
    $Looper_fx3_rank1_Sync_state$
    $Looper_fx3_rank1_Synchro_state$
    $Looper_fx3_rank1_current_length$

    All of those variables describes the fx3-rank1 Looper state

    Philippe

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.