[javascript-dev] reading from different inlets
Danjel van Tijn
danjel at gmail.com
Fri May 16 22:34:59 MDT 2008
- Previous message: [javascript-dev] Re: Re: Re: Strange "undefined" problem using screentoworld...
- Next message: [javascript-dev] reading from different inlets
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Ok I must be missing something painfully obvious in concept but I have been bashing my head on this for a while now.
This should be so simple:
I am making a js object to process a CC# and it's CC value (from a CTLIN object). I assume I would do this by defining a js object that has 2 inlets? or should it be just 1 inlet?
How do I read the second inlet? This is what I am missing somehow.
Here is an example of how I would expect to use the code:
inlets = 1;
outlets = 2;
function msg_int(cc)
{
var val = inlet(1); //This does not work
switch(cc)
{
case 1:
outlets(0,val);
break;
case 2:
outlets(0,val);
break;
}
}
help is appreciated!
- Previous message: [javascript-dev] Re: Re: Re: Strange "undefined" problem using screentoworld...
- Next message: [javascript-dev] reading from different inlets
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
