Jitter inside Pluggo (qlim/speedlim problem)

Dec 17, 2007 at 7:32pm

Jitter inside Pluggo (qlim/speedlim problem)

I’ve searched every post I could find, but there isn’t much detail on using Jitter inside of plug-ins and what does/doesn’t work. Right now I’m trying to run the simple patch at the end of this message. So far I have had to include the following files into each build (I am on WinXP SP2):

cg.dll
cgGL.dll
jitlib.dll
all .mxe Jitter externs used

After including all those files I no longer get any error messages when running the patch as a plug-in, but it does not work properly when the speedlim (or qlim) object is used to slow down the graphic updates. When I run it inside a VST host the jit.pwindow object freezes to a single frame. If I remove the qlim/speedlim object from the chain it runs fine but uses more CPU than I’d like. If anyone can help it would be greatly appreciated.

Here is my patch with the speedlim object bypassed:

#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P newex 166 41 58 9109513 speedlim 50;
#P newex 180 86 40 9109513 t b b b;
#P button 37 333 15 0;
#P button 335 89 15 0;
#P button 84 117 15 0;
#P newex 66 68 43 9109513 plugout~;
#P newex 67 28 37 9109513 plugin~;
#N plugconfig;
#C useviews 1 1 1 1;
#C numprograms 64;
#C preempt 1;
#C sigvschange 1;
#C sigvsdefault 32;
#C setsize 1000 500;
#C defaultview Interface 0 0 0;
#C dragscroll 1;
#C noinfo;
#C package ????;
#C uniqueid 68 229 61;
#C initialpgm 1;
#P newobj 204 261 51 9109513 plugconfig;
#P newex 84 144 115 9109513 jit.matrix 1 float32 1024 1;
#P flonum 256 46 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 83 199 175 9109513 jit.expr @expr “sin(log10(norm[0])*in[1])”;
#P user jit.pwindow 343 152 514 258 1 0 0 0 0 0;
#P newex 45 385 288 9109513 jit.gl.render lines @scale 2. 1. 1. @erase_color 1. 1. 1. 1. @ortho 2;
#P newex 43 359 45 9109513 t b erase;
#P newex 337 118 131 9109513 jit.matrix lines 4 char 512 256;
#P window linecount 2;
#P newex 39 291 261 9109513 jit.gl.graph lines @color 0. 0. 0. 1. @circpoints 1 @line_width 4 @antialias 1 @depth_enable 0 @blend_enable 1;
#P window linecount 1;
#P newex 39 251 95 9109513 jit.matrix processed2;
#P connect 2 0 5 0;
#P connect 13 0 2 0;
#P connect 15 0 2 0;
#P connect 7 0 6 1;
#P connect 7 0 15 0;
#P connect 7 0 16 0;
#P connect 10 1 11 1;
#P connect 12 0 8 0;
#P connect 15 2 8 0;
#P connect 8 0 6 0;
#P connect 10 0 11 0;
#P connect 3 0 4 0;
#P connect 3 1 4 0;
#P connect 14 0 3 0;
#P connect 15 1 3 0;
#P connect 0 0 1 0;
#P connect 6 0 0 0;
#P window clipboard copycount 17;

#35050
Dec 31, 2007 at 12:57am

hi,

i enjoy seeing i not the only man who use jitter in pluggo !
so thanks !

first question : which version of Max/MSP, Jitter, and Pluggo do you use ?
i use Max 4.5.5, Jitter 1.5.2 and pluggo 3.5.4 (waiting for an update from my administrator…)

i tried your patch and added something.
first i’ve tried without adding any box.
then i add the jit.fpsgui to see the refresh rate
and then i added the qlim

i saw that without the qlim i reach 60fps inside the VST host ! (cubase SX) but with the qlim i couldn’t go above 21,5fps…

you can also draw directly in the jit.pwindow but i’ve got a bug with this, the pwindow shows the right things but i can saw it in the parameter, in the pluggo info and in the message pages…
i hope it was fixed now…

#P window setfont “Sans Serif” 9.;
#P number 293 200 35 9 0 0 1 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P window linecount 1;
#P newex 182 227 27 9109513 qlim;
#P user jit.fpsgui 279 389 60 9109513 0;
#P number 122 137 35 9 0 60 3 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 123 158 37 9109513 !/ 1000;
#P message 235 103 44 9109513 -24 2000;
#P newex 224 178 40 9109513 sel 0 1;
#P toggle 219 152 15 0;
#P user jit.fpsgui 212 392 60 9109513 0;
#P message 171 103 41 9109513 24 2000;
#P newex 171 128 51 9109513 line -24 40;
#P newex 125 227 40 9109513 t b b b;
#P button 40 385 15 0;
#P button 338 141 15 0;
#P button 87 169 15 0;
#P newex 69 120 43 9109513 plugout~;
#P newex 70 80 37 9109513 plugin~;
#N plugconfig;
#C useviews 1 1 1 1;
#C numprograms 64;
#C preempt 1;
#C sigvschange 1;
#C sigvsdefault 32;
#C setsize 1000 500;
#C defaultview Interface 0 0 0;
#C dragscroll 1;
#C noinfo;
#C package ????;
#C uniqueid 68 229 61;
#C initialpgm 1;
#P newobj 207 313 51 9109513 plugconfig;
#P newex 87 196 115 9109513 jit.matrix 1 float32 1024 1;
#P flonum 251 224 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 86 251 175 9109513 jit.expr @expr “sin(log10(norm[0])*in[1])”;
#P user jit.pwindow 366 205 514 258 1 0 0 0 0 0;
#P newex 48 437 303 9109513 jit.gl.render lines @scale 2. 1. 1. @erase_color 0.3 0.3 0.3 1. @ortho 2;
#P newex 46 411 45 9109513 t b erase;
#P newex 363 170 131 9109513 jit.matrix lines 4 char 512 256;
#P window linecount 2;
#P newex 42 343 261 9109513 jit.gl.graph lines @color 0. 0. 0. 1. @circpoints 1 @line_width 4 @antialias 1 @depth_enable 0 @blend_enable 1;
#P window linecount 1;
#P newex 42 303 95 9109513 jit.matrix processed2;
#P user panel 0 1 1000 25;
#X brgb 191 191 191;
#X frgb 0 0 0;
#X border 1;
#X rounded 0;
#X shadow 0;
#X done;
#P connect 3 0 6 0;
#P connect 14 0 3 0;
#P connect 16 0 3 0;
#P connect 6 0 25 0;
#P connect 8 0 26 0;
#P connect 8 0 7 1;
#P connect 17 0 8 0;
#P connect 21 1 22 0;
#P connect 20 0 21 0;
#P connect 17 1 20 0;
#P connect 5 0 19 0;
#P connect 23 0 17 2;
#P connect 27 0 26 1;
#P connect 22 0 17 0;
#P connect 18 0 17 0;
#P connect 21 0 18 0;
#P connect 26 0 16 0;
#P connect 24 0 23 0;
#P connect 11 1 12 1;
#P connect 13 0 9 0;
#P connect 16 2 9 0;
#P connect 9 0 7 0;
#P connect 11 0 12 0;
#P connect 4 1 5 0;
#P connect 4 0 5 0;
#P connect 15 0 4 0;
#P connect 16 1 4 0;
#P connect 1 0 2 0;
#P connect 7 0 1 0;
#P window clipboard copycount 28;

#119035

You must be logged in to reply to this topic.