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 > > http://atte.dk http://a773.dk > > > > _______________________________________________ > [email protected] mailing list > UNSUBSCRIBE and account-management -> > https://lists.puredata.info/listinfo/pd-list _______________________________________________ [email protected] mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
