starting poly~ in muted state???

zh's icon

is there any way of having an instance of a poly~ muted when a patch loads?
something like an @mute 1 argument would be perfect...

the patch is a BPatcher, meant for handy switch-cpu-on-and-off for all my patches. (not posting any of the subpatchers here because they're irrelevant for this question i think)

Max Patch
Copy patch and select New From Clipboard in Max.

i'm currently just sending all my poly~s a loadbang message to mute them, but it's not working, so when i turn audio on just after loading, the CPU is huge and I have to turn them all off manually.

Emmanuel Jourdan's icon

you don't need to send threadcount 0, it's the default behavior. IMHO, the simplest way of initializing mute state is to have a loadmess mute 1 connected to a thispoly~ object within the poly's abstraction.

zh's icon

thanks guys.
i'd forgotten all about thispoly~ for some reason... that sorted it.

Roman Thilenius's icon

if you loadbang it to muted state, it will not turn on, as loadbang comes before signal.

-110

Emmanuel Jourdan's icon

@raja: yep basically if you don't do anything it will create as many thread as you have cores.