How to create audio track, choose input and choose channel strip setting
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 ?
- Chris Shaw @Chris_Shaw2025-03-22 20:40:03.385Z
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])) })
Kitch Membery @Kitch2025-03-24 17:55:38.902Z
Hi @Chris_Shaw
I believe this request was for Logic Pro. :-)
- In reply toThomas_Stengaard⬆:Matthew Brabender @Matthew_Brabender
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...- Under 'Track Menu', use 'New Audio Track'
- Under 'Track Functions', use 'Select Track Input' - you'll need to create a preset for yourself
- 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.
Chris Shaw @Chris_Shaw2025-03-24 18:15:37.844Z
Oops.
Sorry about that. I didn’t notice the request was for Logic.
My apologies.
- TIn reply toThomas_Stengaard⬆:Thomas Stengaard @Thomas_Stengaard
Thanks so much guys!!
It took me a while to figure out (I'm new to this) but I got Mathews approach to work! - TIn reply toThomas_Stengaard⬆:Thomas Stengaard @Thomas_Stengaard
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 get24.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-aliveKitch Membery @Kitch2025-03-24 18:15:23.066Z
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. :-)
- In reply toThomas_Stengaard⬆:Matthew Brabender @Matthew_Brabender
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)- TThomas Stengaard @Thomas_Stengaard
aaah but also.
I didn't do the first
"Input" command... of course, haha... thanks so much