Hi there, I have a little problem:
I am reading some serial data in range 0-1023 from an IR sensor connected to Arduino . What I wanna do is to split this range into smaller ranges i.e. 0-100, 100-200, 200-300 and so on, and I need every single range to generate a single bang. Using multiple spigots, moses or if statements may solve my problem but that doesn't look like a good way. Anyone tried this before or any ideas ?
Thank you.
/ 100 int change sel 0 1 2 3 4 5 6 7 8 9
cheers c
Le 16/10/2014 18:44, Arda Eden a écrit :
Hi there, I have a little problem:
I am reading some serial data in range 0-1023 from an IR sensor connected to Arduino . What I wanna do is to split this range into smaller ranges i.e. 0-100, 100-200, 200-300 and so on, and I need every single range to generate a single bang. Using multiple spigots, moses or if statements may solve my problem but that doesn't look like a good way. Anyone tried this before or any ideas ?
Thank you.
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
:) thnx.
On 16 Oct 2014, at 19:50, Cyrille Henry ch@chnry.net wrote:
/ 100 int change sel 0 1 2 3 4 5 6 7 8 9
cheers c
Le 16/10/2014 18:44, Arda Eden a écrit :
Hi there, I have a little problem:
I am reading some serial data in range 0-1023 from an IR sensor connected to Arduino . What I wanna do is to split this range into smaller ranges i.e. 0-100, 100-200, 200-300 and so on, and I need every single range to generate a single bang. Using multiple spigots, moses or if statements may solve my problem but that doesn't look like a good way. Anyone tried this before or any ideas ?
Thank you.
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Or better still, replace [/ 100] and [int] with [div 100]
-Jonathan
On Thursday, October 16, 2014 12:50 PM, Cyrille Henry ch@chnry.net wrote:
/ 100 int change sel 0 1 2 3 4 5 6 7 8 9
cheers c
Le 16/10/2014 18:44, Arda Eden a écrit :
Hi there, I have a little problem:
I am reading some serial data in range 0-1023 from an IR sensor connected to Arduino . What I wanna do is to split this range into smaller ranges i.e. 0-100, 100-200, 200-300 and so on, and I need every single range to generate a single bang. Using multiple spigots, moses or if statements may solve my problem but that doesn't look like a good way. Anyone tried this before or any ideas ?
Thank you.
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
where is this documented ? I never saw this object, and can't find it in the doc Help file point to otherbinops-help.pd and [div] isn't mentioned there
Thanks for bringing it to me, but it's a shame that such a feature is hidden...
do it yourself http://antoine.villeret.free.fr
2014-10-16 18:59 GMT+02:00 Jonathan Wilkes via Pd-list pd-list@lists.iem.at:
Or better still, replace [/ 100] and [int] with [div 100]
-Jonathan
On Thursday, October 16, 2014 12:50 PM, Cyrille Henry ch@chnry.net wrote:
/ 100 int change sel 0 1 2 3 4 5 6 7 8 9
cheers c
Le 16/10/2014 18:44, Arda Eden a écrit :
Hi there, I have a little problem:
I am reading some serial data in range 0-1023 from an IR sensor connected to Arduino . What I wanna do is to split this range into smaller ranges i.e. 0-100, 100-200, 200-300 and so on, and I need every single range to generate a single bang. Using multiple spigots, moses or if statements may solve my problem but that doesn't look like a good way. Anyone tried this before or any ideas ?
Thank you.
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
In help-intro.pd (under "math").
see also "mod".
cheers Miller
On Thu, Oct 16, 2014 at 07:10:01PM +0200, Antoine Villeret wrote:
where is this documented ? I never saw this object, and can't find it in the doc Help file point to otherbinops-help.pd and [div] isn't mentioned there
Thanks for bringing it to me, but it's a shame that such a feature is hidden...
A
do it yourself http://antoine.villeret.free.fr
2014-10-16 18:59 GMT+02:00 Jonathan Wilkes via Pd-list pd-list@lists.iem.at:
Or better still, replace [/ 100] and [int] with [div 100]
-Jonathan
On Thursday, October 16, 2014 12:50 PM, Cyrille Henry ch@chnry.net wrote:
/ 100 int change sel 0 1 2 3 4 5 6 7 8 9
cheers c
Le 16/10/2014 18:44, Arda Eden a écrit :
Hi there, I have a little problem:
I am reading some serial data in range 0-1023 from an IR sensor connected to Arduino . What I wanna do is to split this range into smaller ranges i.e. 0-100, 100-200, 200-300 and so on, and I need every single range to generate a single bang. Using multiple spigots, moses or if statements may solve my problem but that doesn't look like a good way. Anyone tried this before or any ideas ?
Thank you.
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list