[cyclone/sprintf]
and we're adding more features to it in the next release
2017-09-03 17:22 GMT-03:00 oliver oliver@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@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/ listinfo/pd-list