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

How to create audio track, choose input and choose channel strip setting

By Thomas Stengaard @Thomas_Stengaard
    2025-03-22 16:06:42.045Z

    It would be so nice if I could have a function where I create an audio track, choose the desired input (for instance my input 1 for vocal recording, input 2 for guitar amp etc), and then have it dial in a custom channel strip setting (for instance, I have one called "vocal recording" that has a few plugins on that I like for that.
    Anyone has an idea how to do that ?

    • 9 replies
    1. Something like this should work.
      Just change the values of the first three variables to the settings you need:

      const newTrackName = "GTR Amp";
      const newTrackPresetPath = ["Avid", "Guitars", "Classic"]
      const newTrackInput = ["interface", "Mic 1"]
      
      sf.ui.proTools.appActivate();
      
      // Create track
      sf.app.proTools.createNewTracks({
          trackFormat: "TFMono",
          trackName: newTrackName,
          trackType: "Audio",
          trackTimebase: "Samples",
          insertionPointPosition: "After",
      });
      
      sf.ui.proTools.mainWindow.invalidate()
      
      const newTrack = sf.ui.proTools.selectedTrack;
      
      // Recall track preset
      sf.ui.proTools.selectedTrack.titleButton.popupMenuSelect({
          menuPath: ["Recall Track Preset", ...newTrackPresetPath],
          isRightClick: true
      })
      
      // Set track Input
      newTrack.inputPathButton.popupMenuSelect({
          menuSelector: items => items.find (i => i.path[0].includes(newTrackInput[0]) && i.path[1].includes(newTrackInput[1]))
      })
      
      1. Kitch Membery @Kitch2025-03-24 17:55:38.902Z

        Hi @Chris_Shaw

        I believe this request was for Logic Pro. :-)

      2. Matthew Brabender @Matthew_Brabender
          2025-03-23 07:02:08.842Z

          I'm not sure if that script will translate to Logic.
          There are functions included in soundflow that will let you build a macro for Logic.
          Start by creating a new macro, then add these...

          1. Under 'Track Menu', use 'New Audio Track'
          2. Under 'Track Functions', use 'Select Track Input' - you'll need to create a preset for yourself
          3. Under 'Track Functions', use 'Recall Track Preset' - again you'll need to create a preset for yourself

          If the macro tries to run through the commands too quickly, you might need to add the wait function in between each step.

          1. Oops.
            Sorry about that. I didn’t notice the request was for Logic.
            My apologies.

          2. T
            Thomas Stengaard @Thomas_Stengaard
              2025-03-23 13:18:10.229Z

              Thanks so much guys!!
              It took me a while to figure out (I'm new to this) but I got Mathews approach to work!

              1. T
                Thomas Stengaard @Thomas_Stengaard
                  2025-03-24 09:43:05.546Z

                  I figured out how to create audio track and select channel strip preset.
                  However I can't figure out how to make it choose an input... I tried the different path options as well...
                  Not sure what im doing wrong...
                  this is the error message I get

                  24.03.2025 10:39:59.75 [EditorWindow:Renderer]: Active Focus Container: commandsPage/MacroCommandDetails Line 33963 file:///Applications/SoundFlow.app/Contents/Helpers/SoundFlow.app/Contents/Resources/app.asar/dist/editor.js
                  24.03.2025 10:40:28.70 [Backend]: [SF_FIREBASE_WS]: Sending keep-alive

                  1. Kitch Membery @Kitch2025-03-24 18:15:23.066Z

                    Hi @Thomas_Stengaard

                    Does placing a wait after the Channel Strip Settings action fix this... If so, I may need to update the Logic Pro package to ensure that the popup menu closes before trying to select the Input.

                    Let me know. :-)

                  2. Matthew Brabender @Matthew_Brabender
                      2025-03-24 19:18:56.239Z

                      Not sure if this helps but I've always had better luck using the Long Output Name.
                      So it would be...
                      Input Input 7
                      (or if you've labelled it in Logic then it would be that)

                      1. TThomas Stengaard @Thomas_Stengaard
                          2025-03-24 20:06:43.574Z

                          aaah but also.
                          I didn't do the first
                          "Input" command... of course, haha... thanks so much