[PD] makefilename multiple substitutions
Christof Ressi
info at christofressi.com
Mon Nov 15 00:56:13 CET 2021
You have to escape *each* "%" with a leading "%", so your format string
should be "%%%%02d:%%02d:%02d"
The help patch actually shows this:
> "%%%%" becomes "%%" and so on
Maybe the wording is not clear enough, though?
Christof
On 14.11.2021 23:55, Max wrote:
> 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.
>
>
>
> _______________________________________________
> Pd-list at lists.iem.at mailing list
> UNSUBSCRIBE and account-management ->
> https://lists.puredata.info/listinfo/pd-list
More information about the Pd-list
mailing list