sending dynamic jitter object data to max object


    Jan 06 2008 | 1:41 pm

    • Jan 06 2008 | 6:25 pm
    • Jan 06 2008 | 8:58 pm
    • Jan 06 2008 | 11:24 pm
      On Jan 6, 2008, at 8:58 PM, Wesley Smith wrote:
      > If you're already in the max object, then it's much simpler. Have a > look at max_jit_obex_jitob_get. This will give you the Jitter object > which you can then query for output. > > wes
      once with the object, how do i query, _with an argument_, for output?
      it's what i've been trying, ie, o=max_jit_obex_jitob_get(x); ... for(i=0;i jit_atom_set_long(av,i); // the arg to the function jit_object_method(o,ps_putnumdata,&ac,&av); // this calls function and brings it an atom with a number ... jit_object_method(o,ps_readthisdata,&ac2,&av2); // this reads from data previous func been messing with
      }
      doesnt work because using jit_object_method wrongly? how can that argument reach inside the jitter function? could you pseudo-code please?
      a
    • Jan 06 2008 | 11:54 pm
      Here's the generic call:
      jit_object_method(jitob, method_name, method_name, argc, argv);
      note that you have to repeat the function name twice.
      you can also call the attr functions:
      long val = jit_attr_getlong(jitob, attr_name); jit_attr_setlong(jitob, attr_name, val);
      wes
      On Jan 6, 2008 3:24 PM, andre sier wrote: > > On Jan 6, 2008, at 8:58 PM, Wesley Smith wrote: > > > If you're already in the max object, then it's much simpler. Have a > > look at max_jit_obex_jitob_get. This will give you the Jitter object > > which you can then query for output. > > > > wes > > > once with the object, how do i query, _with an argument_, for output? > > it's what i've been trying, ie, > o=max_jit_obex_jitob_get(x); > ... > for(i=0;i > jit_atom_set_long(av,i); // the arg to the function > jit_object_method(o,ps_putnumdata,&ac,&av); // this calls function > and brings it an atom with a number > ... > jit_object_method(o,ps_readthisdata,&ac2,&av2); // this reads from > data previous func been messing with > > } > > doesnt work because using jit_object_method wrongly? > how can that argument reach inside the jitter function? > could you pseudo-code please? > > > > a > >
    • Jan 07 2008 | 12:19 am
      it works!!!
      :)
      thanks!!!!
      a
      On Jan 6, 2008, at 11:54 PM, Wesley Smith wrote:
      > Here's the generic call: > > jit_object_method(jitob, method_name, method_name, argc, argv); > > note that you have to repeat the function name twice. > > you can also call the attr functions: > > long val = jit_attr_getlong(jitob, attr_name); > jit_attr_setlong(jitob, attr_name, val); > > wes > > > On Jan 6, 2008 3:24 PM, andre sier wrote: >> >> On Jan 6, 2008, at 8:58 PM, Wesley Smith wrote: >> >>> If you're already in the max object, then it's much simpler. Have a >>> look at max_jit_obex_jitob_get. This will give you the Jitter >>> object >>> which you can then query for output. >>> >>> wes >> >> >> once with the object, how do i query, _with an argument_, for output? >> >> it's what i've been trying, ie, >> o=max_jit_obex_jitob_get(x); >> ... >> for(i=0;i >> jit_atom_set_long(av,i); // the arg to the function >> jit_object_method(o,ps_putnumdata,&ac,&av); // this >> calls function >> and brings it an atom with a number >> ... >> jit_object_method(o,ps_readthisdata,&ac2,&av2); // >> this reads from >> data previous func been messing with >> >> } >> >> doesnt work because using jit_object_method wrongly? >> how can that argument reach inside the jitter function? >> could you pseudo-code please? >> >> >> >> a >> >>