Re: [PD] Problem with lists and data

2011-09-01 Thread Mathieu Bouchard
On Thu, 1 Sep 2011, Thomas Mayer wrote: if (float_value == 0 && strcmp(string_value, "0") != 0) { SETSYMBOL(&out_data[1], gensym(string_value)); } else { SETFLOAT(&out_data[1], float_value); } Now, it is working as intended. Is this the "st

Re: [PD] Problem with lists and data

2011-08-31 Thread Thomas Mayer
On 31.08.2011 23:19, Jonathan Wilkes wrote: That probably means you're formatting that part of your list as symbol-atom '1' instead of float-atom '1'. Thus, the [route] object is outputting symbol-atom '1', which is just a message where the selector is the symbol-atom '1'. The right inlet of [f

Re: [PD] Problem with lists and data

2011-08-31 Thread Jonathan Wilkes
- Original Message - > From: Thomas Mayer > To: "pd-list@iem.at" > Cc: > Sent: Wednesday, August 31, 2011 4:28 PM > Subject: [PD] Problem with lists and data > > Hi there, > > while developping my CouchPdb library I came up with the followi

[PD] Problem with lists and data

2011-08-31 Thread Thomas Mayer
Hi there, while developping my CouchPdb library I came up with the following problem: I put out lists like this: list _id 1 list pitch 440 Now I am trying to get the values for _id and pitch as floats, but that does not seem to work: [couchdb] | [list trim] | [route _id pitch] \ | \