Le jeudi 23 juillet 2009 à 15:32 -0300, Hans-Christoph Steiner a écrit :
Hey Matrin and all,
We are here in Brazil hacking a srt file object for reading subtitles.
I did it with Pd, GEM and Lua for an installation called L.O.S.T. this year at Imal (Brussels). It was for the V.O.S.T. OV/OT festival. http://imal.org/VOST/index.php?page=home_en http://www.flickr.com/photos/malicy/3584894333/sizes/o/ Lua is perfect for this job (SRT files). ++
Jack
Your binfile has proven indispensible in this process since we need to pass thru text to text3d without commas, etc being interpreted. So big thanks for that.
But there is one odd thing with it, and that's the way it bangs when its done. Its different than [textfile]. I was wondering if that was deliberate. Anyway, here's a patch to make it act like textfile.
Index: binfile.c
--- binfile.c (revision 11724) +++ binfile.c (working copy) @@ -233,10 +233,9 @@ if (x->x_rd_offset < x->x_length) { c = x->x_buf[x->x_rd_offset++];
if (x->x_rd_offset == x->x_length)
outlet_bang(x->x_bang_outlet); outlet_float(x->x_bin_outlet, (float)c); }
- else outlet_bang(x->x_bin_outlet);
- else outlet_bang(x->x_bang_outlet);
}
/* The arguments of the ``list''-method
.hc
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list