hello,
This abstraction should work like your external. So you can easilly use it on every platform...
But after more reflexion, i realize that the noise immunity is not very smart, since it is not constant over regarding the offset of the signal. i.e : if f a time variant function and k a constant, local_max(f) + k != local_max(f+k).
i would prefer the use of a constant threshold better than a threshold depending on the amplitude of the signal.
So, i don't think i'll include this abstraction on the mapping directory. unless someone have good arguments...
doing the same kind of analysis but with a constant threshold is just like using 2 mapping object : hysteresis and local_max. it's a pre-filtering technics, but with a "strange" filter. hysteresis is a very good noise reduction filter for noisy data... (i should develop more it's helpfile)
Cyrille
Loic Kessous a écrit :
Hi All,
I have an external that I made and use a lot (in fact I have several but this one is a priority for me now). I compiled it for os X, but I would be happy to use it also for MSW and even Linux. I will be glad to let others use it too, I talked with Cyril Henry and suggest me to add it to pd-extended so it will be compiled on the farm for all the platforms and included in the distribution. This external does the same thing as Cyril's [local_max] abstraction but use a different method for robustness to noisy signals and avoid inconvenient that can be introduce by pre-filtering. As it was easier to do it as an external than an abstraction, that what I did.
So can someone tell me how if it is possible and what I have to do for this.
loic
Pd-dev mailing list Pd-dev@iem.at http://lists.puredata.info/listinfo/pd-dev
#N canvas 266 108 411 523 10; #X obj 78 192 max; #X obj 58 357 <; #X obj 58 383 sel 1; #X msg 96 170 -1e+11; #X obj 92 423 f; #X obj 208 215 f; #X obj 58 115 t f f f b; #X obj 190 241 >; #X obj 78 234 t f f; #X obj 151 271 spigot; #X obj 92 448 outlet; #X obj 58 70 inlet; #X obj 249 70 inlet; #X obj 78 290 *; #X obj 249 111 $1; #X obj 249 132 / 100; #X obj 249 153 moses 0; #X msg 249 175 0.99; #X obj 256 91 loadbang; #X obj 249 199 f; #X obj 58 91 max 0; #X connect 0 0 8 0; #X connect 1 0 2 0; #X connect 2 0 3 0; #X connect 2 0 4 0; #X connect 3 0 0 1; #X connect 4 0 10 0; #X connect 5 0 7 1; #X connect 6 0 1 0; #X connect 6 1 0 0; #X connect 6 1 7 0; #X connect 6 2 5 1; #X connect 6 3 5 0; #X connect 7 0 9 1; #X connect 8 0 9 0; #X connect 8 0 13 0; #X connect 8 1 4 1; #X connect 9 0 0 1; #X connect 11 0 20 0; #X connect 12 0 14 0; #X connect 13 0 1 1; #X connect 14 0 15 0; #X connect 15 0 16 0; #X connect 16 0 17 0; #X connect 16 1 19 0; #X connect 17 0 19 0; #X connect 18 0 14 0; #X connect 19 0 13 1; #X connect 20 0 6 0;