No internet connection
  1. Home
  2. How to

Open and Close Melodyne ARA Window

By Anthony Bauman @Anthony_Bauman
    2025-06-20 14:04:08.431Z

    How can I open the Melodyne ARA window (not the full screen version) using an Enable/Disable type of feature.
    There is a way to do it in the Window>ARA Plugins>Melodyne for the full screen version but how do I create the same thing for the lower docked ARA window version?

    I want to be able to run a script that closes the Melodyne window regardless if it is open or not. And regardless whether it is open in full screen or in the lower dock.

    I am running the newest Pro Tools version 2025.6

    Solved in post #2, click to view
    • 2 replies
    1. Chris Shaw @Chris_Shaw2025-06-20 16:01:07.874Z2025-06-20 16:45:07.813Z

      @Anthony_Bauman,

      This should do the trick.
      This will close the Melodyne tab or window if it's open.
      Additionally, if the Melodyne window or tab is closed it will open it depending on the value you set for openWindowOrTab - this way you can toggle it.

      If you don't want the script to toggle Melodyne just delete lines 20-29

      /** @type {"window" | "tab"} */
      const openWindowOrTab = "tab"; // or "window"
      
      const mainWindow = sf.ui.proTools.mainWindow;
      const melodyneTab = mainWindow.melodyneTabButton;
      const melodyneWindow = sf.ui.proTools.windows.whoseTitle.is("Melodyne").first;
      
      // If Melodyne is currently open as a tab, close it and exit
      if (melodyneTab.value.intValue === 1) {
          melodyneTab.elementClick();
          throw 0;
      }
      
      // If Melodyne is currently open as a window, close it and exit
      if (melodyneWindow.exists) {
          melodyneWindow.windowClose();
          throw 0;
      }
      
      // Melodyne is not open — open as tab or window based on 'openWindowOrTab' setting
      if (melodyneTab.value.intValue === 0) {
      
          //@ts-ignore
          if (openWindowOrTab === "tab") {
              melodyneTab.elementClick();
          } else {
              mainWindow.melodyneTabButton.buttons.whoseTitle.endsWith("Window").first.elementClick();
          }
      }
      
      ReplySolution
      1. Anthony Bauman @Anthony_Bauman
          2025-06-20 17:22:07.327Z

          That is perfect!
          I created a template for both the window and tab version.
          Thank you.