[PD] setting variables within an if condition in [expr] or [fexpr~]

Georg Holzmann grhPD at gmx.at
Mon Apr 3 18:04:17 CEST 2006


Hallo!

> the algorithm i'm trying to implement using fexpr~ requires some kind
> of variable, to store whether it's current output is on or off (1 or
> 0) - it needs to act differently in each case. ideally i'd like to
> simply put the output back into another input so i can just query its
> current state, but obviously this causes dsp loop errors, and i cant
> use send~ and recieve~ to do this because it delays it by a block, so
> on a sample by sample basis its completely out of date by the time it
> comes back as one of the inputs..
hm ... could you describe the algorithm you want to implement a little 
bit more?
If you want to do sample by sample processing fexpr~ is usually a little 
bit slow ... (at least in my experiments)

> so i'm guessing i need to use a variable or [value]. but can i set
> this within an fexpr~ object, and will it update fast enough (if it
> takes a block to update then its no good).
as messages are calculate once per block I think that's not possible ...

LG
Georg




More information about the Pd-list mailing list