Macro / script to enable Melodyne in Pro Tools playlist view
I'm completely new to SoundFlow, so apologies if this is very basic or if I'm not explaining correctly.
Is there a way to create a macro/script to enable Melodyne for a specific playlist lane?
For example, when comping in playlist view the manual process is to:
- Switch to playlist view
- Solo a playlist
- Right click the clip
- Select 'Melodyne - Edit'
- Repeat for each playlist
This becomes tedious if a track has many takes. I'd love to use SoundFlow for this process instead. Any help would be appreciated!
- Kitch Membery @Kitch2023-01-28 10:24:50.474Z2023-01-28 10:33:14.074Z
Hi Henry,
Something like this should do the trick.
function melodyneEditPlaylists() { sf.ui.proTools.appActivateMainWindow(); sf.ui.proTools.mainWindow.invalidate(); const plalistsPopupButton = sf.ui.proTools.selectedTrack.displaySelectorButton; const plalistsPopupButtonTitle = plalistsPopupButton.value.invalidate().value; if (plalistsPopupButtonTitle !== "playlists") { plalistsPopupButton.popupMenuSelect({ menuPath: ["playlists"], }); } const plalistsSelectorPopup = sf.ui.proTools.selectedTrack.popupButtons.allItems[1]; const menuItems = plalistsSelectorPopup.popupMenuFetchAllItems({ dismissMenu: true }).menuItems; const playlistNames = menuItems .filter(mi => mi.path[0] === "Target Playlist" && mi.path[1] !== "Main Playlist") .map(e => e.path[1].replace(/\s*\(.*?\)$/g, "")); playlistNames.slice(1).forEach(playlistName => { const playlistTrack = sf.ui.proTools.trackGetByName({ name: playlistName }).track const playlistSoloBtn = playlistTrack.buttons.whoseTitle.is("Solo Comp Lane").first; const isPlaylistSoloed = playlistSoloBtn.value.invalidate().value === "on state" if (!isPlaylistSoloed) { playlistSoloBtn.elementClick(); } sf.ui.proTools.menuClick({ menuPath: ["Track", "Melodyne", "Edit"] }); sf.ui.proTools.waitForNoModals(); if (!isPlaylistSoloed) { playlistSoloBtn.elementClick(); } }); } melodyneEditPlaylists();
The script will first get the names of the playlists in the selected track.
The track view will be set to "playlists"
Then each playlist will be solo enabled.
The script will then click the menu item "Track" => "Melodyne" => "Edit".
The playlist's initial solo state will then be restored.I hope that helps.
Jordan Pascual @Jordan_Pascual
Hey there! I believe this script no longer works. I didn't even know it was possible to use Melodyne ARA on playlists... It seems to be greyed out on my end. Were you able see this working on your end? Script stops around Line 9 (if track is smaller than 'medium' (its looking for 'playlists' and needs to be updated to include 'play') and then stops around Line 15 with this:
"Could not open popup menu from specified element (Solo testt: Line 15)
Popup menu was not found
Popup window was not found after waiting 2000 ms"