Oct 30, 2006 at 7:10pm
Hi. I’m stuck again… Finally I’m talking to a matrix in my patch.
I’m using the windows sdk, while reading the new mac sdk. Is this maybe the
What the hell am I missing here? I don’t get any errors from max or my
void jit_csvs_stream(t_jit_csvs *x, long offset)
// ———-this one works fine
// ——– this seems to do nothing
Oct 30, 2006 at 8:35pm
After some further investigation I drew the conclusion that you probably
On 10/30/06, Thijs Koerselman
> Hi. I’m stuck again… Finally I’m talking to a matrix in my patch.
> x->pos_mx is a valid pointer to a t_jit_matrix. The atom array is filled
> with valid arguments. The setall() function works fine, the setcell()
> function does nothing.
> I’m using the windows sdk, while reading the new mac sdk. Is this maybe
> the problem? I noticed that jit_object_method_typed is also not available
> for windows….(?).
> What the hell am I missing here? I don’t get any errors from max or my
> compiler. If setcell() is not available what methods can I use for fast
> matrix access? In this case I want to write xyz values to a 3 plane matrix.
> cheers, -thijs
> void jit_csvs_stream(t_jit_csvs *x, long offset)
> long mrk_id = 5, tmplong;
> t_mrk *m = NULL;
> long argc = 5;
> t_atom argv;
> t_atom tmpatom;
> m = jit_csvs_get_marker(x, mrk_id, offset);
> jit_atom_setlong(argv, offset);
> jit_atom_setlong(argv+1, mrk_id);
> // ———-this one works fine
> jit_atom_setfloat(&tmpatom, (float)(offset/128.f));
> jit_object_method(x->pos_mx, gensym(“setall”),0L,1,&tmpatom);
> // ——– this seems to do nothing
> jit_object_method(x->pos_mx, gensym(“setcell”),0L,argc,argv);
> post(“marker pointer null”);
Oct 30, 2006 at 10:24pm
On Oct 30, 2006, at 12:35 PM, Thijs Koerselman wrote:
> After some further investigation I drew the conclusion that you
From your code sample, it appears that you’re forgetting to use the
However, if you’re going to set lots of values in your matrix, it’s
#define CELL_PTR_1D (info,data,x) (((uchar *)(data))+(info)->dimstride
f = (float *) CELL_PTR_2D(info,data,x,y);
Oct 30, 2006 at 10:45pm
Thanks Joshua, didn’t know about the delimiters. I guess I’m used to js too
It turned out to be quite easy to access my matrix directly. As it is always
On 10/30/06, Joshua Kit Clayton
You must be logged in to reply to this topic.