Welcome to %s forums

BrainModular Users Forum

Login Register

Suspend audio processing from script?

I need help on a Patch
Post Reply
woodslanding
Member
Posts: 1327
Contact:

Suspend audio processing from script?

Unread post by woodslanding » 12 Dec 2024, 17:04

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
Custom Ryzen 5900x MATX build, Win10, Fireface UFX, touchscreen
Custom 2 manual midi keyboard
Usine, Kontakt, Reaktor, Synthmaster, Byome, Arturia, Soundtoys, Unify

woodslanding
Member
Posts: 1327
Contact:

Unread post by woodslanding » 12 Dec 2024, 18:01

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
Custom Ryzen 5900x MATX build, Win10, Fireface UFX, touchscreen
Custom 2 manual midi keyboard
Usine, Kontakt, Reaktor, Synthmaster, Byome, Arturia, Soundtoys, Unify

User avatar
senso
Site Admin
Posts: 4424
Location: France
Contact:

Unread post by senso » 22 Dec 2024, 09:21

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+++

woodslanding
Member
Posts: 1327
Contact:

Unread post by woodslanding » 24 Dec 2024, 20:45

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.
Custom Ryzen 5900x MATX build, Win10, Fireface UFX, touchscreen
Custom 2 manual midi keyboard
Usine, Kontakt, Reaktor, Synthmaster, Byome, Arturia, Soundtoys, Unify

User avatar
senso
Site Admin
Posts: 4424
Location: France
Contact:

Unread post by senso » 27 Dec 2024, 09:31

activate the option always-calculated in the rack and put the script inside this rack.

woodslanding
Member
Posts: 1327
Contact:

Unread post by woodslanding » 25 May 2025, 19:40

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.
Custom Ryzen 5900x MATX build, Win10, Fireface UFX, touchscreen
Custom 2 manual midi keyboard
Usine, Kontakt, Reaktor, Synthmaster, Byome, Arturia, Soundtoys, Unify

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 10 guests