multslider displayed in jit.gl.cornerpin

wbreidi's icon

Hi,
This is probably impossible to do, but is there a way to display graphically my [multislider] object in a [jit.gl.cornerpin] object or in a [jit.gl.videoplane] !!?
Thanks

Roman Thilenius's icon

in theory... by recording the screen... but it will be much easier to create your own "multislider" using GL/mgraphics/jit.lcd

wbreidi's icon

Hi Roman, I am receiving OSC data that is displayed in realtime by my multislider, and since this slider is displaying visual information I would like to include it in my jit.world context. But, I don't see how I could do it with mgrpahics and jit.lcd?

Roman Thilenius's icon

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 23 263 77 9109513 jit.lcd;
#P newex 67 75 55 9109513 !- 100;
#P newex 414 225 80 9109513 list frgb 200 0 0;
#P newex 537 205 80 9109513 loadbang;
#P newex 326 225 80 9109513 list brgb 0 0 0;
#P newex 67 122 77 9109513 t b i clear;
#P number 67 33 35 9 0 100 3 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P user lcd 167 278 128 128 1 1 0 0 0;
#P newex 119 196 182 9109513 pak paintrect 0 0 10 100;
#P connect 5 0 4 0;
#P connect 5 0 6 0;
#P connect 2 0 7 0;
#P connect 7 0 3 0;
#P connect 0 0 1 0;
#P connect 3 1 0 2;
#P connect 6 0 1 0;
#P connect 4 0 1 0;
#P connect 3 2 1 0;
#P window clipboard copycount 9;

tmhglnd's icon

I've done it like this, using jit.gen and jit.matrix to fill a matrix with white/black based on the multislider value.

Max Patch
Copy patch and select New From Clipboard in Max.

kLSDiz's icon

Wa have a jit.graph object just for that purpose:

Max Patch
Copy patch and select New From Clipboard in Max.

tmhglnd's icon

Of course! Totally forgot about jit.graph.

wbreidi's icon

This is great. Thank you Roman, Timo and KLSDIZ. I have 5 sliders in my multislider with 5 different colors. Does Jit.graph allow me to have a different color for each slider? I looked at the help file but could not find the answer.

Roman Thilenius's icon

you could use a still image matrix with the colors and the jit.graph as mask.