From djiamnot at gmail.com Thu Nov 1 22:26:27 2007 From: djiamnot at gmail.com (Mike) Date: Thu Nov 1 22:26:29 2007 Subject: [java-dev] jit.glue confusion Message-ID: <1d3fe.472aa6f2@www.cycling74.com> Hi, from my last lesson I learned that jitter objects that require multiple input matrices need to have an array of jitter matrices as input to the .matrixcalc method. so I have : int INSTANCES=4; JitterMatrix tiles=new JitterMatrix[INSTANCES]; JitterObject glue=new JitterObject("jit.glue"); public void setup(){ players=new StripsPlayer[INSTANCES]; tiles=new JitterMatrix[INSTANCES]; out=new JitterMatrix("FloorOut",4,"char",24,24); glue=new JitterObject("jit.glue"); glue.send("rows", 2); glue.send("columns",2); for (int i=0;i References: <1d3fe.472aa6f2@www.cycling74.com> Message-ID: <1079b050711012151x20b168dcm3c178b39de6d5bb3@mail.gmail.com> I'm not sure that glue and scissors work in scripting. You can do exactly the same thing by use the src/dstdim attrs of jit.matrix though. wes On 11/1/07, Mike wrote: > > Hi, > > from my last lesson I learned that jitter objects that require multiple input matrices need to have an array of jitter matrices as input to the .matrixcalc method. > > so I have : > > int INSTANCES=4; > > JitterMatrix tiles=new JitterMatrix[INSTANCES]; > JitterObject glue=new JitterObject("jit.glue"); > public void setup(){ > players=new StripsPlayer[INSTANCES]; > tiles=new JitterMatrix[INSTANCES]; > out=new JitterMatrix("FloorOut",4,"char",24,24); > glue=new JitterObject("jit.glue"); > glue.send("rows", 2); > glue.send("columns",2); > for (int i=0;i players[i]=new StripsPlayer(i); > tiles[i]=new JitterMatrix("tile_"+i,4,"char",12,12); > tiles[i].setAdapt(1); > } > } > > public void bang(){ > for (int i = 0; i < INSTANCES; i++) { > tiles[i].frommatrix(players[i].playStrip()); > } > glue.matrixcalc(tiles, out); > outlet(0,"jit_matrix",out.getName()); > } > > Problem? > all I get is a matrix with only one of the tiles (tile[0]) playing (i.e. only the first quater of the output window is occupied). > > Note that playStrip()method returns a valid JitterMatrix. > now, when i plug these things into inlets (bypassing glue) I get correct content out of 4 outlets. > > am i doing something wrong? > > m. > -- > -- > TBD > _______________________________________________ > java-dev mailing list > java-dev@cycling74.com > http://www.cycling74.com/mailman/listinfo/java-dev > From djiamnot at gmail.com Thu Nov 1 23:09:11 2007 From: djiamnot at gmail.com (Mike) Date: Thu Nov 1 23:09:13 2007 Subject: [java-dev] Re: jit.glue confusion In-Reply-To: <1079b050711012151x20b168dcm3c178b39de6d5bb3@mail.gmail.com> Message-ID: <1d400.472ab0f7@www.cycling74.com> Quote: wesley.hoke@gmail.com wrote on Fri, 02 November 2007 00:51 ---------------------------------------------------- > I'm not sure that glue and scissors work in scripting. You can do > exactly the same thing by use the src/dstdim attrs of jit.matrix > though. > Yes, that was my plan "B". thanks. m. -- -- TBD From Thinksamuel at yahoo.com Mon Nov 12 03:59:27 2007 From: Thinksamuel at yahoo.com (Samuel Van Ransbeeck) Date: Mon Nov 12 03:59:29 2007 Subject: [java-dev] Re: experience with stockwatch anyone? In-Reply-To: <1c736.46fd5153@www.cycling74.com> Message-ID: <1d7d9.4738320e@www.cycling74.com> I tried to integrate floatdata utlet, but apparently that doesn't exist. I don't see what I can do more? I know there must be an easy solution but what? Yes, I know I ask alot but I don't want to give up this project. From jbmaxwell at rubato-music.com Mon Nov 12 23:19:30 2007 From: jbmaxwell at rubato-music.com (jbmaxwell) Date: Mon Nov 12 23:19:32 2007 Subject: [java-dev] Just how borked is Java 1.5 in Leopard? Message-ID: <1d841.473941f2@www.cycling74.com> I know it's borked... I'm just not sure why, how, or in what specific departments. Does anybody know the details on what Apple did to the JVM in Leopard? It works, but it seems to perform quite differently, at least in my case. Basically, it feels quick once it's got all the necessary classes loaded, but is _very_ slow loading new classes. The first time I run my app, it's much slower than in Tiger. Then, if I leave it open, repeated use seems to be nice a speedy (this is a particular analysis routine, which I run on a midi file, so it easy to get a subjective idea of how fast it's running). Anybody know what this is all about, and whether I might be able to fix it with any specific optimizations, or JVM settings? Kind of mysterious. J. From jbmaxwell at rubato-music.com Tue Nov 13 18:39:32 2007 From: jbmaxwell at rubato-music.com (jbmaxwell) Date: Tue Nov 13 18:39:34 2007 Subject: [java-dev] Re: Just how borked is Java 1.5 in Leopard? In-Reply-To: <1d841.473941f2@www.cycling74.com> Message-ID: <1d890.473a51d4@www.cycling74.com> bump, bump...? Well, it seems like some classloader thing. I specified my directory, but it still does a nice little hang when instantiating new classes for the first time. Very odd. It's not that big a deal, since things move along just fine after the necessary classes have been loaded at least once, but it's a bit annoying. Am I the only one having this problem? Or am I just the only one silly enough to be doing mxj development in 10.5 already? From Thinksamuel at yahoo.com Fri Nov 23 05:29:37 2007 From: Thinksamuel at yahoo.com (Samuel Van Ransbeeck) Date: Fri Nov 23 05:29:39 2007 Subject: [java-dev] It works :) In-Reply-To: <1c736.46fd5153@www.cycling74.com> Message-ID: <1dbfd.4746c7b0@www.cycling74.com> I got the thing working :)))))) I used (wel my teacher used) the ZL NTH object to get an element from the list and from there I can move on. Just one question left, I added in the javacode AVG_VOL and VOLUME (coming from yahoo Finance)as static finals, because I want those values as well. However, after I compile the thing, it doesn't appear in the scrolling window, nor in the max inspector. Do I have to add an element more and if yes, where? From martinrobinson_mail at yahoo.co.uk Sat Nov 24 13:46:27 2007 From: martinrobinson_mail at yahoo.co.uk (Martin Robinson) Date: Sat Nov 24 13:46:28 2007 Subject: [java-dev] rendering HTML in Jitter Message-ID: <1dc39.47488da2@www.cycling74.com> Hello, I've just finished an initial version of a mxj/Jitter class which renders html in a Jitter matrix. Available here: http://miajo.co.uk/?MaxMSP:mxj_jithtmlrender It needs Cobra/Lobo to be installed (see the README in the distribution) and the help file uses jhno's jsscrollbar. Cobra/Lobo: http://html.xamjwg.org/cobra.jsp jhno: http://www.delicateear.com/maxmsp.html I made it for relatively simple text formatting but it seems fairly robust (if slow) with more complex pages (see the Wikipedia example in the help file). I'd be keen for some feedback if there are any serious anomalies (there are quite a few kludges in there to get it to work). I know for example, that text color tags in the tag don't change the body text color (have a look at jhno's homepage for proof) and CSS generally works but not with background images set using CSS (see my miajo homepage for proof of that). I'd be especially grateful to know/if how it works on XP (I don't have access to an XP machine with Max/MSP having moved jobs back to Mac-centricity!) Regards, Martin -- martin robinson max/msp java c installations/performance and systems