Page 1 of 1

Suspend audio processing from script?

Posted: 12 Dec 2024, 17:04
by woodslanding
I have a script that backs up my file tree of presets and patches, since I now have my wkp running on two different machines, and need to keep both instances synced. It works great. The only problem is that I get a huge string of audio dropout errors when I run it. And of course the script won't run without PLAY enabled.

The script, and a few buttons to run it, are the only thing in the wkp, although I would like to include this patch in the big wkp.

Is there a way to tell usine to turn off audio processing while the script is running? Or to have it run a script even when PLAY is off?? I am not going to try to backup my files while I'm playing!

It seems to still work, so no huge deal. I just don't like to get errors. And I always wonder if there are side-effects from them.

Thanks!
-e

Re: Suspend audio processing from script?

Posted: 12 Dec 2024, 18:01
by woodslanding
Well, I moved everything to processIdle, and now I don't get errors.

However, it takes about 15 seconds for it to run, in an otherwise empty wkp. It seems odd to me that usine would use so much processor when there are no actual audio objects....

Thoughts?

cheers,
-e
BACKUP.wkp
(160.75 KiB) Downloaded 654 times

Re: Suspend audio processing from script?

Posted: 22 Dec 2024, 09:21
by senso
hi,
You can try to call the backup process in the Callback procedure instead of the ProcessIDLE to avoid the messages.

Another soluce is to access to the main engine ON-OFF using the user objects see https://www.brainmodular.com/manuals/hh ... ne-objects
You can give a user address of the main on-off switch in the remote properties tab.

senso+++

Re: Suspend audio processing from script?

Posted: 24 Dec 2024, 20:45
by woodslanding
I thought the script could not run with the main engine off. My scripts don't usually. But if you turn off processing from within the script, the rest of the script will still run??

I will try it.

Re: Suspend audio processing from script?

Posted: 27 Dec 2024, 09:31
by senso
activate the option always-calculated in the rack and put the script inside this rack.

Re: Suspend audio processing from script?

Posted: 25 May 2025, 19:40
by woodslanding
Okay, I tried that. Took a while to circle back to this issue....

The rack has no audio inputs at all, and does no audio processing, but I still get audio dropout errors on it, if I use 'always calculated'.... even if global processing is turned off.

But it seems to work fine, so no big deal.