Is there a way to get a typewriter effect using pd i.e. have letters appear one character at a time?
I was thinking I could send the text to [text2d] using [drip] but that just displays one character/word at a time.
Cheers,
Ant
On Sun, Aug 21, 2011 at 17:29, Antonio Roberts antonio@hellocatfood.comwrote:
Is there a way to get a typewriter effect using pd i.e. have letters appear one character at a time?
I was thinking I could send the text to [text2d] using [drip] but that just displays one character/word at a time.
Cheers,
Ant
http://lists.puredata.info/search/Pd-list?query=typewriter ?
Andras
maybe have a look....no documantation ... sorry
LG der.brandt
Zitat von "András Murányi" muranyia@gmail.com:
On Sun, Aug 21, 2011 at 17:29, Antonio Roberts
antonio@hellocatfood.comwrote:Is there a way to get a typewriter effect using pd i.e. have letters appear one character at a time?
I was thinking I could send the text to [text2d] using [drip] but that just displays one character/word at a time.
Cheers,
Ant
http://lists.puredata.info/search/Pd-list?query=typewriter ?
Andras
You could use [add2 $1( to add letters to a [text ( message box and send that to text2d each time a letter is added. gr, Tim
2011/8/21 Antonio Roberts antonio@hellocatfood.com
Is there a way to get a typewriter effect using pd i.e. have letters appear one character at a time?
I was thinking I could send the text to [text2d] using [drip] but that just displays one character/word at a time.
Cheers,
Ant
-- 07875 006 245 antonio@hellocatfood.com
============================ http://www.hellocatfood.com ============================
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Thanks Tim Vets, it worked great. Here's what I created http://www.youtube.com/watch?v=EOzDdYahsrs
Ant
On 21 August 2011 16:58, tim vets timvets@gmail.com wrote:
You could use [add2 $1( to add letters to a [text ( message box and send that to text2d each time a letter is added. gr, Tim
2011/8/21 Antonio Roberts antonio@hellocatfood.com
Is there a way to get a typewriter effect using pd i.e. have letters appear one character at a time?
I was thinking I could send the text to [text2d] using [drip] but that just displays one character/word at a time.
Cheers,
Ant
-- 07875 006 245 antonio@hellocatfood.com
============================ http://www.hellocatfood.com ============================
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Nice effect! That'd be nice to have wrapped up in an object or
library, so people should do stuff like the Star Wars into.
.hc
On Aug 21, 2011, at 5:54 PM, Antonio Roberts wrote:
Thanks Tim Vets, it worked great. Here's what I created http://www.youtube.com/watch?v=EOzDdYahsrs
Ant
On 21 August 2011 16:58, tim vets timvets@gmail.com wrote:
You could use [add2 $1( to add letters to a [text ( message box and
send that to text2d each time a letter is added. gr, Tim2011/8/21 Antonio Roberts antonio@hellocatfood.com
Is there a way to get a typewriter effect using pd i.e. have letters appear one character at a time?
I was thinking I could send the text to [text2d] using [drip] but
that just displays one character/word at a time.Cheers,
Ant
-- 07875 006 245 antonio@hellocatfood.com
============================ http://www.hellocatfood.com ============================
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
-- 07875 006 245 antonio@hellocatfood.com
============================ http://www.hellocatfood.com ============================
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
News is what people want to keep hidden and everything else is
publicity. - Bill Moyers
no problem. You may be able to do it character by character with [string $1 $2 $3 ...( . and also a suggestion: randomize the drip speed ;) gr, Tim
2011/8/21 Antonio Roberts antonio@hellocatfood.com
Thanks Tim Vets, it worked great. Here's what I created http://www.youtube.com/watch?v=EOzDdYahsrs
Ant
On 21 August 2011 16:58, tim vets timvets@gmail.com wrote:
You could use [add2 $1( to add letters to a [text ( message box and send that to text2d each time a letter is added. gr, Tim
2011/8/21 Antonio Roberts antonio@hellocatfood.com
Is there a way to get a typewriter effect using pd i.e. have letters appear one character at a time?
I was thinking I could send the text to [text2d] using [drip] but that just displays one character/word at a time.
Cheers,
Ant
-- 07875 006 245 antonio@hellocatfood.com
============================ http://www.hellocatfood.com ============================
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
-- 07875 006 245 antonio@hellocatfood.com
============================ http://www.hellocatfood.com ============================
Here's another example showing what I mean. I couldn't test it with text3d right now, ("gem is compiled without font support") but it should work. I also don't know if [text2d] accepts [string ( but [text3d] does. 'asciify.pd', is an abstraction based on makefilename and list-find to get the ascii values. gr, Tim
2011/8/22 tim vets timvets@gmail.com
no problem. You may be able to do it character by character with [string $1 $2 $3 ...( . and also a suggestion: randomize the drip speed ;) gr, Tim
2011/8/21 Antonio Roberts antonio@hellocatfood.com
Thanks Tim Vets, it worked great. Here's what I created http://www.youtube.com/watch?v=EOzDdYahsrs
Ant
On 21 August 2011 16:58, tim vets timvets@gmail.com wrote:
You could use [add2 $1( to add letters to a [text ( message box and send that to text2d each time a letter is added. gr, Tim
2011/8/21 Antonio Roberts antonio@hellocatfood.com
Is there a way to get a typewriter effect using pd i.e. have letters appear one character at a time?
I was thinking I could send the text to [text2d] using [drip] but that just displays one character/word at a time.
Cheers,
Ant
-- 07875 006 245 antonio@hellocatfood.com
============================ http://www.hellocatfood.com ============================
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
-- 07875 006 245 antonio@hellocatfood.com
============================ http://www.hellocatfood.com ============================
I need to generate live timecode to overlay on a video of a cinema
projection screen.
So far PD/GEM works fine, but does anybody have a quick-and-easy
suggestion for formatting numbers/strings fed into [text2d] to get
leading zeros?
My desired format is hh:mm:ss:SSS
Cheers!
/Mikael
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 :]
.hc
On Nov 2, 2011, at 9:45 PM, Mikael Fernstrom wrote:
I need to generate live timecode to overlay on a video of a cinema projection screen.
So far PD/GEM works fine, but does anybody have a quick-and-easy suggestion for formatting numbers/strings fed into [text2d] to get leading zeros?
My desired format is hh:mm:ss:SSS
Cheers!
/Mikael
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
The arc of history bends towards justice. - Dr. Martin Luther King, Jr.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 2011-11-03 03:14, Hans-Christoph Steiner wrote:
You need to generate a symbol, then Pd won't strip the zeros off. You can do that with:
[makefilename %02d]
though for SSS you would need [makefilename %03d]
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 :]
i have to admit that for short fixed size list-to-symbol functionality i would use the super cow powers of the msgbox:
[symbol $1:$2:$3.$4( will give you "hh:mm:ss.SSS"
fgmasdr IOhannes
Thanks! Works perfect. Next, I'm adding an Arduino to interface the projector.
/Mikael Sent from my iPad
On 3 Nov 2011, at 08:26, "IOhannes m zmoelnig" zmoelnig@iem.at wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 2011-11-03 03:14, Hans-Christoph Steiner wrote:
You need to generate a symbol, then Pd won't strip the zeros off. You can do that with:
[makefilename %02d]
though for SSS you would need [makefilename %03d]
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 :]
i have to admit that for short fixed size list-to-symbol functionality i would use the super cow powers of the msgbox:
[symbol $1:$2:$3.$4( will give you "hh:mm:ss.SSS"
fgmasdr IOhannes -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk6yT6kACgkQkX2Xpv6ydvQa1wCfTh6QKUKwxb6jlwmdYyLe8JBk TDkAoM016VTkDgkyfAaX/TnnbhQpxX4w =E9Fm -----END PGP SIGNATURE-----
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
On Nov 3, 2011, at 4:24 AM, IOhannes m zmoelnig wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 2011-11-03 03:14, Hans-Christoph Steiner wrote:
You need to generate a symbol, then Pd won't strip the zeros off. You can do that with:
[makefilename %02d]
though for SSS you would need [makefilename %03d]
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 :]
i have to admit that for short fixed size list-to-symbol functionality i would use the super cow powers of the msgbox:
[symbol $1:$2:$3.$4( will give you "hh:mm:ss.SSS"
Except where $1 is 01, for example, it'll give you
1:34:45.345
.hc
Terrorism is not an enemy. It cannot be defeated. It's a tactic. It's about as sensible to say we declare war on night attacks and expect we're going to win that war. We're not going to win the war on terrorism. - retired U.S. Army general, William Odom
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 2011-11-03 15:32, Hans-Christoph Steiner wrote:
[symbol $1:$2:$3.$4( will give you "hh:mm:ss.SSS"
Except where $1 is 01, for example, it'll give you
1:34:45.345
no. my suggestion was to use the msgbox instead of [list2symbol :], not for the entire formatting. you still need to use [makefilename]
if you use [list2symbol :] without first formatting the numbers using [makefilename], you will get "1:34:45.345" as well.
fgamr IOhannes
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
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 2011-11-03 15:37, Mathieu Bouchard wrote:
Le 2011-11-02 à 22:14:00, Hans-Christoph Steiner a écrit :
[text2d] could be modified to also accept lists of ascii codes. In that
alas, it cannot, as it already has this functionality.
the [text*] family accepts lists of unicode points (which is compatible with ascii), it's in the "string" method.
fgamsdr IOhannes
Le 2011-11-03 à 15:43:00, IOhannes m zmoelnig a écrit :
On 2011-11-03 15:37, Mathieu Bouchard wrote:
Le 2011-11-02 à 22:14:00, Hans-Christoph Steiner a écrit : [text2d] could be modified to also accept lists of ascii codes. In that
alas, it cannot, as it already has this functionality.
:)
the [text*] family accepts lists of unicode points (which is compatible with ascii), it's in the "string" method.
great.
Now the only problem left is that [#sprintf] outputs lists-of-utf8-bytes instead of lists-of-utf8-points. I think that this is something that has to be modified in [#sprintf]. But the difference wouldn't be visible in case of plain ascii such as this timecode question.
| Mathieu BOUCHARD ----- téléphone : +1.514.383.3801 ----- Montréal, QC
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 2011-11-03 15:59, Mathieu Bouchard wrote:
Le 2011-11-03 à 15:43:00, IOhannes m zmoelnig a écrit :
On 2011-11-03 15:37, Mathieu Bouchard wrote:
Le 2011-11-02 à 22:14:00, Hans-Christoph Steiner a écrit : [text2d] could be modified to also accept lists of ascii codes. In that
alas, it cannot, as it already has this functionality.
:)
the [text*] family accepts lists of unicode points (which is compatible with ascii), it's in the "string" method.
great.
Now the only problem left is that [#sprintf] outputs lists-of-utf8-bytes instead of lists-of-utf8-points. I think that this is something that has
at the pdcon09 in sao paolo, hans, maira and me created a little abstraction that decodes utf8-bytes to unicode-points. it can be found in [1]
mfgasdr IOhannes
[1] https://pure-data.svn.sourceforge.net/svnroot/pure-data/trunk/externals/iem/...
On 11/3/11 7:37 AM, Mathieu Bouchard wrote:
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).
Good point, Mathieu. Attached is a "stopwatch" I made a few years ago that practices symbol conservation. It could easily be modified to do timecode.
Phil Stone pkstonemusic.com