No internet connection
  1. Home
  2. How to

Learn RX Denoise

By N Leyers @NickLeyers_old_acc
    2018-07-10 09:01:04.405Z2018-07-14 01:18:28.592Z

    Hi there

    I'm stuck with a script. What is does is selecting RX denoise, click the learn button, preview the selected audio and stop.

    • Error is in the 'click learn button'. Probably something with brackets? :-)
    • Extra: now, it will loop the audio 3 seconds. Better even is that the selected audio is played 1 loop because the length will always be a variable. Ideas?
    //Selecteer audiosuite window
    var asWin = sf.ui.proTools.getAudioSuiteWindow("RX 6 Spectral De-noise");
    
    //Click learn button
    asWin.getFirstWithTitleContaining("Learn").elementClick();
    
    //Preview audiosuite
    sf.ui.proTools.audioSuitePreviewCurrent();
    
    //Hold 3 sec
    sf.wait({ intervalMs: 3000 });
    
    //Wait for audioslection to be played once
    
    
    //Stop preview
    sf.ui.proTools.audioSuitePreviewCurrent();
    
    
    • 7 replies
    1. Hi @NickLeyers

      Sorry for the late reply.
      I think the problem is that the button is called "Analyze" internally in PT, even if it reads as "Learn". So try putting in "Analyze" instead of "Learn" and you should be good to go.

      1. NN Leyers @NickLeyers_old_acc
          2018-07-30 17:39:09.988Z

          Unfortunately, not the solution..

          1. @NickLeyers please be more specific. We can't do much with "doesn't work" or "not the solution". You have not specified specifically how it doesn't work for you, which makes it hard to help.
            Please read the following about what we usually need in order to be able to help:
            https://forum.soundflow.org/-6/how-to-file-bug-reports

            When I'm running the following code, it does exactly as requested - it clicks the Learn button.

            var asWin = sf.ui.proTools.getAudioSuiteWindow("RX 6 Spectral De-noise");
            
            //Click learn button
            asWin.getFirstWithTitleContaining("Analyze").elementClick();
            
            1. @NickLeyers is this still a problem for you? I'd like to close this issue if it's fixed. We can't move on it without further details from you, since everything seems to work as expected here.

        • By the length, you mean that it would be better if it took the length of the current selection in the Edit window and used that to calculate how long it should wait?

          1. NN Leyers @NickLeyers_old_acc
              2018-07-30 17:24:28.361Z

              correct

            • Closing this due to a lack of activity. Please reopen and provide more details if you still encounter this problem.

              1. Progress
              2. @chrscheuer closed this topic 2018-08-20 19:46:30.859Z.