<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span>Aw c'mon, Miller, you didn't even try.<br></span></div><div><br><span></span></div><div><span>It's just a little sprintf hacking and that idiosyncratic recursion that outputs everything backwards.</span></div><div><br><span></span></div><div><span>-Jonathan<br></span></div><div><br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"><div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"><font face="Arial" size="2"><hr size="1"><b><span style="font-weight:bold;">From:</span></b> Miller Puckette <msp@ucsd.edu><br><b><span style="font-weight: bold;">To:</span></b> Alexandre Torres Porres <porres@gmail.com><br><b><span style="font-weight:
bold;">Cc:</span></b> pd-lista puredata <pd-list@iem.at><br><b><span style="font-weight: bold;">Sent:</span></b> Wednesday, August 3, 2011 12:35 AM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [PD] (breaking symbols) was Re: find a list of numbers in a text file<br></font><br>Nope... there needs to be a string-to-binary-list-and-back function somewhere<br>but I can't figure out what to name it :)<br><br>M<br><br>On Wed, Aug 03, 2011 at 01:26:21AM -0300, Alexandre Torres Porres wrote:<br>> now, some files come in ratios as one symbol like this<br>> <br>> 5/4<br>> 3/2<br>> 7/4<br>> <br>> I'd need to break them into different characters, then treat as numbers to<br>> get interval in cents. How do I do that? I believe I can't do it in any way<br>> with vanilla objects, right?<br>> <br>> thanks<br>> Alex<br>> <br>> <br>> <br>> 2011/8/3 Alexandre Torres Porres <<a
ymailto="mailto:porres@gmail.com" href="mailto:porres@gmail.com">porres@gmail.com</a>><br>> <br>> > yeah, it works :)<br>> ><br>> > I knew there had to be an easier way other than the mess I did.<br>> ><br>> > Perfect, Thanks<br>> ><br>> > This is a very cool addon feature to my stuff I'm showing at PdCon, see you<br>> > all there.<br>> ><br>> > See you all there soon!<br>> ><br>> ><br>> ><br>> ><br>> > 2011/8/3 Miller Puckette <<a ymailto="mailto:msp@ucsd.edu" href="mailto:msp@ucsd.edu">msp@ucsd.edu</a>><br>> ><br>> >> HI Alex --<br>> >><br>> >> Have you tried sending textfile an "open [my-filename] cr" message? The<br>> >> "cr" flag asks to interpret newlines as end-of-list.<br>> >><br>> >> cheers<br>> >> Miller<br>> >><br>> >> On Tue, Aug 02, 2011 at
11:51:17PM -0300, Alexandre Torres Porres wrote:<br>> >> > Hi folks<br>> >> ><br>> >> > Back in the end of my masters, I did make something that allows you to<br>> >> load<br>> >> > scales from the Scala software into Pd, which has a database of over<br>> >> 4000<br>> >> > scales.<br>> >> ><br>> >> > Check the software and data bank here<br>> >> <a href="http://www.huygens-fokker.org/scala/" target="_blank">http://www.huygens-fokker.org/scala/</a><br>> >> ><br>> >> > It's an extremely powerful tool for microtonality, but you may not care<br>> >> for<br>> >> > that and just want to use the scale data bank in Pd.<br>> >> ><br>> >> > Anyway, I have a way that exports the from the Scala software into a<br>> >> text<br>> >> > file that opens in this
specific subpatch of mine.<br>> >> ><br>> >> > But I was trying to do something easier, and that is just load these<br>> >> *.scl<br>> >> > files into [textfile] or [msgfile] for example, and extracting the list<br>> >> of<br>> >> > these scale intervals in cents.<br>> >> ><br>> >> > Here's what one of these files look like<br>> >> ><br>> >> ><br>> >> > ==============<br>> >> ><br>> >> > ! 08-11.scl<br>> >> > !<br>> >> > 8 out of 11-tET<br>> >> > 8<br>> >> > !<br>> >> > 218.18182<br>> >> > 327.27273<br>> >> > 436.36364<br>> >> > 654.54545<br>> >> > 763.63636<br>> >> > 872.72727<br>> >> > 1090.90909<br>> >> >
2/1<br>> >> ><br>> >> ><br>> >> > ===============<br>> >> ><br>> >> > So I assumed it'd be easy to extract each cents value and make a list<br>> >> out of<br>> >> > it, but I was wrong. Don't know why but it doesn't load this in separate<br>> >> > lines, maybe because it is not a *.txt file at all.<br>> >> ><br>> >> > And anyway, I'm getting in Pd just a list, so the above file, for<br>> >> example,<br>> >> > file becomes<br>> >> ><br>> >> ><br>> >> > list ! 08-11.scl ! 8 out of 11-tET 8 ! 218.182 327.273 436.364 654.545<br>> >> > 763.636 872.727 1090.91 2/1<br>> >> ><br>> >> ><br>> >> > I seem to have found a messy way to get the list out of it, but maybe<br>> >> you<br>> >> > people know of something really
simple and elegant with some extended<br>> >> > objects.<br>> >> ><br>> >> ><br>> >> > Thanks<br>> >> > Alex<br>> >><br>> >> > _______________________________________________<br>> >> > <a ymailto="mailto:Pd-list@iem.at" href="mailto:Pd-list@iem.at">Pd-list@iem.at</a> mailing list<br>> >> > UNSUBSCRIBE and account-management -><br>> >> <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>> >><br>> >><br>> ><br><br>> _______________________________________________<br>> <a ymailto="mailto:Pd-list@iem.at" href="mailto:Pd-list@iem.at">Pd-list@iem.at</a> mailing list<br>> UNSUBSCRIBE and account-management -> <a href="http://lists.puredata.info/listinfo/pd-list"
target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br><br><br>_______________________________________________<br><a ymailto="mailto:Pd-list@iem.at" href="mailto:Pd-list@iem.at">Pd-list@iem.at</a> mailing list<br>UNSUBSCRIBE and account-management -> <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br><br><br></div></div></blockquote></div></div></body></html>