[PD] makefilename multiple substitutions

Max abonnements at revolwear.com
Sun Nov 14 23:55:54 CET 2021


hi list,

The helpfile for makefilename has a subpatch "multiple substitutions" in 
which it says:

You can connect two or more objects for multiple substitutions. For 
that, you need to use a literal '%' to set the format string of another 
makefilename object.
LITERAL %: You can format a string with a literal '%' if you escape it 
with another '%' (where "%%" becomes "%", "%%%%" becomes "%%" and so on)

however, just a depth of two substitutions is in the example. I extended 
this to three and got the error:

makefilename: invalid format string '%%%02d:%%02d:%02d' (too many format 
specifiers)

(Yes you guessed right, trying to generate SMPTE from milliseconds)

M.





More information about the Pd-list mailing list