[PD] error while reading filename from textfile

Miller Puckette mpuckett at man104-1.ucsd.edu
Tue Jun 24 08:58:42 CEST 2003


Try making the message box (that says "symbol $1") into an object
box, just "symbol".  This converts the selector of the message
coming from textfile into a message with one symbol argument, which
is what makefilename needs.

cheers
Miller

On Sun, Jun 22, 2003 at 01:41:20AM +0200, f:o wrote:
> hi list
> 
> I'm trying to read a filename from a textfile list.
> 
> I got the filename in pd but if I like to get this filename in a messagebox
> with $1, pd got an error:
> 
> > error: $1: argument number out of range
> 
> trying to get the filename in makesymbol or makefilename:
> > error: makesymbol: no method for 'filename.blah'
> 
> maybe someone can tell me, why this doesn't work and  what would be a
> working solution.
> 
> thanx a lot
> philipp
> 
> part of my patch that does not work:
> 
> ______
> |bang(
> ------
>  |
> __________
> |textfile|
> ----------
>  |
> ___________
> |symbol $1(
> -----------
>  |
> ______________________
> |makefilename path/%s{
> ----------------------
> 
> 
> _______________________________________________
> PD-list mailing list
> PD-list at iem.at
> http://iem.at/cgi-bin/mailman/listinfo/pd-list




More information about the Pd-list mailing list