3d oscilloscope

Feb 11, 2009 at 11:20am

3d oscilloscope

Hi i’m new at Jitter, i started building a 3d oscilloscope for audio signals of three sinusoidal oscillators and got stuck. I tried two ways: one is using 3 jit.gl.graphs, my problem is how to integrate their individual information in one 3d data object for display in the jit.gl.render. The second way was using a jit.poke~. although it looks nicer i casnnot manage to have a 3d display, just 2d.

I join my code for the first one because the second i not much more than the poke~ help file. Maybe you can give me some advice…

Cheers
Alberto

#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P message 605 89 18 9109513 30;
#P newex 170 301 234 9109513 jit.gl.graph blabla @color 1. 1. 1. 1. @rotatexyz 90 0 0;
#B color 5;
#P newex 132 333 234 9109513 jit.gl.graph blabla @color 1. 1. 1. 1. @rotatexyz 0 90 0;
#B color 5;
#P number 231 201 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 380 210 35 9 0 1 3 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 380 227 54 9109513 trigdir $1;
#P flonum 304 210 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 304 227 70 9109513 trigthresh $1;
#P message 231 227 61 9109513 trigchan $1;
#P message 483 90 23 9109513 200;
#P message 445 87 14 9109513 0;
#P message 537 79 21 9109513 0.5;
#P newex 538 56 45 9109513 loadbang;
#P newex 43 394 118 9109513 jit.gl.mesh blabla;
#P user ubumenu 0 125 68 9109513 0 1 1 0;
#X add points;
#X add lines;
#X add line_strip;
#X add line_loop;
#X add triangles;
#X add tri_strip;
#X add tri_fan;
#X add quads;
#X add quad_strip;
#X add polygon;
#X add tri_grid;
#X prefix_set 0 0 0;
#P flonum 704 116 35 9 0. 0 1 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 775 183 35 9 0. 5. 3 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 706 214 39 9109513 *~ 0.2;
#P newex 706 148 25 9109513 sig~;
#P newex 706 180 52 9109513 cycle~;
#B color 5;
#P flonum 588 112 35 9 0. 0 1 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 460 115 35 9 0. 0 1 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 168 58 35 9 0 3 3 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 168 75 45 9109513 mode $1;
#P number 221 57 35 9 1 0 1 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 221 74 78 9109513 downsample $1;
#P flonum 659 179 35 9 0. 5. 3 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 590 210 39 9109513 *~ 0.2;
#P newex 590 144 25 9109513 sig~;
#P newex 590 176 52 9109513 cycle~;
#B color 5;
#P flonum 529 182 35 9 0. 5. 3 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 460 213 39 9109513 *~ 0.2;
#P newex 460 147 25 9109513 sig~;
#P newex 460 179 52 9109513 cycle~;
#B color 5;
#P comment 592 245 41 9109513 volume;
#P number 304 55 35 9 0 100 3 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 304 74 74 9109513 circpoints $1;
#P newex 521 284 40 9109513 *~ 0.1;
#P flonum 592 260 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 562 284 40 9109513 *~ 0.1;
#P newex 95 257 56 9109513 jit.unpack 3;
#P newex 43 361 234 9109513 jit.gl.graph blabla @color 1. 1. 1. 1. @rotatexyz 0 0 90;
#B color 5;
#P newex 68 32 194 9109513 jit.gl.handle blabla @inherit_transform 1;
#P newex 68 218 113 9109513 jit.window blabla @fsaa 1;
#P newex 91 137 55 9109513 t b erase b;
#P newex 68 172 181 9109513 jit.gl.render blabla @depth_enable 1;
#P comment 521 358 65 9109513 • start audio;
#P newex 521 314 30 9109513 dac~;
#P message 558 315 27 9109513 stop;
#P number 131 54 28 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 521 336 65 9109513 startwindow;
#P toggle 91 54 15 0;
#P newex 91 77 50 9109513 qmetro 2;
#P newex 91 104 168 9109513 jit.catch~ 3 @mode 2 @framesize 256;
#P user panel 514 308 80 49;
#X brgb 255 255 255;
#X frgb 100 202 30;
#X border 2;
#X rounded 0;
#X shadow 0;
#X done;
#N vpatcher 86 108 243 289;
#P origin 0 397;
#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P hidden newex 347 321 105 9109513 bgcolor 255 230 230;
#P outlet 27 118 15 0;
#P window linecount 0;
#P message 27 98 69 9109513 fullscreen $1;
#P newex 27 37 40 9109513 key;
#P newex 27 58 54 9109513 select 27;
#P toggle 27 79 15 0;
#P connect 2 0 1 0;
#P connect 1 0 0 0;
#P connect 0 0 3 0;
#P connect 3 0 4 0;
#P pop;
#P newobj 68 195 82 9109513 p esc-fullscreen;
#P window linecount 2;
#P comment 341 47 167 9109513 the number of circumference points to render for each cylindrical slice;
#P connect 20 0 15 0;
#P connect 16 0 15 0;
#P connect 42 1 11 0;
#P connect 14 0 11 0;
#P connect 12 1 11 0;
#P connect 12 0 11 0;
#P connect 1 0 13 0;
#P connect 5 0 4 0;
#P connect 51 0 3 0;
#P connect 49 0 3 0;
#P connect 48 0 3 0;
#P connect 25 0 3 0;
#P connect 31 0 3 0;
#P connect 33 0 3 0;
#P connect 4 0 3 0;
#P connect 3 0 12 0;
#P connect 3 0 16 0;
#P connect 7 0 4 1;
#P connect 20 0 54 0;
#P connect 16 1 54 0;
#P connect 34 0 33 0;
#P connect 29 0 3 1;
#P connect 20 0 55 0;
#P connect 16 2 55 0;
#P connect 32 0 31 0;
#P connect 53 0 48 0;
#P connect 39 0 3 2;
#P connect 46 0 21 0;
#P connect 21 0 20 0;
#P connect 50 0 49 0;
#P connect 52 0 51 0;
#P connect 44 0 46 0;
#P connect 47 0 35 0;
#P connect 35 0 24 0;
#P connect 24 0 23 0;
#P connect 23 0 25 0;
#P connect 44 0 47 0;
#P connect 26 0 25 1;
#P connect 29 0 19 0;
#P connect 25 0 19 0;
#P hidden connect 6 0 9 0;
#P hidden connect 8 0 9 0;
#P connect 19 0 9 0;
#P connect 45 0 26 0;
#P connect 44 0 45 0;
#P fasten 17 0 9 1 567 307 546 307;
#P connect 18 0 19 1;
#P connect 39 0 17 0;
#P connect 45 0 36 0;
#P connect 36 0 28 0;
#P connect 28 0 27 0;
#P connect 27 0 29 0;
#P connect 18 0 17 1;
#P connect 44 0 56 0;
#P connect 30 0 29 1;
#P connect 45 0 30 0;
#P connect 56 0 41 0;
#P connect 45 0 41 0;
#P connect 41 0 38 0;
#P connect 38 0 37 0;
#P connect 37 0 39 0;
#P connect 40 0 39 1;
#P connect 45 0 40 0;
#P window clipboard copycount 57;

#42239

You must be logged in to reply to this topic.