Home Forums Macros Time Stretch Mode: Script for correlating Playing Speed to the Metronome Tempo

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #7634
    domdom
    Participant

    Hello Logelloop People

    I am new to Logelloop and so far i’m very impressed by the clever functionalities for building loops an playing with them!

    I want to use Logelloop as a “sidecar” looper in conjunction with Ableton Live. Connection via Link works great so far.

    What I miss though is the possibility to time-stretch the loops in correlation to the metronome (like “warped” clips do in Ableton Live).

    Example scenario: i have a 4 beats long loop (main looper/modular insert looper, doesn’t matter) and Ableton or Logelloop changes the metronome tempo. My loop will time-stretch accordingly and remain exact 4 beats long in the new tempo. That way it stays continuously 4 bars everytime the metronome changes tempo (Like you file player already does natively, right?)

    Is this possible via scripting? I saw a remark on your website (Page: https://www.logelloop.com/2025/11/30/the-modular-loopers-playback-modes/ ) which says that this is possible via script. (Time Stretch Mode: “The speed can be correlated to the metronome tempo variation using a script”)
    If there is a working, reliable script/macro, that does that, i would be really happy if you could share that. I am of course also looking into making macros by myself, but there is a high learning curve and i imagine it can become quite complicated with time-sensitive tasks… if someone with experience has already made a macro for this i will happily use this to get me started.

    Thank you a lot in advance!
    Dom

    #7749
    Philippe OllivierPhilippe
    Keymaster

    Hi Dom,
    I am sorry for this very late answer, we are very busy at the moment.

    Having this behavior as a native functionality in Logelloop is in the to do list but I miss time to implement it…
    Anyway, it is not so difficult to Stretch a loop in relation to the Metronome’s BPM with a script.

    You can try this one :

    
    // Define the reference BPM which is the BPM of the loop you want to stretch
    Declare float $bpm_reference$ = 124.717
    
    DoRepeat
    // You wait for a BPM change in the Logelloop's metronome
    	WaitVariableChange $metro_bpm$
    
    // And then, you applicate the speed calculated from the new Logelloop BPM and the reference
    // The looper you want to strech must be in fx1 insert 1
    // and it must be set to Time Stretch mode
    
    	InsertSendMessage fx1 1 SpeedFloat {$metro_bpm$ / $bpm_reference$}
    
    	//WaitDuration 10
    
    // You restart the Logelloop to be in sync
    InsertSendMessage fx1 1 Start    
    
    // You wait a little and you restart the script to be ready to set a new speed to your loop
    WaitDuration 300
    
    While true
    

    1 – Put this script in a macro in Logelloop.
    2 – Load a looper in fx1 insert 1
    3 – Load/record a loop in fx1
    4 – Replace the BPM ref value in $bpm_reference$ by the bpm of the loop you have in fx1
    5 – Start the macro
    6 – change the metronome bpm in Logelloop

    The loop in fx1 should restart at the right speed when the tempo is changed.

    This is a very basic script as a template.
    If you tell me more about your precise case, we may improve the behavior.

    Best regards,
    Philippe

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