Hi all
Apoligies if this is not the correct place for asking these sorts of questions.
Can the 'coll' object read items from a text file?
What I want to do is have several messages stored in a textfile, load them into coll and then output them one at a time. Is this possible, everytime I try and load a text file into coll I get the error ...
"coll: bad atom error (miXed): coll: error reading text file 'C:/Documents and Settings/Donal/Desktop/pd project/clips/masterText.txt"
Thanks and regards Donal
Did you use [col] to create the textfile? Or is it a random textfile? Formatting is important. A sample:
1, ah_yes.wav; 2, hokoji.loop.wav; 3, kenchoji.loop.wav;
Maybe try to format it in this way?
d.
Donal Carey wrote:
Hi all
Apoligies if this is not the correct place for asking these sorts of questions.
Can the 'coll' object read items from a text file?
What I want to do is have several messages stored in a textfile, load them into coll and then output them one at a time. Is this possible, everytime I try and load a text file into coll I get the error ...
"coll: bad atom error (miXed): coll: error reading text file 'C:/Documents and Settings/Donal/Desktop/pd project/clips/masterText.txt"
Thanks and regards Donal
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Derek Holzer wrote:
Did you use [col] to create the textfile? Or is it a random textfile? Formatting is important. A sample:
1, ah_yes.wav; 2, hokoji.loop.wav; 3, kenchoji.loop.wav;
Maybe try to format it in this way?
Or if it's plain text, use "read file.txt" (for ';'-terminated messages) or "read cr file.txt" (for one message per line) and [textfile].
Then output one at a time with "rewind" and "bang", iirc.
However, if you need random access, then indeed [textfile] is insufficient and/or inefficient.
Hope this helps,
Claude
d.
Donal Carey wrote:
Hi all
Apoligies if this is not the correct place for asking these sorts of questions.
Can the 'coll' object read items from a text file?
What I want to do is have several messages stored in a textfile, load them into coll and then output them one at a time. Is this possible, everytime I try and load a text file into coll I get the error ...
"coll: bad atom error (miXed): coll: error reading text file 'C:/Documents and Settings/Donal/Desktop/pd project/clips/masterText.txt"
Thanks and regards Donal
Thanks Derek - this took care of the problem ! :)
Donal
----- Original Message ----- From: "Derek Holzer" derek@umatic.nl To: "Donal Carey" donal@lunasadesign.com Cc: pd-list@iem.at Sent: Thursday, December 13, 2007 4:17 PM Subject: Re: [PD] coll object
Did you use [col] to create the textfile? Or is it a random textfile? Formatting is important. A sample:
1, ah_yes.wav; 2, hokoji.loop.wav; 3, kenchoji.loop.wav;
Maybe try to format it in this way?
d.
Donal Carey wrote:
Hi all Apoligies if this is not the correct place for asking these sorts of questions. Can the 'coll' object read items from a text file? What I want to do is have several messages stored in a textfile, load them into coll and then output them one at a time. Is this possible, everytime I try and load a text file into coll I get the error ... "coll: bad atom error (miXed): coll: error reading text file 'C:/Documents and Settings/Donal/Desktop/pd project/clips/masterText.txt" Thanks and regards Donal
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
-- derek holzer ::: http://www.umatic.nl ::: http://blog.myspace.com/macumbista ---Oblique Strategy # 202: "Back up a few steps. What else could you have done?"
coll uses a special format to store its data, it always uses an ID, then a comma and then the message content. this has some advantages (sorting, lookup) but does not work with all textfiles. I suggest to use textfile or messagefile. or, if you want to use coll, then look at the fileformat and save your textfiles, for example like 1, first message; 2, lalalal; 3, and so on; 4, 123 40734 9831 1320487132 132; marius
Donal Carey wrote:
Hi all
Apoligies if this is not the correct place for asking these sorts of questions.
Can the 'coll' object read items from a text file?
What I want to do is have several messages stored in a textfile, load them into coll and then output them one at a time. Is this possible, everytime I try and load a text file into coll I get the error ...
"coll: bad atom error (miXed): coll: error reading text file 'C:/Documents and Settings/Donal/Desktop/pd project/clips/masterText.txt"
Thanks and regards Donal
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
This is the right place to ask! :) coll is supposed to be able to
open textfiles, but I think they are supposed to have a specific
format. It is meant for Max/MSP compatibility, you might have better
luck with the native Pd versions: textfile and qlist
.hc
On Dec 13, 2007, at 9:33 AM, Donal Carey wrote:
Hi all
Apoligies if this is not the correct place for asking these sorts
of questions.Can the 'coll' object read items from a text file?
What I want to do is have several messages stored in a textfile,
load them into coll and then output them one at a time. Is this
possible, everytime I try and load a text file into coll I get the
error ..."coll: bad atom error (miXed): coll: error reading text file 'C:/Documents and
Settings/Donal/Desktop/pd project/clips/masterText.txt"Thanks and regards Donal _______________________________________________ PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/ listinfo/pd-list
As we enjoy great advantages from inventions of others, we should be
glad of an opportunity to serve others by any invention of ours; and
this we should do freely and generously. - Benjamin Franklin