No internet connection
  1. Home
  2. How to

Elastic Audio

By Bergatron Music @Bergatron_Music
    2023-08-21 18:42:20.968Z

    Hey SF. I've searched through the forum on Elastic Audio and how to enable/choose which type of elastic audio you want across selected tracks and I can't really find any new information on scripts for this that actually work. I had an old deck (2021) that had scripts that worked for this, but they no longer do. Is it because of ProTools and their updates? Are their any macros/scripts for this out there (current Pro Tools and SF version)? Can anyone point me in the right direction? Please and thanks in advance.

    Solved in post #2, click to view

    Linked from:

    1. Elastic Audio
    • 20 replies

    There are 20 replies. Estimated reading time: 9 minutes

    1. Kitch Membery @Kitch2023-08-24 03:33:04.251Z

      This should do the trick @Bergatron_Music :-)

      /**
       * @param {object} obj
       * @param {string} obj.plugin
       */
      function setElasticAudioPlugin({ plugin }) {
          const track = sf.ui.proTools.selectedTrack;
          const elasticAudioOrAraPlugInSelector = track.popupButtons.whoseTitle.is("Elastic Audio or ARA Plug-in selector").first
      
          elasticAudioOrAraPlugInSelector.popupMenuSelect({
              menuPath: [plugin],
              isOption: true,
              isShift: true,
          });
      }
      
      sf.ui.proTools.appActivateMainWindow();
      
      setElasticAudioPlugin({
          plugin: 'Varispeed'
      });
      
      Reply1 LikeSolution
      1. Bergatron Music @Bergatron_Music
          2023-08-28 16:33:45.615Z

          Awesome. THANK YOU KITCH!!!!!! Works perfectly!

          1. In reply toKitch:
            AAsi Tal @Asi_Tal
              2024-08-13 18:26:48.145Z

              Kitch you are the best!

              1. Kitch Membery @Kitch2024-08-13 18:29:16.382Z

                You're totally welcome :-)

                1. AAsi Tal @Asi_Tal
                    2024-08-13 18:31:29.554Z

                    :))
                    Now I just need to find how to toggle the "samples" and the "ticks" with the same script.
                    My purpose is before I drag a sample from splice to prepare the track so it would receive the sample tempo and be elastic.. Any idea where to find it?

                    1. AAsi Tal @Asi_Tal
                        2024-08-13 18:35:56.345Z2024-08-13 18:41:08.516Z

                        FOUND IT !

                        // Set to Varispeed
                        sf.ui.proTools.selectedTrack.popupButtons.allItems[5].popupMenuSelect({
                            isShift: true,
                            isOption: true,
                            menuPath: ["Varispeed"],
                        });
                        
                        // Set to Ticks
                        sf.ui.proTools.selectedTrack.popupButtons.allItems[3].popupMenuSelect({
                            isShift: true,
                            isOption: true,
                            menuPath: ["Ticks"],
                        });
                        
                        1. Kitch Membery @Kitch2024-08-13 18:44:24.565Z

                          Nice one @Asi_Tal!

                          I've edited your last post so that the code is formatted correctly.

                          Please see the following thread on how to quote code in the SoundFlow Forum. :-)

                          1. AAsi Tal @Asi_Tal
                              2024-08-13 18:52:52.574Z

                              awesome !
                              I've tried the code now.., and it's not working as I want.
                              When I drag loops from Soundbase it comes automatically in "musical mode" (I come from cubase) or elastic mode. (which is great)
                              Now when I use the script and I drag loops from splice it doesn't have the little triangle mark on the right top corner ... and its now getting the tempo from the loop.
                              Any idea how to overcome this?

                              1. Kitch Membery @Kitch2024-08-13 18:54:55.021Z

                                Are you using the script I shared?

                                1. In reply toAsi_Tal:
                                  Kitch Membery @Kitch2024-08-13 18:57:45.161Z

                                  I'm not sure I quite understand the workflow as I'm not a Cubase or Splice user. Maybe some screenshots or a screen recording will help me understand what you are after.

                              2. In reply toAsi_Tal:
                                Kitch Membery @Kitch2024-08-13 18:47:39.597Z

                                Here's an updated version :-)

                                /**
                                 * @param {object} obj
                                 * @param {string} obj.plugin
                                 */
                                function setElasticAudioPlugin({ plugin }) {
                                    const track = sf.ui.proTools.selectedTrack;
                                    const elasticAudioOrAraPlugInSelectorBtn = track.popupButtons.whoseTitle.is("Elastic Audio or ARA Plug-in selector").first;
                                
                                    elasticAudioOrAraPlugInSelectorBtn.popupMenuSelect({
                                        menuPath: [plugin],
                                        isOption: true,
                                        isShift: true,
                                    });
                                }
                                
                                /**
                                 * @param {object} obj
                                 * @param {string} obj.timebase
                                 */
                                function setTimebase({ timebase }) {
                                    const track = sf.ui.proTools.selectedTrack;
                                    const timebaseSelectorBtn = track.popupButtons.whoseTitle.startsWith("Timebase selector").first;
                                
                                    timebaseSelectorBtn.popupMenuSelect({
                                        menuPath: [timebase],
                                        isOption: true,
                                        isShift: true,
                                    });
                                }
                                
                                
                                function main() {
                                    sf.ui.proTools.appActivateMainWindow();
                                    sf.ui.proTools.mainWindow.invalidate();
                                
                                    setElasticAudioPlugin({ plugin: "Varispeed" });
                                
                                    setTimebase({ timebase: "Ticks" });
                                }
                                
                                main();
                                
                                1. AAsi Tal @Asi_Tal
                                    2024-08-13 19:18:18.986Z

                                    The script is great.. and working.
                                    somehow I guess I don't sucessed in what I'm trying to do.. so maybe its not the way.
                                    Sorry for that , I'm really new with protools and I come from Cubase & Ableton .

                                    The first track is what I dragged from Soundbase. works great and adjusted its tempo to the project tempo.
                                    The second track is the one I dragged from Splice. and it's tempo isn't adjust to the tempo of the project although I run the script.
                                    Helppp :)
                                    @Kitch

                                    1. Kitch Membery @Kitch2024-08-13 19:37:32.244Z

                                      Thanks for clarifying,

                                      It seems like this question is more about Pro Tools functionality rather than SoundFlow functionality

                                      It may be best to ask about this workflow in Avid's Pro Tools forum. Or check Pro Tools documentation for this.

                                      When you know/understand the process, you can then implement automating the workflow with SoundFlow. :-)

                                      1. In reply toAsi_Tal:
                                        Kitch Membery @Kitch2024-08-13 19:39:28.048Z

                                        Splice may also have documentation for this. So it'd be worth checking their resources as well.

                                        1. AAsi Tal @Asi_Tal
                                            2024-08-13 19:50:30.867Z

                                            Thanks Kitch,
                                            This is what I did in a few days with SoundFlow.. and its on my touch screen
                                            Works unbelievable

                                            1. Kitch Membery @Kitch2024-08-13 19:53:45.222Z

                                              That is awesome, @Asi_Tal!

                                              Is there any reason you are using Open Stage Control for this? You could build this in SoundFlow's Surface editor. That way you'd be able to display it on an iOS or Android device.

                                              1. AAsi Tal @Asi_Tal
                                                  2024-08-13 20:16:17.417Z

                                                  well I wanted to just plug my 24" screen to the computer and roll with it... and open stage control runs from the Mac Studio. I don't want use a device based on iSO or Android it always makes problems with the connections and the wifi (from my years of using this) etc .
                                                  Also I programed this originally for cubase which is my main DAW so far... I just replaced a few of the triggers.
                                                  we see if I could overcome a few difficulties with Protools and midi/instruments and I'll start producing only in PT. Seriously if they (PT) could make a few upgrades for producing like in cubase or Ableton (midi , samplers instruments it would be by far the DAW for everyone.
                                                  @kitch

                                                  1. Kitch Membery @Kitch2024-08-13 20:19:13.544Z

                                                    Sounds great man... Nice work on the setup. Be sure to tag us if you make any Social media posts about it ;-). The community loves this kind of stuff!

                                                    1. AAsi Tal @Asi_Tal
                                                        2024-08-13 20:21:40.080Z

                                                        Of course!

                                                  2. In reply toAsi_Tal:
                                                    Kitch Membery @Kitch2024-08-13 19:54:22.419Z

                                                    Looks like a lot of work went into this. :-)