No internet connection
  1. Home
  2. How to

Tap Tempo. Is it possible to have a stream deck key tap the tempo in protools?

By Bergatron Music @Bergatron_Music
    2020-10-16 02:51:20.527Z

    I'm sure I'm way late on this. Anyone figured out how to do this yet? I can get to the tempo highlighting, but what next?

    Solved in post #3, click to view
    • 2 replies
    1. Kitch Membery @Kitch2020-10-16 06:26:13.038Z

      Hi @Bergatron_Music,

      Something like this should do the job :-)

      const conductorBtn = sf.ui.proTools.mainWindow.midiControlCluster.buttons.whoseTitle.is('Conductor Track').first;
      
      if (conductorBtn.value.invalidate().value === "Selected") {
          conductorBtn.elementClick();
      }
      
      const midiCluster = sf.ui.proTools.mainWindow.midiControlCluster;
      
      if (!midiCluster.exists) {
          sf.ui.proTools.appActivateMainWindow();
      
          sf.ui.proTools.mainWindow.buttons.whoseTitle.is('ToolbarOptionsMenu').first.popupMenuSelect({
              menuPath: ["MIDI Controls"],
          });
          midiCluster.elementWaitFor();
      
          sf.ui.proTools.appActivateMainWindow();
      }
      
      const tempoValueField = sf.ui.proTools.mainWindow.midiControlCluster.textFields.whoseTitle.is('Tempo value').first;
      
      if (!tempoValueField.isFocused) {
          tempoValueField.elementClick();
      }
      
      sf.keyboard.press({
          keys: 't',
      });
      
      1. In reply toBergatron_Music:
        Bergatron Music @Bergatron_Music
          2020-10-16 16:00:24.968Z

          Kitch, my man!

          This works fantastic! THANK YOU!

          ReplySolution