[PD] what do you use to format text (instead of sprintf)?

Alexandre Torres Porres porres at gmail.com
Mon Sep 4 05:13:58 CEST 2017


[cyclone/sprintf]

and we're adding more features to it in the next release

2017-09-03 17:22 GMT-03:00 oliver <oliver at klingt.org>:

> Ali Momeni wrote:
>
>> Hello all,
>>
>> What is everyone's favorite way to format text in simple ways, a la
>> something like sprintf?
>>
>>
> actually PD's message box can be manipulated in pretty powerful ways, more
> than MAX's message box can do. see the subpatch "pd changing-messages" in
> the message-help.pd file !
>
>
> that combined with [makefilename] does pretty much everything i need for
> text formatting.
>
>
>
> [makefilename] also has an undocumented padding method.
>
> f.e.: sending the float number 13 to
>
> |makefilename %05d|
>
> will output the symbol "00013"
>
>
>
>
> you can even create $0-messages with this little trick:
>
> |list $ 0 somename(
> |
> |$1$2-$3-rrr(
> |
> |print TRYIT|
>
> _______________________________________________
> Pd-list at lists.iem.at mailing list
> UNSUBSCRIBE and account-management -> https://lists.puredata.info/
> listinfo/pd-list
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20170904/92c9c1e2/attachment.html>


More information about the Pd-list mailing list