[PD] Turn off env~?

Miller Puckette mpuckett at man104-1.ucsd.edu
Fri Aug 2 04:48:44 CEST 2002


The VU meter is probably taking many times as much CPU timeas the env~, so
a spigot at env~'s output would probably be good enough; but you can even 
turn off the env~ itself by putting it in a subpatch and using "switch~" to
turn the subpatch off.

cheers
Miller

On Thu, Aug 01, 2002 at 08:36:09PM -0600, David Sabine wrote:
> Hello all,
> 
> I assume that if env~ exists in a patch, it is active whether or not a signal is passing through it.  This means that env~ is using CPU even though it's input might be "zero"?
> 
> Is there some method of turning off env~ or perhaps change its window size dynamically so that it's not taking up so much CPU?
> 
> For example, I'm using [env~ 8192] to send a level to VU meters.  I've then created a spigot-like object that will cut the signal going to that [env~] in an attempt to save CPU power so that PD doesn't have to continually update the VU meters.  Like this:
> 
> [osc~] > [*~ 1/0 (depending on toggle)] > [env~ 8192] > [- 100] > [Vu meter]
> 
> However, even if the [osc~] is multiplied by "zero", CPU usage is still too high because [env~ 8192] is computing all the time (zero x whatever? over and over 5 times per second).  Is there some method of actually 'turning-off' the [env~] or perhaps change its windows size to [env~ 131072] for example when I don't need to see the VU?
> 
> Thanks
> Dave S



More information about the Pd-list mailing list