[PD] [oscparse] parsing address patterns with integers differently

Roman Haefeli reduzent at gmail.com
Tue Oct 28 20:39:02 CET 2014


On Die, 2014-10-28 at 08:55 -0700, Jonathan Wilkes wrote:
> In pd_typedmess of m_class.c, the float handler will currently throw
> an error if the arg isn't a float atom.  However, this could be
> changed so that if the arg is a symbol-atom Pd sends it through a
> binbuf "carwash" to check if it comes out as a float.  If so, it could
> send it on its way.  If not, it would throw the same error it
> currently does.
> 
> 
> So
> 
> 
> [0(
> |
> [makefilename %d]
> |
> [float $1(
> |
> [route float]
> |
> [print success]
> 
> 
> 
> This wouldn't add any overhead to Pd's current message-dispatching
> system, as the conversion would only get triggered for symbol-args
> which currently throw an error.

Good suggestion. In this case, I'd prefer functionality over error.

Roman





More information about the Pd-list mailing list