[PD] Is there a 'switch' object?

Eric Skogen eskogen at usfamily.net
Fri Apr 30 15:35:34 CEST 2004


>theres surely a dozen more ways to do this, but a toggle & a pair of spigots fed with == 0 and == 1//
>
>  
>
nice. using the built in [==] makes a lot more sense than the [invert] 
object i was using...

>suppose you have two subpatches both heavily taxing the cpu with audio-rate signal processing, but due to your switch, you only want one of them on at once. is there a way to selectively disable dsp on a subpatch basis? i saw something in the help files about a similar trick for blocksize, but perhaps i havent dug deep enough to into the scheduler code or help files to know if something like a simple toggle .x40203 DSP 0 method exists..
>  
>
for this, try [switch~], which serves the function of "switch"ing on and 
off DSP for a subpatch. send it a toggle.

somewhere i remember seeing an abstraction which would detect when the 
inlet~ level is quiet and [switch~] off DSP at that time, and turn it on 
again when it gets more level ... i thought it was a good idea, as long 
as there's some envelope to avoid clicks. can't find the abstraction now 
though...

e




More information about the Pd-list mailing list