[PD] using PD/GEM to generate timecode overlay

Mathieu Bouchard matju at artengine.ca
Thu Nov 3 15:37:39 CET 2011

Le 2011-11-02 à 22:14:00, Hans-Christoph Steiner a écrit :

> You need to generate a symbol, then Pd won't strip the zeros off.  You 
> can do that with:
> [makefilename %02d]
> That will give you just hh.  You could do one of those per hh mm ss SSS, 
> then combine them into a list and feed it thru [zexy/list2symbol :]

Symbols are never freed, so, it's better to use several separate [text2d] 
to reduce the total number of symbols created.

Otherwise, as tens of thousands of symbols are created, not only it takes 
RAM, but it also slows down the symbol table (this means it slows down any 
uses of gensym).

[text2d] could be modified to also accept lists of ascii codes. In that 
case, [#sprintf] can do the job of multiple [makefilename]s (and more) 
without creating any symbol. You just need [#to_list] to make it a plain 
pd list.

| Mathieu BOUCHARD ----- téléphone : +1.514.383.3801 ----- Montréal, QC

More information about the Pd-list mailing list