No internet connection
  1. Home
  2. How to

Waves Tune Live Key-Change Script

By Eric Larson @Eric_Larson
    2021-05-20 03:04:37.272Z

    Hello! I am working in a live sound Pro Tools broadcasting setup, and I'd love to use my streamdeck to change the key for the Waves Live Tune vocal tuning plugin. When the band is switching between songs, we'd love to be able to press one button on the stream deck to switch the key for each of the four vocal tracks with an instance of the Waves Live Tune plugin. Is this doable? If so, is there already a script in the store or would this be something we need to make from scratch? Thanks!

    • 14 replies
    1. Dustin Harris @Dustin_Harris
        2021-05-20 04:01:37.474Z

        Super easy if you save each key center as a preset :)

        1. EEric Larson @Eric_Larson
            2021-06-10 02:59:17.214Z

            Thanks Dustin! I created the presets in the waves plugin but i'm having a hard time finding an action that will open up the preset selecting pulldown menu... the only one I found was "select insert preset" but it says “please use the output of another action to connect this property” and I can’t find a solution to that.

            Does this require a script instead of a simple macro? Thanks for your help!

            1. samuel henriques @samuel_henriques
                2021-06-10 07:36:11.440Z

                Try "open and select item in popup menu".

                Or save it on the numbers and do "click on ui element"

                1. EEric Larson @Eric_Larson
                    2021-06-17 01:56:41.709Z

                    Thanks Samuel! We got alot closer, but we're still running into an issue... I've got the macro to open up the pop up menu, but I can't get it to make a selection in the pop up menu. This is the error i'm getting now:

                    Error invoking AXElement: kAXErrorCannotComplete
                    SoundFlow.Shortcuts.AXUIElementException: kAXErrorCannotComplete

                    I tried adding a "UI Click Element" after getting the pop up menu but the menu doesn't stay open after i open another window. Any ideas? Thanks for all your help!

                    1. samuel henriques @samuel_henriques
                        2021-06-17 13:00:28.371Z2021-07-01 09:06:26.537Z

                        Hello @Eric_Larson,

                        can you try what I made on the video and let me know if it works?

                        make sure to write the preset name EXACTLY as is on the plugin.

                        https://we.tl/t-0yjmrDHNup

                        1. EEric Larson @Eric_Larson
                            2021-07-01 01:00:08.067Z

                            Samuel,

                            I was on vacation last week so I'm just checking this and it's looking like the link you sent expired... :( Would you be able to resend? Sincerely, thank you for the help!

                            1. samuel henriques @samuel_henriques
                                2021-07-01 09:08:25.546Z
                                1. EEric Larson @Eric_Larson
                                    2021-07-11 14:45:11.963Z

                                    Samuel,

                                    I tried to view this earlier this week and it had already expired again... do you know how long the links last? I will be back in on Wednesday and I'll try to view it then? Or does it last one day? If so, would you be able to send it on Tuesday? This will be the last time... haha. Thanks man!

                                    1. samuel henriques @samuel_henriques
                                        2021-07-11 15:20:40.488Z

                                        Here you go, this one shouldn't expire.
                                        https://youtu.be/h4f8mzc8l9g

                                        1. EEric Larson @Eric_Larson
                                            2021-08-08 18:12:34.707Z

                                            Samuel,

                                            This worked! Thanks so much for your help. I am having the following issue pop up randomly, however... not sure what's causing it? Once this issue starts occuring, it doesn't work basically force quit the app... and even then, it comes back randomly later.

                                            Also, when I go into activity monitor, there have been up to 4 instances of the Soundflow app running on my mac at the same time... I didn't even think that was possible haha. Have you run into this before? I'm wondering if this is part of my issue in some way.

                                            1. samuel henriques @samuel_henriques
                                                2021-08-08 20:47:46.655Z

                                                I don't think what you see in the activity monitor is wrong. Mine shows a couple of SoundFlow lines as well, I guess they are different process.

                                                Ether way the error you are getting is not related, could you confirm that the popup is not being covered by any other window when you get the error? And could you share the code/macro you ended up getting?

                                                1. EEric Larson @Eric_Larson
                                                    2021-08-22 15:03:08.930Z

                                                    Yeah, that makes sense. So when I go into Soundflow to setup the macro, it's not recognizing any of the tracks in Pro Tools... almost like it's connection to the software isn't working and needs to be refreshed. When we run the macro, it's giving us this issue... probably 75% of the time:

                              • E
                                In reply toEric_Larson:
                                Eric Larson @Eric_Larson
                                  2021-08-22 15:09:58.909Z

                                  Here's what i'm referring to when i say it's not recognizing any of the tracks in Pro Tools... ordinarily, this pulldown menu shows all tracks in the Pro Tools session but intermittently it only shows the last one that we selected:

                                  1. samuel henriques @samuel_henriques
                                      2021-08-22 19:12:57.256Z

                                      Don't know why you don't see every track on the list but, this won't work on the mix window.

                                      Most default soundFlow scripts are meant to work on the edit window, there is a lot more information and easier for soundFlow.

                                      A common way to do what you are looking for is to focus the edit window, open the plugin, and finally open the mix window. It's really fast. Doing it on a script is easier as well.

                                      try this,

                                      
                                      
                                      
                                      function setPluginPreset({ pluginName: pluginName, presetName: presetName, slotNumber: slotNumber, trackName: trackName }) {
                                      
                                          const isMixWindowFocused = sf.ui.proTools.getMenuItem('Window', 'Mix').isMenuChecked
                                      
                                          if (isMixWindowFocused) {
                                              sf.ui.proTools.menuClick({ menuPath: ["Window", "Edit"], targetValue: "Enable", });
                                          }
                                      
                                      
                                          try {
                                              const track = sf.ui.proTools.trackGetByName({ name: trackName, makeVisible: true }).track
                                              const pluginWindow = sf.ui.proTools.windows.whoseTitle.is(`Plug-in: ${pluginName}`).first
                                      
                                              track.trackScrollToView()
                                      
                                              track.trackInsertToggleShow({ targetValue: "Enable" });
                                      
                                              pluginWindow.elementWaitFor();
                                      
                                              pluginWindow.popupButtons.allItems[3].popupMenuSelect({
                                                  menuPath: presetName,
                                              });
                                      
                                          } catch (err) { throw err }
                                      
                                          finally {
                                              if (isMixWindowFocused) {
                                                  sf.ui.proTools.menuClick({ menuPath: ["Window", "Mix"], targetValue: "Enable", });
                                              }
                                          }
                                      
                                      
                                      }
                                      
                                      sf.ui.proTools.appActivate()
                                      sf.ui.proTools.invalidate()
                                      
                                      
                                      //  Set info here, must type exactly as in pro tools
                                      setPluginPreset({
                                          pluginName: "FabFilter Pro-Q 3",
                                          presetName: ["Preset 1"],
                                          slotNumber: 1,
                                          trackName: "Track 1"
                                      })