[PD] [osc parse] & [route]
Joel Corelitz
joel at waveplantstudios.com
Thu May 14 16:31:28 CEST 2015
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/)
joel at waveplantstudios.com (mailto:joel at waveplantstudios.com)
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/
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20150514/ac4f3414/attachment.html>
More information about the Pd-list
mailing list