<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div><span>In pd_typedmess of m_class.c, the float handler will currently throw an error if the arg isn't a float atom.  However, this could be changed so that if the arg is a symbol-atom Pd sends it through a binbuf "carwash" to check if it comes out as a float.  If so, it could send it on its way.  If not, it would throw the same error it currently does.</span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;"><br><span></span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;"><span>So</span></div><div
 style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;"><br><span></span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;"><span>[0(</span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;"><span>|</span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;"><span>[makefilename %d]</span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida
 Grande,sans-serif; background-color: transparent; font-style: normal;"><span>|</span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;"><span>[float $1(</span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;"><span>|</span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;"><span>[route float]</span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;"><span>|</span></div><div style="color: rgb(0, 0,
 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;"><span>[print success]<br></span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;"><br><span></span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;"><span>This wouldn't add any overhead to Pd's current message-dispatching system, as the conversion would only get triggered for symbol-args which currently throw an error.</span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style:
 normal;"><br><span></span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;"><span>-Jonathan<br></span></div> <div class="qtdSeparateBR"><br><br></div><div style="display: block;" class="yahoo_quoted"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div dir="ltr"> <font size="2" face="Arial"> On Tuesday, October 28, 2014 7:06 AM, Roman Haefeli <reduzent@gmail.com> wrote:<br> </font> </div>  <br><br> <div class="y_msg_container">On Tue, 2014-10-28 at 09:21 +0100, Frank Barknecht wrote:<br>> Hi Chris,<br>> <br>> I think, for the way back some external based on atoi(3) or atof(3) is needed.<br>> I'm pretty sure
 someone has made one already. The "0" in the printed "symbol 0"<br>> is a real symbol atom itself, just like the word "zero" would. One could<br>> [select] it, but if you don't know what symbol-number youmight get, only atoX<br>> can convert back, I believe. But I might be wrong ...<br><br><br>I know of at least two ways to convert symbolic numbers into real<br>floats, but none of them is really satisfying. One is to save the symbol<br>or list containing symbolic numbers with [textfile] and re-read the file<br>afterwards. The other one is sending such a symbol/list through<br>[netsend]/[netreceive]. I consider them not satisfying because it either<br>involves an unnecessary file system access (and there is no save<br>temporary path that works across platforms), the other one is not<br>execution order safe.<br><br>How about a [list eval], that would re-evaluate the incoming list and<br>would consider only its plain content while disregarding the
 used atom<br>types. Does that make sense?<br><br>Roman<br><br>> On Sun, Oct 26, 2014 at 10:02:17PM +0800, Chris McCormick wrote:<br>> > Hi Frank,<br>> > <br>> > On 13/10/14 21:40, Frank Barknecht wrote:<br>> > >  [bang(<br>> > >  |<br>> > >  [oscformat 0]<br>> > >  |<br>> > >  [oscparse]<br>> > >  |<br>> > >  [print]<br>> > > <br>> > > It will print "symbol 0"!<br>> > <br>> > Seems you can do this with "list tosymbol" and also "makefilename %d" -<br>> > any idea how I can get from one of those symbols back to a proper float<br>> > again? I am sure I should know this by now!<br>> > <br>> > Cheers,<br>> > <br>> > Chris.<br>> > <br>> > -- <br>> > <a href="" class="removed-link" target="_blank">http://mccormick.cx/</a><br>>
 <br><br><br><br>_______________________________________________<br><a href="" class="removed-link" ymailto="mailto:Pd-list@lists.iem.at">Pd-list@lists.iem.at</a> mailing list<br>UNSUBSCRIBE and account-management -> <a href="" class="removed-link" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br><br><br></div>  </div> </div>  </div> </div></body></html>