you can make _very_ elegant super-readable control flow with the use of [route] and friends.
IOhannes
I find this particular subject very interesting I was recently working on a patch using [expr] found the lack of being able to send the results of multiple 'if' statements to the same outlet frustrating - I am also used to using the Max/MSP [if] object for these sorts of tasks can point me to some examples of using [route] and friends as control statements to check out? thanks! KIM
On Sun, 26 Sep 2010, Kim Cascone wrote:
I find this particular subject very interesting I was recently working on a patch using [expr] found the lack of being able to send the results of multiple 'if' statements to the same outlet frustrating - I am also used to using the Max/MSP [if] object for these sorts of tasks can point me to some examples of using [route] and friends as control statements to check out? thanks! KIM
I don't understand "using [route] as a control statement". It already is a control statement.
Maybe you should provide us with an example of problem-solving that you think is very easy to do with [if] and very hard to think of without. Well, or whichever problem you had in mind when you wrote this above.
| Mathieu Bouchard ------------------------------ Villeray, Montréal, QC
--- On Sun, 9/26/10, Kim Cascone kim@anechoicmedia.com wrote:
From: Kim Cascone kim@anechoicmedia.com Subject: Re: [PD] jMax Phoenix To: "pd-list" pd-list@iem.at Cc: zmoelnig@iem.at Date: Sunday, September 26, 2010, 2:52 PM
you can make _very_ elegant super-readable control
flow with the use of
[route] and friends.
IOhannes
I find this particular subject very interesting I was recently working on a patch using [expr] found the lack of being able to send the results of multiple 'if' statements to the same outlet frustrating - I am also used
The reason [expr] doesn't work well in that case is that you must nest multiple if statements, which quickly makes the args hard to decipher.
to using the Max/MSP [if] object for these sorts of tasks can point me to some examples of using [route] and friends as control statements to check out? thanks! KIM
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Jonathan Wilkes wrote:
--- On Sun, 9/26/10, Kim Cascone kim@anechoicmedia.com wrote:
From: Kim Cascone kim@anechoicmedia.com Subject: Re: [PD] jMax Phoenix To: "pd-list" pd-list@iem.at Cc: zmoelnig@iem.at Date: Sunday, September 26, 2010, 2:52 PM
you can make _very_ elegant super-readable control
flow with the use of
[route] and friends.
IOhannes
I find this particular subject very interesting I was recently working on a patch using [expr] found the lack of being able to send the results of multiple 'if' statements to the same outlet frustrating - I am also used
The reason [expr] doesn't work well in that case is that you must nest multiple if statements, which quickly makes the args hard to decipher.
yes I found this out by trying if, then-if, else-if (it would be nice if the help patch would be updated/improved a little with more examples) but also found it hard to decipher when coming back to it later even with copious comments so I used multiple if statements and then tried to deal with the multiple outputs which I did but can't remember off hand how will post the patch at some point I'm on tour now so busy with other things :)
to using the Max/MSP [if] object for these sorts of tasks can point me to some examples of using [route] and friends as control statements to check out? thanks! KIM
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list