No internet connection
  1. Home
  2. How to

Ableton Live 11 freeze/unfreeze

By Matteo Zedda @Matteo_Zedda
    2022-01-25 12:27:45.899Z

    Hello, I'm new to this and was trying to setup a macro/script that allows me Freeze and Unfreeze a track in Ableton.
    I managed to setup the macro that freeze the track using the "click menu item" action, but as it changes the name I can't use the macro as a toggle button.
    Is there a way to do this?
    Also, when you select multiple tracks, the menu item automatically put the plural "s" on the word "track" and the macro doesn't work.
    Hope I was clear, looking for your advices!

    Solved in post #2, click to view
    • 8 replies
    1. Hey @Matteo_Zedda, welcome to SoundFlow!

      Give this a shot:

      function freezeUnfreezeTrack() {
          const menuItem = sf.ui.abletonLive.getMenuItem('Edit').children.first.children.filter(c => {
              return c.title.value.match(/[Un]?Freeze Track[s]?/i);
          })[0];
      
          menuItem && menuItem.elementClick();
      }
      
      freezeUnfreezeTrack();
      
      Reply1 LikeSolution
      1. MMatteo Zedda @Matteo_Zedda
          2022-01-25 20:21:25.469Z

          Also this works!
          Is it possible to setup the "s" plural thing also for the "Flatten Track(s)" command?

          1. This should do!

            function flattenTrack() {
                const menuItem = sf.ui.abletonLive.getMenuItem('Edit').children.first.children.filter(c => {
                    return c.title.value.match(/Flatten Track[s]?/i);
                })[0];
            
                menuItem && menuItem.elementClick();
            }
            
            flattenTrack();
            
            1. MMatteo Zedda @Matteo_Zedda
                2022-01-26 21:11:42.383Z

                Thanks a lot!

                1. JJohn Frame @John_Frame
                    2022-05-12 23:11:15.615Z

                    Hey Newbie here but where does this code go? Is this an AppleScript that needs to be called? Thanks!

                    1. Hey @John_Frame, welcome to SoundFlow!

                      Check out the following video to learn how to utilize scripts from the forum: https://www.youtube.com/watch?v=3FQrVMNck-8

                      1. JJohn Frame @John_Frame
                          2022-05-13 16:29:07.929Z

                          Thanks! That helped. I had a quick follow-up question that I couldn't find in the Forum...what programming language is used in Soundflow, is it custom?