HiSaturday, March 10, 2012 1:20 PM hi I had a question from a student that wants to do something special with X/Y values from a motion grid example. We are getting values from pdp_mgrid with a value of 4 for x and a value of 4 for y so there are obviously different combinations.
here's here question:
If x can equal 1,2,3,4 and y can equal 1,2,3,4
how to send a bang when
x=1 && y=1 BANG 1
x=1 && y=2 BANG 2
x=2 && y=1 BANG 3
x=2 && y=2 BANG 4
Need something that can easily have range changed x = 1-10 and y =1-10
Is there an eloquent way to do this in pure data? we have looked at gate, moses and split and they seem close but not spot on
thanks in advance
pp
Le 2012-03-10 à 18:23:00, Pagano, Patrick a écrit :
If x can equal 1,2,3,4 and y can equal 1,2,3,4 how to send a bang when x=1 && y=1 BANG 1 x=1 && y=2 BANG 2 x=2 && y=1 BANG 3 x=2 && y=2 BANG 4
if x<3 && y<3 then bang y*2+x-2
[moses 3] for x
[moses 3] for y
once you have computed y*2+x-2, use [sel 1 2 3 4] to turn them into bangs.
alternately, don't use moses, use y*4+x-4, now all your combinations are numbered from 1 to 16, and you can use [sel 1 2 5 6] to pick the four you're currently interested in, and you can later pick other combinations by changing the sel.
Whenever you change the range of x, change the multiplier of y and the subtracted constant.
| Mathieu BOUCHARD ----- téléphone : +1.514.383.3801 ----- Montréal, QC
is this possible to do with expr?
From: Mathieu Bouchard [matju@artengine.ca] Sent: Saturday, March 10, 2012 1:42 PM To: Pagano, Patrick Cc: pd-list@iem.at Subject: Re: [PD] question about moses/gate/split??
Le 2012-03-10 à 18:23:00, Pagano, Patrick a écrit :
If x can equal 1,2,3,4 and y can equal 1,2,3,4 how to send a bang when x=1 && y=1 BANG 1 x=1 && y=2 BANG 2 x=2 && y=1 BANG 3 x=2 && y=2 BANG 4
if x<3 && y<3 then bang y*2+x-2
[moses 3] for x
[moses 3] for y
once you have computed y*2+x-2, use [sel 1 2 3 4] to turn them into bangs.
alternately, don't use moses, use y*4+x-4, now all your combinations are numbered from 1 to 16, and you can use [sel 1 2 5 6] to pick the four you're currently interested in, and you can later pick other combinations by changing the sel.
Whenever you change the range of x, change the multiplier of y and the subtracted constant.
| Mathieu BOUCHARD ----- téléphone : +1.514.383.3801 ----- Montréal, QC
Not fully, because [expr] can't route input to different outlets based on some conditions. But it's trivial to do: [expr if($f1<3 && $f2<3,$f2*2+$f1-2,0)] | [sel 1 2 3 4]
-Jonathan ----- Original Message -----
From: "Pagano, Patrick" pat@digitalworlds.ufl.edu To: Mathieu Bouchard matju@artengine.ca Cc: "pd-list@iem.at" pd-list@iem.at Sent: Saturday, March 10, 2012 1:46 PM Subject: Re: [PD] question about moses/gate/split??
is this possible to do with expr?
From: Mathieu Bouchard [matju@artengine.ca] Sent: Saturday, March 10, 2012 1:42 PM To: Pagano, Patrick Cc: pd-list@iem.at Subject: Re: [PD] question about moses/gate/split??
Le 2012-03-10 à 18:23:00, Pagano, Patrick a écrit :
If x can equal 1,2,3,4 and y can equal 1,2,3,4 how to send a bang when x=1 && y=1 BANG 1 x=1 && y=2 BANG 2 x=2 && y=1 BANG 3 x=2 && y=2 BANG 4
if x<3 && y<3 then bang y*2+x-2
[moses 3] for x
[moses 3] for y
once you have computed y*2+x-2, use [sel 1 2 3 4] to turn them into bangs.
alternately, don't use moses, use y*4+x-4, now all your combinations are numbered from 1 to 16, and you can use [sel 1 2 5 6] to pick the four you're currently interested in, and you can later pick other combinations by changing the sel.
Whenever you change the range of x, change the multiplier of y and the subtracted constant.
______________________________________________________________________ | Mathieu BOUCHARD ----- téléphone : +1.514.383.3801 ----- Montréal, QC
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
My take attached.
On 10/03/12 19:23, Pagano, Patrick wrote:
HiSaturday, March 10, 2012 1:20 PM hi I had a question from a student that wants to do something special with X/Y values from a motion grid example. We are getting values from pdp_mgrid with a value of 4 for x and a value of 4 for y so there are obviously different combinations.
here's here question:
If x can equal 1,2,3,4 and y can equal 1,2,3,4
how to send a bang when
x=1 && y=1 BANG 1
x=1 && y=2 BANG 2
x=2 && y=1 BANG 3
x=2 && y=2 BANG 4
Need something that can easily have range changed x = 1-10 and y =1-10
Is there an eloquent way to do this in pure data? we have looked at gate, moses and split and they seem close but not spot on
thanks in advance
pp
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
If I understand correctly.. you need something like this?? [attachment] cheers
On Sat, Mar 10, 2012 at 5:45 PM, Lorenzo Sutton lorenzofsutton@gmail.comwrote:
My take attached.
On 10/03/12 19:23, Pagano, Patrick wrote:
HiSaturday, March 10, 2012 1:20 PM hi I had a question from a student that wants to do something special with X/Y values from a motion grid example. We are getting values from pdp_mgrid with a value of 4 for x and a value of 4 for y so there are obviously different combinations.
here's here question:
If x can equal 1,2,3,4 and y can equal 1,2,3,4
how to send a bang when
x=1 && y=1 BANG 1
x=1 && y=2 BANG 2
x=2 && y=1 BANG 3
x=2 && y=2 BANG 4
Need something that can easily have range changed x = 1-10 and y =1-10
Is there an eloquent way to do this in pure data? we have looked at gate, moses and split and they seem close but not spot on
thanks in advance
pp
______________________________**_________________ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/** listinfo/pd-list http://lists.puredata.info/listinfo/pd-list
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Thanks to everyone. This list is so helpful and generous this is what we cam up with, if anyone is interested! thanks again
pp ________________________________ From: pd-list-bounces@iem.at [pd-list-bounces@iem.at] on behalf of José Rafael Subía Valdez [jsubiavaldez@gmail.com] Sent: Saturday, March 10, 2012 5:17 PM To: pd-list@iem.at Subject: Re: [PD] question about moses/gate/split??
If I understand correctly.. you need something like this?? [attachment] cheers
On Sat, Mar 10, 2012 at 5:45 PM, Lorenzo Sutton <lorenzofsutton@gmail.commailto:lorenzofsutton@gmail.com> wrote: My take attached.
On 10/03/12 19:23, Pagano, Patrick wrote:
HiSaturday, March 10, 2012 1:20 PM hi I had a question from a student that wants to do something special with X/Y values from a motion grid example. We are getting values from pdp_mgrid with a value of 4 for x and a value of 4 for y so there are obviously different combinations.
here's here question:
If x can equal 1,2,3,4 and y can equal 1,2,3,4
how to send a bang when
x=1 && y=1 BANG 1
x=1 && y=2 BANG 2
x=2 && y=1 BANG 3
x=2 && y=2 BANG 4
Need something that can easily have range changed x = 1-10 and y =1-10
Is there an eloquent way to do this in pure data? we have looked at gate, moses and split and they seem close but not spot on
thanks in advance
pp
Pd-list@iem.atmailto:Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Pd-list@iem.atmailto:Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
-- Lic. José Rafael Subía Valdez
SoundArtist www.facebook.com/JRafaelSubiaValdezhttp://www.facebook.com/JRafaelSubiaValdez (Public Page) www.myspace.com/joserafaelsubiavaldezhttp://www.myspace.com/joserafaelsubiavaldez https://puredata.info/author/rafasubia www.redce.orghttp://www.redce.org