is this any good?
[ fexpr~ if($x1[0]>$y1[-1], $x1[0], $y1[-1]) ]
not sure how to reset it though...
gr,
Tim


2018-02-02 15:58 GMT+01:00 martin brinkmann <mnb@martin-brinkmann.de>:
On 02/02/18 14:52, Roman Haefeli wrote:
> Can this be done in vanilla? I'd like to output the maximum value of
> the last N input samples in the signal domain. Ideally N would be
> adjustable. 

i have used cascaded samphold~ objects in a similar situation.
though n is not exactly adjustable this way...

for bigger n (> blocksize) the bang~/tabread-solution is probably better.


_______________________________________________
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list