No internet connection
  1. Home
  2. How to

How To: Pro Tools script for reverse reverb using audiosuite

By Damien Lewis @Damien_Lewis
    2022-07-16 23:21:30.648Z

    How would I learn to write this macro? Or how does anyone learn this for that matter?

    • open audiosuite reverb plugin
    • hit reverse button to render reverse reverb

    A key command would be more ideal for me rather than a stream deck button
    Thanks for any help!
    Damien

    • 2 replies
    1. D
      Dj Lito @Dj_Lito
        2023-12-09 01:46:22.584Z

        Hello, have you found a solution to this?

        1. Nathan Salefski @nathansalefski
            2023-12-09 04:02:52.352Z2023-12-10 19:32:01.763Z

            Here you go. The first code will not allow you to adjust the reverb settings prior to rendering but will allow you to select a different reverb depending on the name you input here: reverseReverb('ENTER REVERB NAME HERE');

            function reverseReverb(name) {    
                sf.ui.proTools.appActivateMainWindow();
            
                sf.ui.proTools.mainWindow.invalidate();
            
                sf.ui.proTools.audioSuiteOpenPlugin({ category: 'Reverb', name,});
            
                sf.ui.proTools.firstAudioSuiteWindow.buttons.whoseTitle.is("Analyze").first.elementClick();
            
                sf.ui.proTools.waitForNoModals();
            
                sf.ui.proTools.firstAudioSuiteWindow.windowClose();
            }
            
            reverseReverb('ENTER REVERB NAME HERE');
            
            If you have a StreamDeck, I think it would be best to allow you to adjust the reverb before rendering. This will mean you must press the button twice. Once to pull up the AudioSuite plug-in and again to render it. You will need your Device ID in order to use the command:

            sf.devices.streamDeck.getDeviceBySerialNumber('ENTER DEVICE ID HERE').waitForPress();

            An easy way to find this would be using this macro, selecting your StreamDeck form the drop down and copying it as Javascript. Your Device ID will be displayed in that code, simply Copy and Paste

            function reverseReverb(name) {    
                sf.ui.proTools.appActivateMainWindow();
            
                sf.ui.proTools.mainWindow.invalidate();
            
                sf.ui.proTools.audioSuiteOpenPlugin({ category: 'Reverb', name,});
            
                sf.devices.streamDeck.getDeviceBySerialNumber('ENTER DEVICE ID HERE').waitForPress();
            
                sf.ui.proTools.firstAudioSuiteWindow.buttons.whoseTitle.is("Analyze").first.elementClick();
            
                sf.ui.proTools.waitForNoModals();
            
                sf.ui.proTools.firstAudioSuiteWindow.windowClose();
            }
            
            reverseReverb('ENTER REVERB NAME HERE');