Hi
I'm getting back into PD after a long time. Sorry if the following is either obvious, obviously impossible, unclear, or the wrong way to go about things.
I have an abstraction that I'd like to send different data through the same inlet, say param1=0, param2=3. Taking the abstraction part out of the equation, I guess I need to parse a list based on the first element.
Here's what I have, which doesn't work:
|param1 0( |param2 3( |_______________| | | select param1 param2 | | | | |print p1| |print p2|
How would I go about that? I'm in vanilla...
Atte
On Wed, Sep 12, 2018, at 7:07 PM, Atte via Pd-list wrote:
Hi
I'm getting back into PD after a long time. Sorry if the following is either obvious, obviously impossible, unclear, or the wrong way to go about things.
I have an abstraction that I'd like to send different data through the same inlet, say param1=0, param2=3. Taking the abstraction part out of the equation, I guess I need to parse a list based on the first element.
Here's what I have, which doesn't work:
|param1 0( |param2 3( |_______________| | | select param1 param2 | | | | |print p1| |print p2|
How would I go about that? I'm in vanilla...
A really simple solution is to use [route] instead of [select].
Another way to do it is to store the parameter value in something that [select] will trigger, like [value].
The best solution might depend on what you are doing before and after.
Cheers
Atte
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
On Wed, 12 Sep 2018 19:28:52 +0200 Kaj Ailomaa ailomaa@warpmail.net wrote:
A really simple solution is to use [route] instead of [select].
I feel so embarassed, of course, route is the solution, total newbie here...
Thanks alot!!!
Atte