Forums > Jitter

js.jit.print

December 31, 2006 | 10:21 pm

I’ve run into enough trouble with jit.js.listener.bug that its time
to ask.

is there a way to call jit.print in js ? AND if not how do
other people troubleshoot jit.js.listener bugs?

while I’m at it. is there a comprehensive list of jit.js
keywords,methods, etc??? Allow me to humbly suggest that cycling
include js.jit documentation into the javascript PDF. it may be
redundant but one serves as an educational text, the other serves as
a reference. I also seem to recall seeing Luke D. using MSP in JS at
AES. Is that documented anywhere?


January 1, 2007 | 4:24 am

Since this question involves a Jitter object, I’m going to move this thread to the Jitter topic, although I suppose it would be at home in the JavaScript topic as well. In the future, if the question regards jit.* something, and it’s not jit.cellblock, the Jitter topic/list is the more appropriate place for this question. I know old habits are hard to break, but topic segregation is useful, especially when someone is searching. Thanks.


January 1, 2007 | 4:31 am

BTW, since I’ll be the first to admit that I’m not omniscient when it comes to topic segregation, if anyone ever feels like one of these topic moves is incorrect, please don’t hesitate to pipe up with an explanation as to why the move was wrong. If it’s prima facie I’ll move it back.

w


January 1, 2007 | 3:48 pm

Absolutely totally my fault.
happy new year all.
-matt
jitter mailing list
jitter@cycling74.com

http://www.cycling74.com/mailman/listinfo/jitter


January 2, 2007 | 9:16 pm

Doesn’t something like the following work?

var myprint = new JitterObject("jit.print");

function jit_matrix(mname)
{
myprint.matrixcalc(mname,null);
}

If the above doesn’t make sense to you, please take some time to re-
read the JS Jitter tutorials and examples.

There might be an issue with a null second arg to matrixcalc, in
which case, you can just pass in a dummy matrix, or the input matrix
name, since jit.print ignores any output matrix anyway.

-Joshua
jitter mailing list
jitter@cycling74.com

http://www.cycling74.com/mailman/listinfo/jitter


January 3, 2007 | 3:13 am

> Doesn’t something like the following work?
> var myprint = new JitterObject("jit.print");
> function jit_matrix(mname)
> {myprint.matrixcalc(mname,null);}
>
> re-read the JS Jitter tutorials and examples.
> .. issue w/ null second arg to matrixcalc….., … pass in a dummy
> matrix, …….
> -Joshua

Thanks for the reply Joshua. No luck though. I troubleshot my
problem a differnt way so this is not urgent. I did not mean to
imply that I was unwilling to read the tutorial.

using null quits max
sing anything else simply yeilds no result and no error.

no biggy.
-matt

I tried your code and the following
var myprint = null;
var myprint = new JitterObject("jit.print");
var colors = null;
var colors = new JitterMatrix(3,"float32",5,1);
var dummy = null;
var dummy = new JitterMatrix(3,"float32",5,1);
colors.name = "fleh";
for (var i = 0;i<5;i++)
{
colors.setcell(i,0,"plane",0,"val",0)
colors.setcell(i,0,"plane",1,"val",.2)
colors.setcell(i,0,"plane",2,"val",.4)
}

printerer(colors.name);

function printerer(mname)// maybe printer is a keyword?
{
myprint.matrixcalc(mname,dummy.name);
}


January 3, 2007 | 4:05 am

On Jan 2, 2007, at 7:13 PM, matthew aidekman wrote:
> hanks for the reply Joshua. No luck though. I troubleshot my
> problem a differnt way so this is not urgent. I did not mean to
> imply that I was unwilling to read the tutorial.
>
> using null quits max
> sing anything else simply yeilds no result and no error.

Aha. Upon initial glance I saw no reason why it shouldn’t work. On
closer inspection, I noticed that jit.print’s matrix_calc erroneously
assumes that a matrix and not a linked list will be passed into the
object, and will only work as called from C. SDK users are
recommended to *not* follow jit.print’s example. Authored long before
JS/Java support and barely touched since.

So, we can remedy in the future, but for now, you’ll need to iterate
across the matrix by hand to simulate the functionality of jit.print
on your own. Thanks for pointing this out, and sorry or the
misinformation and inconvenience.

-Joshua


November 27, 2012 | 11:05 am

Hi,

it seems that the problem still persists. Any chance to get this fixed?

best

Adrian


Viewing 8 posts - 1 through 8 (of 8 total)