You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am experiencing troubles in re-using the code I wrote 6 years ago with the new SDK.
Particularly, I am not able to retrieve the value from the atom I pass in to the object at instantiation type.
The code looks like
DLShift(t_symbol * sym, long ac, t_atom * av) {
setupIO(1, 1);
/*init conditions*/if (ac < 1) post ("syntax error: ratio required");
else {
if (av->a_type == A_LONG) m_ratio = atom_getlong(av);
elseif (av->a_type == A_FLOAT) m_ratio = atom_getfloat(av);
elseif (av->a_type == A_SYM) post ("not a number");
}
but every time I get something like ratio: 0.00.
I tried to switch using something like:
Activity