Split 2 Stereo Tracks to 1 Stereo Track
Hello! I am not savvy enough yet to know how to do this, though it seems like a simple task. I would like a script that does what I'm showing in the screengrab (DropBox link below).
Basically, I get a lot of stems to mix that are stereo files, but they contain the left and right sides of a stereo track separated in to 2 stereo files. So what I do is I select both tracks, split them both in to mono, find the left-panned split and select that clip, hold shift and select the right-panned split, then drag those both up to the topmost track (on to one of the original stereo files overwriting the audio on it, usually the one with left-panned audio). After all that I delete all of the track beneath it (the other split tracks and the other original stereo file)
Again it seems like a simple script, I just am not sure how to program SF to do the shift-clicking on the clips to grab just the two split tracks. I know there are a number of ways to select two tracks, so anything will do that ends up select the correct ones and moving them up to the topmost stereo track (can be dragged or cut/pasted, doesn't matter).
Thanks for any help!
- Chris Shaw @Chris_Shaw2023-06-17 00:44:51.387Z
Hey @Aidan_Thillmann,
I have a utility for this in a my Track Data Utilities package.
(lots of other useful thing in there too)
Just search "Track Data Utilities" in the store…- AAidan Thillmann @Aidan_Thillmann
Hey @Chris_Shaw
Thank you, but if you're referring to your script "Dual Mono to Stereo Track", it doesn't work with tracks that are stereo to begin with, only mono ones. If I run that script with two stereo tracks, I get the message "All selected tracks must be mono. Please check track selection and try again."
I'm sure this script is exactly what I need, but again I'd like it to work with two stereo tracks. Again the type of stereo tracks I'm after are ones with panning baked in to them. Let me know if my attached video is clear on that. Thanks again for any help Chris!
samuel henriques @samuel_henriques
Hello Aidan,
this is a way of automate the actions on the video. Let me know if it helps.
function spotLeftandRightToSelection() { const clipList = sf.ui.proTools.mainWindow.clipListView.childrenByRole("AXRow").allItems; let getSelectedClips = () => clipList.filter(ch => ch.children.whoseRole.is("AXCell").allItems[1].children.whoseRole.is("AXStaticText").first.title.invalidate().value.startsWith("Selected.")) let originalSelectedClips = getSelectedClips(); //Open Stereo Clips if (originalSelectedClips) { originalSelectedClips[0].children.whoseRole.is("AXCell").first.children.whoseRole.is("AXDisclosureTriangle").first.mouseClickElement({ isOption: true, isShift: true }) }; const selectedClipsWithMembers = getSelectedClips() selectedClipsWithMembers[2].mouseClickElement({ isCommand: true }) selectedClipsWithMembers[4].mouseClickElement({ isCommand: true }) selectedClipsWithMembers[1].children.allItems[1].children.first.popupMenuSelect({ isRightClick: true, menuPath: ['Spot to Edit Insertion'], onError: "Continue", }); }; spotLeftandRightToSelection()
- AAidan Thillmann @Aidan_Thillmann
I get some errors here, I'm not sure the best way to send error logs to you, but the basic notifications I get are these:
-
When I just select the 2 track headers, I get the error "TypeError: Cannot read property 'children' of undefined"
-
When I select the clips in the timeline (Track and Edit Selection Linked) I get the error "TypeError: Cannot read property 'mouseClickElement' of undefined"
Let me know the best way to send full logs to you if you need them, but thanks so much for giving this a go!
-Aidan
samuel henriques @samuel_henriques
Try selecting the clips and keep the clip list open.
This is a funny script but it's hard to make it work on any situation.here's a clip:
https://youtu.be/q0mTbEdx8-Q- AAidan Thillmann @Aidan_Thillmann
Yes this works! Thank you Samuel! I'll keep you updated on this. I think it wasn't working on a particular session for some reason but I've just tried it on a fresh session with new stems and it worked great, super quick too! There was only one time it didn't copy the audio over and it left the top stereo track blank, but it was only one time. I'll blame Pro Tools haha. Cheers!
-
- In reply toAidan_Thillmann⬆:
Chris Shaw @Chris_Shaw2023-06-21 13:17:15.505Z
Actually the script I was referring to was “‘stereo’ track to mono” but it wouldn’t work in this situation.
If you’re receiving lots of audio files like this I highly recommend Stereo Mono-izer. It’s designed specifically for this. I use it all the time. It analyses audio files and automatically detects and splits ‘stereo’ tracks that are really mono.
https://www.soundizers.com/
- In reply toChris_Shaw⬆:AAnthony Valcic @Anthony_Valcic
This was exactly what I was looking for because when you consolidate out of Pro Tools post pan, it converts mono files into stereo with the panning embedded. I got a session like that and the files were hard panned so you had these stereo files with audio only on one side and then another stereo file for the other. I was stoked to use this to save a bunch of tedious work, however, on the session I had it worked on the first half dozen tracks or so and then didn't work after that (there were a lot of them, maybe 15-20)
I wonder what caused it not to work as I got past the first handful.