No internet connection
  1. Home
  2. How to
  3. Logic Pro

Script help Low Latency/Record, and Moving tracks into predefined Trackstacks

By Thomas Stengaard @Thomas_Stengaard
    2024-09-20 22:42:15.700Z

    Hi There, im totally new here, so bare with me :)
    I was hoping someone could help me with some scripts, or let me know if its possible...

    It would be great to have a script that automatically toggles low latency mode when you hit record and disables it again after

    And would it be possible to make a script that will move the selected track to a certain track stack, and if possible, give it the same color as the track stack?
    I have fixed names for my trackstacks as I use them for different instruments...
    DRUMS (with trackstacks a level deeper with KICK, SN, TOMS)
    PERCUSSION
    BASS
    GUITARS
    KEYBOARDS
    STRINGS
    PIANO
    FX N STUFF
    BVS
    ADLIBS
    LEAD VOCALS

    Really curious if stuff like this is possible :)
    All the best Thomas

    • 8 replies
    1. Kitch Membery @Kitch2024-09-20 23:34:30.020Z

      Hi @Thomas_Stengaard,

      For your first request, you could use the following script for starting and stopping record.

      const logic = sf.ui.logic;
      logic.invalidate();
      logic.appActivate();
      
      const controlBar = logic.mainWindow.controlBar;
      const isRecording = controlBar.recordButton.isCheckBoxChecked;
      
      // If Logic Pro is currently recording.
      if (!isRecording) {
          // Enable Low Latency Monitoring Mode
          logic.menuClick({
              menuPath: ["Record", "Low Latency Monitoring Mode"],
              targetValue: "Enable",
          });
      
          // Click the Record button
          controlBar.recordButton.elementClick();
      } else {
          // Click the Stop button
          controlBar.stopButton.elementClick();
      
          // Disable Low Latency Monitoring Mode
          logic.menuClick({
              menuPath: ["Record", "Low Latency Monitoring Mode"],
              targetValue: "Disable",
          });
      }
      
      1. TThomas Stengaard @Thomas_Stengaard
          2024-09-23 11:14:50.688Z

          Amazing! Only thing is that it doesnt go back to disabling low latency after im done recording. Low latency stays enabled no matter what I do... press stop or press play etc

        • Kitch Membery @Kitch2024-09-20 23:35:56.756Z

          I'm not sure we have the ability to achieve your other requested workflow just yet but I'll log it internally so we can let you know if that ever changes.

          1. Kitch Membery @Kitch2024-09-20 23:39:56.665Z

            Side note... for workflow requests, it's always best to start separate forum threads for each different workflow request that way they're less likely to get overlooked. :-)

            1. TThomas Stengaard @Thomas_Stengaard
                2024-09-21 08:43:54.806Z

                Wow thank you so much !!! So kind of you, I’m really starting to see the possibilities with scripts and macros here, so awesome🙏🙏🙏

                1. TThomas Stengaard @Thomas_Stengaard
                    2024-09-23 11:15:37.119Z

                    edit... ah so if I hit the assigned key command (Im going with *) and hit that again when im done, then it works!!

                    1. Kitch Membery @Kitch2024-09-23 16:20:18.588Z

                      Yes, that's the way to use the command. :-)

                2. Matthew Brabender @Matthew_Brabender
                    2024-10-06 12:49:48.531Z

                    I’ve looked into the track stack thing and it’s not possible with Logic’s current functionality. The only way to move a track to a stack is to mouse drag it. Reason I believe is there’s no way to search for a track name so there’s no list of tracks to reference.
                    The kind folks at soundflow would probably need to create a dynamic track name list (kinda like what plugsearch does).
                    For the colour change, you can create buttons for that. For your fixed stack names, you can duplicate the colour buttons and name them according to that. Select your track, hit ‘drums colour’ and it’s done.