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