gensym("foo") did the trick. Now I just call
`outlet_anything(x->outlist, gensym("foo"), 2, x->vec);` and it works.
Thanks!
On 9/21/23 11:30, Christof Ressi wrote:
Where do you see "atom_gensym"?
Ahhh, it is similar to "atom_getsymbol", but also converts floats to
strings (instead of
Where do you see "atom_gensym"?
Ahhh, it is similar to "atom_getsymbol", but also converts floats to
strings (instead of returning an empty symbol). I didn't even know this
function existed :) It's indeed easy to confuse with "gensym".
IMO,
I've tried `t_symbol *s = atom_gensym("foo")`
Where do you see "atom_gensym"? I guess you confused it with
"atom_getsymbol" (which tries to interpret an atom as a symbol).
but how do I get a pointer to a "foo" symbol?
gensym("foo")
On 21.09.2023 10:19, Alexandros Drymonitis wrote:
That's
That's what I need, indeed. I can't get my head around how to create the
selector symbol though. The second argument to outlet_anything is a
pointer to a t_symbol, but how do I get a pointer to a "foo" symbol?
I've tried `t_symbol *s = atom_gensym("foo")` but I get a warning the
atom_gensym()
`outlet_list(x->outlist, _list, 3, x->outlist)`;
You accidentally passed the outlet itself as the last argument (t_atom
*) to outlet_list().
Unfortunately, C only offers minimal type checking and happily casts
between unrelated pointer types. (With C++ this wouldn't compile in the
first
That error indicates that one of the atoms has an a_type field that is
neither A_FLOAT nor A_SYMBOL.
It's odd that in `outlet_list(x->outlist, _list, 3, x->outlist)`
you're using x->outlist for two of the arguments - the first should be
the outlet, and the other one should be the array of 3
I'm trying to output a list of values with a selector. For example, "foo
1 2". I though of creating a vector of t_atom, where a_type of the first
element would be A_SYMBOL, and the other two would be A_FLOAT, and after
a list outlet is created in the new method like this:
`x->outlist =