Hello
I need a object or an abstraction that send a unique and single bang when a incoming number reach certain defined value and do nothing while this incoming number varies in proximities of the desired value, but when incoming number return to 0 the process is reset and start again. By the way, my incoming number is an analog input from arduino board.
anybody knows if there is and object to do that, or wich object i can use to build a patch to do it?
thanks!
How about this:
#N canvas 0 0 445 233 10; #X obj 40 31 inlet; #X obj 40 95 t b b; #X obj 67 160 spigot 1; #X msg 132 143 0; #X obj 40 58 sel $1 0; #X msg 112 113 1; #X obj 67 187 outlet; #X text 101 34 number 0 does a reset; #X text 101 19 1st argument is the number that sends one single bang ; #X connect 0 0 4 0; #X connect 1 0 3 0; #X connect 1 1 2 0; #X connect 2 0 6 0; #X connect 3 0 2 1; #X connect 4 0 1 0; #X connect 4 1 5 0; #X connect 5 0 2 1;
Hope that's what you're looking for!
Cheers, Ingo
Von: pd-list-bounces@iem.at [mailto:pd-list-bounces@iem.at] Im Auftrag von FernandoG Gesendet: Sonntag, 5. Juni 2011 08:49 An: pd-list@iem.at Betreff: [PD] which object to use to resolve my problem?
Hello
I need a object or an abstraction that send a unique and single bang when a incoming number reach certain defined value and do nothing while this incoming number varies in proximities of the desired value, but when incoming number return to 0 the process is reset and start again. By the way, my incoming number is an analog input from arduino board.
anybody knows if there is and object to do that, or wich object i can use to build a patch to do it?
thanks!
Thanks guys!
Ingo, the patch its just what i need :)
best
2011/6/5 Ingo ingo@miamiwave.com
How about this:
#N canvas 0 0 445 233 10; #X obj 40 31 inlet; #X obj 40 95 t b b; #X obj 67 160 spigot 1; #X msg 132 143 0; #X obj 40 58 sel $1 0; #X msg 112 113 1; #X obj 67 187 outlet; #X text 101 34 number 0 does a reset; #X text 101 19 1st argument is the number that sends one single bang ; #X connect 0 0 4 0; #X connect 1 0 3 0; #X connect 1 1 2 0; #X connect 2 0 6 0; #X connect 3 0 2 1; #X connect 4 0 1 0; #X connect 4 1 5 0; #X connect 5 0 2 1;
Hope that's what you're looking for!
Cheers, Ingo
Von: pd-list-bounces@iem.at [mailto:pd-list-bounces@iem.at] Im Auftrag von FernandoG Gesendet: Sonntag, 5. Juni 2011 08:49 An: pd-list@iem.at Betreff: [PD] which object to use to resolve my problem?
Hello
I need a object or an abstraction that send a unique and single bang when a incoming number reach certain defined value and do nothing while this incoming number varies in proximities of the desired value, but when incoming number return to 0 the process is reset and start again. By the way, my incoming number is an analog input from arduino board.
anybody knows if there is and object to do that, or wich object i can use to build a patch to do it?
thanks!
I would also recommend that you use the spirit_of_pall_thayer abstractions in the "Concerning the Spiritual in Code" package.
http://pallthayer.dyndns.org/spiritual_code
On Mon, Jun 6, 2011 at 1:28 PM, FernandoG dataferx@gmail.com wrote:
Thanks guys!
Ingo, the patch its just what i need :)
best
2011/6/5 Ingo ingo@miamiwave.com
How about this:
#N canvas 0 0 445 233 10; #X obj 40 31 inlet; #X obj 40 95 t b b; #X obj 67 160 spigot 1; #X msg 132 143 0; #X obj 40 58 sel $1 0; #X msg 112 113 1; #X obj 67 187 outlet; #X text 101 34 number 0 does a reset; #X text 101 19 1st argument is the number that sends one single bang ; #X connect 0 0 4 0; #X connect 1 0 3 0; #X connect 1 1 2 0; #X connect 2 0 6 0; #X connect 3 0 2 1; #X connect 4 0 1 0; #X connect 4 1 5 0; #X connect 5 0 2 1;
Hope that's what you're looking for!
Cheers, Ingo
Von: pd-list-bounces@iem.at [mailto:pd-list-bounces@iem.at] Im Auftrag von FernandoG Gesendet: Sonntag, 5. Juni 2011 08:49 An: pd-list@iem.at Betreff: [PD] which object to use to resolve my problem?
Hello
I need a object or an abstraction that send a unique and single bang when a incoming number reach certain defined value and do nothing while this incoming number varies in proximities of the desired value, but when incoming number return to 0 the process is reset and start again. By the way, my incoming number is an analog input from arduino board.
anybody knows if there is and object to do that, or wich object i can use to build a patch to do it?
thanks!
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
like this?
J
On Sat, Jun 4, 2011 at 11:48 PM, FernandoG dataferx@gmail.com wrote:
Hello
I need a object or an abstraction that send a unique and single bang when a incoming number reach certain defined value and do nothing while this incoming number varies in proximities of the desired value, but when incoming number return to 0 the process is reset and start again. By the way, my incoming number is an analog input from arduino board.
anybody knows if there is and object to do that, or wich object i can use to build a patch to do it?
thanks!
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list