On Mon, Nov 15, 2021 at 01:46:41AM +0100, Max wrote:
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.
Hmm, well, Pd was originally developed for a 640x480 screen :)
M
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://urldefense.proofpoint.com/v2/url?u=https-3A__lists.puredata.info_lis...
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.puredata.info_lis...
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.puredata.info_lis...
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.puredata.info_lis...