Thanks Pedro, If someone know about this and how to fix this
Have a look of this patch and textfile, it's better to understand the problem (see pd console): http://www.th-th.fr/DOCS/Patch/bug-texfile.pd http://www.th-th.fr/DOCS/Patch/text-float.txt
Thomas
Pedro Lopes a écrit :
p.s.: I'm not understanding this line of code completely:
- "else outlet_list(x->x_ob.ob_outlet, 0, onset2-onset, ap);" (line 136)
p.p.s: definitely someone with more know-how of this object's internal workings could be of service for you matohawk :)
On Wed, Jun 30, 2010 at 12:00 AM, Pedro Lopes <pedro.lopes@ist.utl.pt mailto:pedro.lopes@ist.utl.pt> wrote:
I'm looking at the C code, it should be something with outputing the "float", because when it receives the message "print", the textfile element shows its debugging data and the whole message is there "float bla bla". Well honestly, the only thing the debug method does is print the buffer, so it is obvious "it's there". a more in-depth look, showed this... //code from > externals/vanilla > from the band method of the external { x->x_onset = onset2; if (ap->a_type == A_SYMBOL) outlet_anything(x->x_ob.ob_outlet, ap->a_w.w_symbol, onset2-onset-1, ap+1); else outlet_list(x->x_ob.ob_outlet, 0, onset2-onset, ap); } else { x->x_onset = 0x7fffffff; outlet_bang(x->x_bangout); } //end of code This seems that it only adds "stuff" to the list, when a A_SYMBOL is found? Or am I not getting this straight? If its true, then the issue could be this... because according to [1] A_SYMBOL is not A_FLOAT (this sounds philosophical..=P). Best regards, Pedro [1] http://iem.kug.ac.at/pd/externals-HOWTO/node7.html I guess my help won't fix this :) On Tue, Jun 29, 2010 at 11:49 PM, Pedro Lopes <pedro.lopes@ist.utl.pt <mailto:pedro.lopes@ist.utl.pt>> wrote: humm.. I see what you mean now. It gives a error with the float argument when it arrives at the objects after the textfile. I'm trying to figure out the reason for that. On Tue, Jun 29, 2010 at 11:42 PM, Pedro Lopes <pedro.lopes@ist.utl.pt <mailto:pedro.lopes@ist.utl.pt>> wrote: I did that, but what are you expecting your patch to do? Should it send each object read from text file separately? 'Cause here (with the patch I explain in my previous reply) the textfile reads your file and outputs all the values to a [print list] so then its just a matter of manipulating that into what you want. I used your file for the tests. I can try to look and guess what do you intend, but its probably less ambiguous if you explain the purpose. :) Best of luck, Pedro On Tue, Jun 29, 2010 at 11:36 PM, matohawk <matohawk@gmail.com <mailto:matohawk@gmail.com>> wrote: Hi Pedro, Sorry I think I'm not very with explanation. I know how textfile works it's not my problem Have a look of this patch and textfile, it's better to understand the problem: http://www.th-th.fr/DOCS/Patch/bug-texfile.pd http://www.th-th.fr/DOCS/Patch/text-float.txt Download the twho files, open the patch and click on bang Cheers, Thomas Pedro Lopes a écrit : I'm not following the "concept" behind your code. Notice that you can connect a message box "print" and send that command to textfile. And it reads your file to the pd shell correctly. [read your-file.txt] | [print( <-- this is a message | / |/ | [bang] <-- hit this to read,. | / |/ [textfile] | | [print list] And it works. Take a look at the help file, it shows hot to use it. I hope I'm understanding your issue, if not, hopefully someone does :) Best of luck, Pedro p.s: remember to use the "rewind" message to textfile, because otherwise it doesn't read the line again! Because it moves forward with the seek file pointer. On Tue, Jun 29, 2010 at 10:37 PM, thomas thiery <matohawk@gmail.com <mailto:matohawk@gmail.com> <mailto:matohawk@gmail.com <mailto:matohawk@gmail.com>>> wrote: Hi pd-list, test this patch, I saw a curious problem. I need to read line with "float" at the begining of a line and textfile can't do this. It's a pity -- Matohawk alias Th-Th www.th-th.fr <http://www.th-th.fr> <http://www.th-th.fr> _______________________________________________ Pd-list@iem.at <mailto:Pd-list@iem.at> <mailto:Pd-list@iem.at <mailto:Pd-list@iem.at>> mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list -- Pedro Lopes contacto: jazz@radiozero.pt <mailto:jazz@radiozero.pt> <mailto:jazz@radiozero.pt <mailto:jazz@radiozero.pt>> website: http://web.ist.utl.pt/Pedro.Lopes _______________________________________________ Pd-list@iem.at <mailto:Pd-list@iem.at> mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list -- Pedro Lopes contacto: jazz@radiozero.pt <mailto:jazz@radiozero.pt> website: http://web.ist.utl.pt/Pedro.Lopes -- Pedro Lopes contacto: jazz@radiozero.pt <mailto:jazz@radiozero.pt> website: http://web.ist.utl.pt/Pedro.Lopes -- Pedro Lopes contacto: jazz@radiozero.pt <mailto:jazz@radiozero.pt> website: http://web.ist.utl.pt/Pedro.Lopes
-- Pedro Lopes contacto: jazz@radiozero.pt mailto:jazz@radiozero.pt website: http://web.ist.utl.pt/Pedro.Lopes