[PD-dev] float format in tclpd

Hans-Christoph Steiner hans at eds.org
Sat Nov 12 06:27:20 CET 2011


Just playing around with tclpd, pd::strip_selector makes working with the lists nice and easy in Tcl.  One thing though: floats are rendered with trailing zeros, so [float 1( is rendered as {float 1.0} in tclpd.  tclpd should really use [format %g $arg] to format the floats so that they are the same format as Pd.  Pd uses printf("%g", arg).

.hc

----------------------------------------------------------------------------

"Making boring techno music is really easy with modern tools, but with live coding, boring techno is much harder." - Chris McCormick







More information about the Pd-dev mailing list