OK, got it. It's not shaving off one % per depth, it actually removing
every other % on each iteration, so the # of escaping symbols (%) grows
exponentially.
Maybe should lower my screen resolution to see the number of %%%%%%
symbols more clearly.
On 15.11.21 01:22, Max wrote:
No the help patch is perfectly clear but it only works two depth levels
Pd version 0.52.0-test1
On 15.11.21 00:56, Christof Ressi wrote:
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@lists.iem.at mailing list
UNSUBSCRIBE and account-management ->
https://lists.puredata.info/listinfo/pd-list
_______________________________________________
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management ->
https://lists.puredata.info/listinfo/pd-list
_______________________________________________
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management ->
https://lists.puredata.info/listinfo/pd-list
_______________________________________________
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management ->
https://lists.puredata.info/listinfo/pd-list