sending dynamic jitter object data to max object

Jan 6, 2008 at 1:41pm

sending dynamic jitter object data to max object

#35237
Jan 6, 2008 at 6:25pm

#119949
Jan 6, 2008 at 8:55pm

#119950
Jan 6, 2008 at 8:58pm

#119951
Jan 6, 2008 at 11:24pm

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

#119952
Jan 6, 2008 at 11:54pm

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
>
>

#119953
Jan 7, 2008 at 12:19am

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
>>
>>

#119954

You must be logged in to reply to this topic.