Thanks, Chris - I really appreciate the help. I’m still doing something wrong though. When I send the message [42( to [makefilename %d] I get an “ inlet: expected 'float' but got ‘1’” error from [route]. Seems like it’s still a symbol.
--Joel Corelitz / waveplant http://www.waveplantstudios.com (http://www.waveplantstudios.com/) [email protected] (mailto:[email protected]) 312-348-5798 (tel:312-348-5798) (voice & fax) On Wednesday, May 13, 2015 at 11:56 PM, Chris McCormick wrote: > Hi Joel, > > On 14/05/15 11:45, Joel Corelitz wrote: > > I’m able to route everything I need to in Max this way so some of this > > is admittedly due to not understanding the different ways Pd handles the > > data. > > > > > It's super annoying, but what is actually coming from oscparse is a > "symbol" not a float. In Pd there is currently no way to re-cast a > symbol-float atom back to what it looks like, so instead you'll have to > manually create one of these "symbol" floats to compare against, which > you can do with a message through makefilename like this: > > [42( > | > [makefilename %d] > | > into the right inlet of your 'route'. > > This will route on the "symbol" 42. > > I submitted a patch to Miller to allow [f] to cast those symbol-floats > back to floats (since there are now 3 different ways to accidentally or > purposely create a symbol-float) a while back but I think he thinks > there is a better way of handling this situation. > > Cheers, > > Chris. > > -- > http://mccormick.cx/ > >
_______________________________________________ [email protected] mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
