No internet connection
  1. Home
  2. How to

Applying fader gain to clip gain

By Eric Dan @Eric_Dan
    2021-09-13 19:49:52.955Z

    Does anyone know of a script that can read the numerical value(s) on one or more faders and add that value to the clip gain across all clips in the corresponding track and then reset the fader to 0?

    Example:
    Fader is set to +3.0 db, clip gain varies per clip for any particular track, but 3db is added to each clip when the command is run. So a clip that was at 0, is now +3 and one next to it that was at -3 is now 0.

    I want to do this so i can ultimatly zero all the faders but keep the relative balance intact

    Solved in post #3, click to view
    • 11 replies
    1. Kitch Membery @Kitch2021-09-13 22:14:40.704Z

      Hi @Eric_Dan,

      I think what you are after may already be a menu option in Pro Tools;

      In Javascript it looks like this :-)

      sf.ui.proTools.menuClick({
          menuPath: ["Edit","Automation","Coalesce Clip Gain to Volume Automation"],
      });
      
      

      Is that what you are after?

      Rock on!

      1. EEric Dan @Eric_Dan
          2021-09-14 00:53:17.406Z

          Ah, must be only on PT Ultimate. I’ve been meaning to pony up for it anyway….

        • O
          In reply toEric_Dan:

          I do this all the time in my workflow now. I did add a render clip gain in front of the coalesce becuase if you have any un-rendered clip gain it will blow that out when you run the coalesce. Saves buckets of time working with faders to get my edit balanced right and then still delivering flat faders to the Mixer.

          Reply2 LikesSolution
          1. EEric Dan @Eric_Dan
              2021-09-14 00:54:18.937Z

              This is exactly what I’m trying to do. Thanks!

              1. MMike @Mike
                  2022-03-19 17:47:25.016Z

                  Can I program a workaround for Pro Tools (non ultimate) to just copy the fader value to the clip gain and zero the volumne afterwards? I don't need the automation but wan't to copy only static fader value to clip gain.

                  1. AAndrew Downes @Andrew_Downes
                      2022-03-20 23:43:57.484Z

                      Hi Mike
                      I think what you are asking will be carried out by this script. I use it to Gain Stage tracks that have been recorded to loud or to quietly.
                      The one caveat is not to have ant audio starting a absolute zero. For some reason Pro Tools won't clear volume automation at the zero point so you sometimes end up with the automation still written to the track.
                      Cheers

                      sf.ui.proTools.menuClick({
                          menuPath: ["Edit","Automation","Coalesce Volume Automation to Clip Gain"],
                      });
                      
                      
                      sf.ui.proTools.menuClick({
                          menuPath: ["Edit","Clear Special","All Automation"],
                      });
                      
                      
                      const VOLUME = '0';
                      sf.ui.proTools.appActivateMainWindow();
                      const checkBoxes = [
                          { Title: 'I/O', State: "Enable" },
                      
                      
                      ];
                      function setCheckboxState(item) {
                          sf.ui.proTools.menuClick({
                              menuPath: ['View', 'Edit Window Views', item.Title],
                              targetValue: item.State,
                              onError: "Continue",
                          })
                      }
                      function setupScreen() {
                          //Make sure I/O visible in Edit window
                          checkBoxes.forEach(setCheckboxState);
                      }
                      
                      
                      function setVolume() {
                          sf.ui.proTools.mainWindow.invalidate();
                          if (sf.ui.proTools.selectedTrack.outputWindowButton.value.invalidate().value != 'open')
                              sf.ui.proTools.selectedTrack.outputWindowButton.elementClick();
                      
                          var win = sf.ui.proTools.floatingWindows.allItems.filter(function (w) {
                              return w.children.whoseTitle.is('Volume').exists;
                          })[0];
                      
                          win.textFields.whoseTitle.is('Volume Numerical').first.elementClick();
                          sf.keyboard.type({ text: VOLUME });
                          sf.keyboard.press({ keys: 'enter' });
                      
                      
                      }
                      
                      function main() {
                          setupScreen();
                          //Save the name of the originally selected track
                      
                          var originalTrackName = sf.ui.proTools.selectedTrackNames[0];
                      
                          //Select the desired track
                          sf.ui.proTools.selectedTrackNames };
                      
                          //Set the volume
                          setVolume();
                      
                         
                          //Select original track again
                          sf.ui.proTools.selectedTrackNames
                      
                      sf.keyboard.press({
                          keys: "cmd+alt+w",
                      });
                      
                      main();
                      1. MMike @Mike
                          2022-03-21 11:34:22.764Z

                          Many Thanks! But I think this is only working with ProTools Ultimate since of the "menuPath: ["Edit","Automation","Coalesce Volume Automation to Clip Gain"]," which I do not have in my NONE-Ultimate ProTools 2021.12.0. I think I need something which writes the read volume numerical to the clip gain fader ... but that is maybe only possible with a Ultimate Version of ProTools.

                          1. AAndrew Downes @Andrew_Downes
                              2022-03-22 01:51:45.530Z

                              Sorry Mike. I didn't realise there were differences in Automation other than Trim mode between the two Pro Tools versions

                              1. MMike @Mike
                                  2022-04-27 08:31:05.838Z

                                  It seems my 'new' 2022.4 Protools Studio have 'Coalesce Volume Automation to Clip Gain' now :)

                          2. RRandall Smith @Randall_Smith
                              2022-04-27 21:21:01.524Z

                              If you coalesce volume to clip gain, instead of convert it will ADD the volume automation to the existing clip gain, without blowing it out.

                              I would change the script to that command...

                              Randall

                              1. Oh man I don't think my PT had coalesce clipgain yet, why i was running the render then covert! I gotta go look and update my button !