Learn RX Denoise
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();
- Christian Scheuer @chrscheuer2018-07-14 01:18:11.024Z
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.- NN Leyers @NickLeyers_old_acc
Unfortunately, not the solution..
Christian Scheuer @chrscheuer2018-07-30 18:23:32.179Z
@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-reportsWhen 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();
Christian Scheuer @chrscheuer2018-08-19 09:59:40.379Z
@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.
- In reply toNickLeyers_old_acc⬆:Christian Scheuer @chrscheuer2018-07-14 01:19:53.278Z
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?
- NN Leyers @NickLeyers_old_acc
correct
- In reply toNickLeyers_old_acc⬆:Christian Scheuer @chrscheuer2018-08-20 19:46:27.644Z
Closing this due to a lack of activity. Please reopen and provide more details if you still encounter this problem.
- Progress