[PD] Problem with lists and data
Thomas Mayer
thomas at residuum.org
Wed Aug 31 22:28:43 CEST 2011
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]
\ |
\ |
[f] [f]
But I am always getting the message:
error: inlet: expected 'float' but got '1'
When I try to use [symbol] instead of [f], I get a similar error message.
In my object I do the following:
t_atom out_data[2]
SETSYMBOL(&out_data[0], gensym(key));
SETFLOAT(&out_data[1], json_object_get_double(val));
outlet_list(data_outlet, &s_list, 2, &out_data[0]);
What am I doing wrong?
Best regards,
Thomas
--
"Chaney was aware that anything, however small, can get the eye of the
media if it's repulsive enough." (Robert Anton Wilson - The Universe
Next Door)
http://www.residuum.org/
More information about the Pd-list
mailing list