No internet connection
  1. Home
  2. How to

Using Soundfow and Streamdeck to record arm tracks in Pro Tools?

By garret farrell @garret_farrell
    2021-06-22 13:24:51.857Z

    Hi All

    My scripting skills are rubbish but I was wondering if someone could help me with something please? I wonder is it possible to record arm tracks in pro tools using soundflow and a stream? I have 10 tracks that are always labeled the same in each session that are being fed from a multi out sampler and I want to be able to press a button on the stream deck to arm each one individually. I have pro tools set up to drop the previously armed track out of record when a new one is armed. This would really speed up my workflow if anyone could help or point me in the right direction!

    Thanks

    Garret

    • 6 replies
    1. samuel henriques @samuel_henriques
        2021-06-22 14:08:01.213Z

        Hello @garret_farrell,

        Just make 10 scripts each with this code and change the track name.

        const trackName = "Track 1"
        
        
        sf.ui.proTools.trackGetByName({ name: trackName }).track.buttons.whoseTitle.is("Track Record Enable").first.elementClick();
        
        

        Alternatively you could make a template.
        Christian explains very well how it's done here.
        https://www.facebook.com/soundflow.org/videos/soundflow-41-webinar-templates-presets/633065107406660/

        Let me know if you get stuck

        1. Ggarret farrell @garret_farrell
            2021-06-22 17:44:13.347Z

            Wow Thank you so much Samuel! I will try this method and check also out the video about templates.

            Thank you again!

            Garret

            1. samuel henriques @samuel_henriques
                2021-06-23 09:56:13.673Z

                I completely forgot, Christian made a deck that looks perfect for this. It was 5 tracks, but he made a 10 track version:
                Track Control Deck 10x3

                Check it out in the store.

            2. A
              In reply togarret_farrell:
              Andrew Downes @Andrew_Downes
                2021-06-23 04:09:12.536Z

                Hi There
                This is the way I have done it for specific tracks, I used wildcards so the tracks can have version numbers which are ignored by the script.

                
                    function matchWildcard(str, rule) {
                        var escapeRegex = (str) => str.replace(/([.*+?^=!:${}()|\[\]\/\\])/g, "\\$1");
                        return new RegExp("^" + rule.split("*").map(escapeRegex).join(".*") + "$", "i").test(str);
                    }
                
                    var allNames = sf.ui.proTools.trackNames;
                
                    var namesToSelect = allNames.filter(n => trackNames.some(tn => matchWildcard(n, tn)));
                
                    sf.ui.proTools.trackSelectByName({
                        names: namesToSelect,
                        deselectOthers: true,
                    });
                }
                
                selectTracksByNameWithWildcard([
                    '*Mix*',
                    'EMT*',
                    'SPX 990*',
                    'Aphex Type B*',
                    'SDE 2500*',
                    'Sony D7*',
                ]);
                
                sf.keyboard.press({
                    keys: "shift+r",
                });
                1. In reply togarret_farrell:

                  You may also want to check out the paid app - Pro Tools Track Control Deck - which allows you to arm, solo, mute, and turn on a track's input. It has a 10 track template.

                  1. G
                    In reply togarret_farrell:
                    garret farrell @garret_farrell
                      2021-07-03 10:58:23.749Z

                      I just wanted to thank everyone on this thread for their input. I only yesterday had a chance to jump back into this. I went with Samuel's script and it worked really well! I did try to make a template of it but I was unable to get it to recognise different tracks.(again just out of my skillset). But just making new scripts for each track worked really well and I now have all my tracks dropping in and out of record!
                      The other suggestions all look fantastic as well.
                      Thank you all very much!