[PD] makefilename multiple substitutions
Max
abonnements at revolwear.com
Mon Nov 15 01:22:29 CET 2021
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 at lists.iem.at mailing list
>> UNSUBSCRIBE and account-management ->
>> https://lists.puredata.info/listinfo/pd-list
>
>
>
> _______________________________________________
> Pd-list at lists.iem.at mailing list
> UNSUBSCRIBE and account-management ->
> https://lists.puredata.info/listinfo/pd-list
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smpte-help.pd
Type: text/x-puredata
Size: 441 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20211115/43f636e8/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smpte.pd
Type: text/x-puredata
Size: 3009 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20211115/43f636e8/attachment-0003.bin>
More information about the Pd-list
mailing list