Forums > MaxMSP

starting poly~ in muted state???


zh
April 27, 2010 | 11:37 am

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)

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.

– Pasted Max Patch, click to expand. –

April 27, 2010 | 1:29 pm

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
April 27, 2010 | 4:45 pm

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


April 27, 2010 | 5:40 pm

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

-110


April 27, 2010 | 10:47 pm

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


Viewing 5 posts - 1 through 5 (of 5 total)