Re: [PD] Textfile - playlist

2007-06-09 Thread Frank Barknecht
Hallo,
Thomas Mayer hat gesagt: // Thomas Mayer wrote:

 is there a way to load the contents of a textfile into something similar
 to a [float] and a way to put it out line by line.
 
 so loading a file with the contents of
 
 abc
 defadf
 ohekd
 
 should give [abc( at the first [bang(, [defadf( at the second, [ohekd(
 at the third, and nothing on the fourth.
 
 I guess that could be done with the [textfile] object, 

What you describe is exactly what [textfile] does: You load a file,
send a rewind message to start at the beginning, then on every bang
you get the next line out the first outlet, until the end of file,
when the second outlet indicates the end with a bang. It's also all in
the help-patch for [textfile].

 but that's about the end of my knowledge. I haven't done anything
 with [list] objects, especially I have no idea how to convert a list
 to symbol and vice versa.

Why do you want to convert between list and symbols anyway? 

For a dynamically changing list of lists you could also take a look at
the (new) [list-fifo] and [list-lifo] abstractions in the [list]-abs
collection. Their help-file should fully explain how they work, if not
I'd be happy to explain them further.

Ciao
-- 
 Frank Barknecht _ __footils.org_ __goto10.org__

___
PD-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] Textfile - playlist

2007-06-08 Thread marius schebella
have a look at these objects:
qlist
textfile
msgfile
coll

marius.

Thomas Mayer wrote:
 Hello,
 
 is there a way to load the contents of a textfile into something similar
 to a [float] and a way to put it out line by line.
 
 so loading a file with the contents of
 
 abc
 defadf
 ohekd
 
 should give [abc( at the first [bang(, [defadf( at the second, [ohekd(
 at the third, and nothing on the fourth.
 
 I guess that could be done with the [textfile] object, but that's about
 the end of my knowledge. I haven't done anything with [list] objects,
 especially I have no idea how to convert a list to symbol and vice versa.
 
 Thanks in advance,
 Thomas


___
PD-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] Textfile - playlist

2007-06-08 Thread Thomas Mayer
marius schebella wrote:
 have a look at these objects:
 qlist
 textfile
 msgfile
 coll

Thanks, [coll] does the job. Once my Vj tool is done, I'll post it to
the list.

cu Thomas
-- 
Prisons are needed only to provide the illusion that courts and police
are effective. They're a kind of job insurance.
(Leto II. in: Frank Herbert, God Emperor of Dune)
http://thomas.dergrossebruder.org/

___
PD-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list