Re: [PD] [gem] Looking for an abstraction for converting textfiles in text3d string

2013-02-21 Thread Charles Goyard
Roman Haefeli wrote: Your patch breaks when you have a line with a comma in your text file. Such a line is broken into two lines. Oh. Thanks. pure data is just a name after all... It's not exactly pure about data handling :). Regarding your insistence to do that task with Pd, I think you

Re: [PD] [gem] Looking for an abstraction for converting textfiles in text3d string

2013-02-21 Thread Roman Haefeli
On Don, 2013-02-21 at 14:13 +0100, Charles Goyard wrote: Hey, that works. But, as you may have guessed, it's awfully slow with a large textfile (about 3kb). I guess it's just the message box that's slow to update. Actually, message boxes are pretty fast. Try hiding it in a non-visible subpatch

Re: [PD] [gem] Looking for an abstraction for converting textfiles in text3d string

2013-02-21 Thread Charles Goyard
Hi, Roman Haefeli wrote: On Don, 2013-02-21 at 14:13 +0100, Charles Goyard wrote: Hey, that works. But, as you may have guessed, it's awfully slow with a large textfile (about 3kb). I guess it's just the message box that's slow to update. Actually, message boxes are pretty fast. Try

Re: [PD] [gem] Looking for an abstraction for converting textfiles in text3d string

2013-02-21 Thread Roman Haefeli
On Don, 2013-02-21 at 14:57 +0100, Charles Goyard wrote: Hi, Roman Haefeli wrote: On Don, 2013-02-21 at 14:13 +0100, Charles Goyard wrote: Hey, that works. But, as you may have guessed, it's awfully slow with a large textfile (about 3kb). I guess it's just the message box that's

Re: [PD] [gem] Looking for an abstraction for converting textfiles in text3d string

2013-02-21 Thread IOhannes m zmoelnig
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 2013-02-21 14:41, Roman Haefeli wrote: On Don, 2013-02-21 at 14:13 +0100, Charles Goyard wrote: Hey, that works. But, as you may have guessed, it's awfully slow with a large textfile (about 3kb). I guess it's just the message box that's slow to

Re: [PD] [gem] Looking for an abstraction for converting textfiles in text3d string

2013-02-21 Thread Roman Haefeli
On Don, 2013-02-21 at 15:15 +0100, IOhannes m zmoelnig wrote: On 2013-02-21 14:41, Roman Haefeli wrote: On Don, 2013-02-21 at 14:13 +0100, Charles Goyard wrote: Hey, that works. But, as you may have guessed, it's awfully slow with a large textfile (about 3kb). I guess it's just the

Re: [PD] [gem] Looking for an abstraction for converting textfiles in text3d string

2013-02-21 Thread Roman Haefeli
On Don, 2013-02-21 at 15:15 +0100, IOhannes m zmoelnig wrote: On 2013-02-21 14:41, Roman Haefeli wrote: On Don, 2013-02-21 at 14:13 +0100, Charles Goyard wrote: Hey, that works. But, as you may have guessed, it's awfully slow with a large textfile (about 3kb). I guess it's just the

Re: [PD] [gem] Looking for an abstraction for converting textfiles in text3d string

2013-02-21 Thread Charles Goyard
Roman Haefeli wrote: BTW, it's dead easy to put this into an abstraction to avoid the GUI update issue: [inlet] | [ ( | [outlet] Yes, I tried and it works wonder ! ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -

Re: [PD] [gem] Looking for an abstraction for converting textfiles in text3d string

2013-02-20 Thread Santi
Hi, i'm using coll, i must format the text file before using it, but works great. With a little script in bash it's easy format any text file. Regards. 2013/2/19 Charles Goyard c...@fsck.fr Hi, almost there. But I don't know why, any2bytes converts my newlines (10) into spaces (32). My

Re: [PD] [gem] Looking for an abstraction for converting textfiles in text3d string

2013-02-20 Thread IOhannes m zmoelnig
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 2013-02-19 15:21, Charles Goyard wrote: Hi, almost there. But I don't know why, any2bytes converts my newlines (10) into spaces (32). My input is like : line1 line2 line3 So textfile returns the whole file at once, which is what I

Re: [PD] [gem] Looking for an abstraction for converting textfiles in text3d string

2013-02-20 Thread Charles Goyard
Hi, Santi wrote: i'm using coll, i must format the text file before using it, but works great. With a little script in bash it's easy format any text file. Sure, but if I am to modify the file outside pd, I can as well roll a perl script that generates an abstraction with a message box

Re: [PD] [gem] Looking for an abstraction for converting textfiles in text3d string

2013-02-20 Thread Charles Goyard
IOhannes m zmoelnig wrote: you can tell [textfile] to use CR/LF/CRLF as line delimiters by opening the file in cr mode, like [open file.txt cr( then you will need to stop through the lines by [bang(ing [textfile] till the end is reached. if you want to read the entire file at once, use

Re: [PD] [gem] Looking for an abstraction for converting textfiles in text3d string

2013-02-20 Thread Roman Haefeli
On Thu, 2013-02-21 at 01:50 +0100, Charles Goyard wrote: IOhannes m zmoelnig wrote: you can tell [textfile] to use CR/LF/CRLF as line delimiters by opening the file in cr mode, like [open file.txt cr( then you will need to stop through the lines by [bang(ing [textfile] till the end

Re: [PD] [gem] Looking for an abstraction for converting textfiles in text3d string

2013-02-19 Thread Charles Goyard
Hi, almost there. But I don't know why, any2bytes converts my newlines (10) into spaces (32). My input is like : line1 line2 line3 So textfile returns the whole file at once, which is what I want. Maybe mrpeach's binfile is more appropriate ? Hans-Christoph Steiner wrote: I think the

Re: [PD] [gem] Looking for an abstraction for converting textfiles in text3d string

2013-02-18 Thread Charles Goyard
Hi, thanks ! I still have to figure some details, but it seems to do the trick. I'll post my patch when it's done for future reference. Hans-Christoph Steiner wrote: I think the pdstring/moocow objects will do that for you, [any2bytes] in particular. .hc On 02/14/2013 01:59 PM,

[PD] [gem] Looking for an abstraction for converting textfiles in text3d string

2013-02-14 Thread Charles Goyard
Hi, I want to display the content of a textfile on Gem. I know text3d does linebreaks when it encounters 10 in a string message. However, before patching this textfile-to-stringfortext3d, I wanted to know if anyone already did that and could share ? Thanks, -- Charles

Re: [PD] [gem] Looking for an abstraction for converting textfiles in text3d string

2013-02-14 Thread Hans-Christoph Steiner
I think the pdstring/moocow objects will do that for you, [any2bytes] in particular. .hc On 02/14/2013 01:59 PM, Charles Goyard wrote: Hi, I want to display the content of a textfile on Gem. I know text3d does linebreaks when it encounters 10 in a string message. However, before