[PD] (breaking symbols) was Re: find a list of numbers in a text file

Roman Haefeli reduzent at gmail.com
Sun Sep 4 21:15:12 CEST 2011


On Sun, 2011-09-04 at 14:23 -0400, Hans-Christoph Steiner wrote:
> On Aug 31, 2011, at 2:33 AM, Chris McCormick wrote:
> 
> > On Tue, Aug 30, 2011 at 11:19:46PM -0700, Miller Puckette wrote:
> >>> I am in favour of having that functionality as part of [list] and  
> >>> those names look good to me. For the functionality you describe  
> >>> maybe something like [list ascii2symbol] and [list symbol2ascii]?  
> >>> Those would also be pretty useful!
> >>>
> >>> I am currently making a [split] abstraction based on Jamie's work.  
> >>> I will send it through when I am done - or you can just look at  
> >>> symbol2list's source which IOhannes has re-licensed in a message  
> >>> to this list for use in Pd:
> >>>
> >>
> >> hmm... another possibility, as in lisp: "list explode" and "list  
> >> implode" ?
> >
> > Also good!
> >
> >> My idea is that, once this is in Pd vanilla, the  "2/3" -> "2" "3"  
> >> type
> >> of split is easy enough to program in an abstraction, but it's  
> >> presently
> >> not possible at all; meanwhile, the funtionality I'm describing is  
> >> pretty
> >> canonical and hard to split up into finer components in any way I  
> >> can see.
> >
> > Ah, ok, so you could do:
> >
> > bat/cat/rat -> 98 97 116 47 99 97 116 47 114 97 116
> >
> > and then you would run through the number list finding 47 ("/") and  
> > re-building the separate symbols using the reverse operation.
> >
> > I guess this would be cool because it would also allow you to store  
> > proper strings with all kinds of characters in regular Pd arrays,  
> > which might be fun. Hmmm, also many other things!
> >
> >> easy enough to program in an abstraction, but it's presently
> >> not possible at all;
> >
> > After looking at Jonathan's ratio splitting abstraction I think this  
> > might actually be possible with [makefilename] madness, but it's  
> > much uglier than what you propose:
> > <http://lists.puredata.info/pipermail/pd-list/2011-08/090196.html>
> 
> 
> Definitely check out Bryan Jurish's moocow with its bytes2any and  
> any2bytes.  They work quite nicely for converting between messages and  
> lists of byte floats and are easy to use.

I made a vanilla abstraction similar to [byte2any] based on the
aforementioned [makefilename] madness. Just for the sake of this
discussion. Check the attachment.

Roman
 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: byte2string.tar.gz
Type: application/x-compressed-tar
Size: 1500 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20110904/2f0bd5f3/attachment.bin>


More information about the Pd-list mailing list