No internet connection
  1. Home
  2. How to

How to control Pro Tools faders from any MIDI device

By samuel henriques @samuel_henriques
    2020-08-28 21:36:57.219Z

    Hello,
    The article "How to control Pro Tools faders from any MIDI device" on soundflow's documents looks pretty simple. How do I control the faders using the faders of a Soundflow surface ? Or the Fader bank? I understand this is not the correct controller, not being able to know where the fader is but, is this possible?

    Thank you

    Solved in post #5, click to view
    • 9 replies
    1. Christian Scheuer @chrscheuer2020-08-31 08:15:07.328Z2020-08-31 08:25:39.720Z

      There's a bit more to it, but you can start with the following script:

      var value = Math.floor(event.arguments.value * 127);
      
      sf.midi.huiFader({
          faderNum: 1,
          value: value,
          touchAndRelease: true,
      });
      

      Have this script in the same package as your surface. Then, for your fader, set the On Touch Command to the script above.

      Also make sure to follow the instructions from the article on how to set up the SoundFlow HUI peripheral in PT.

      Now you can control the 1st HUI fader from a surface.

      1. Note that in this example we're sending touch down, touch move, touch up events for each change of the value.
        The better implementation would be to simulate touch down when you actually touch down on the fader, but that's a bit more involved, so I thought you should start with the above example and get that working first.

        1. samuel henriques @samuel_henriques
            2020-08-31 18:55:59.904Z

            Hello Chistian,
            thank you for the reply. This kinda works, on automation write mode only. I put your code on the On Value Command instead and a "scroll into view" script on the On Touch Command.
            This will bank the first fader to the selected track, when I touch the surface fader.
            Funny for now, might become useful....

            1. Nice progress!

              To get better results, run this in your On Touch Start command:

              sf.midi.huiFaderTouch({
                  faderNum: 1,
                  value: true,
              });
              

              This in the Value command:

              var value = Math.floor(event.arguments.value * 127);
              
              sf.midi.huiFader({
                  faderNum: 1,
                  value: value,
              });
              

              And this in On Touch End:

              sf.midi.huiFaderTouch({
                  faderNum: 1,
                  value: false,
              });
              
              ReplySolution
              1. samuel henriques @samuel_henriques
                  2020-08-31 20:03:10.102Z

                  yep, much better👍
                  now just need a way to bank to selected track....Would be ice to bank the selected track without changing the position of tracks on edit /mix window.

                  1. Great!
                    Unfortunately, I don't think that's possible - but let us know if you find a way :)

                    1. samuel henriques @samuel_henriques
                        2020-08-31 20:59:19.921Z

                        I don't have a controller to test this but avid control app behaviour give some clues.
                        Pro tools has this options:

                        When edit and mix window follows bank selection are off I can scroll tracks on the avid control app and the tracks don't move.
                        I'm thinking there might be another command to let pro tools bank without scroll to view...

                        1. Yea, but that command is likely in EUCON, which we cannot access currently.

              2. In reply tochrscheuer⬆:
                AAsi Tal @Asi_Tal
                  2024-08-15 09:01:53.172Z

                  Hey,, Is there any way to control volume fader of a specific track name with midi cc ?