Forums > MaxMSP

displaying a waveform in a LCD ( Bennies ?)

July 22, 2006 | 11:56 pm

Bonjour chere communaute, i am looking for a patch that Benjamin Thigpen did a few years ago, ( i cant remeber if it was part of the Bennies ) , where the waveform of a soundfile would be displayed into an LCD object. does anybody have that patch in his/her drawers and would be so kind to share it ?

thanks in advance

Karlo


July 23, 2006 | 9:02 am

save as showwf~

max v2;
#N vpatcher 305 233 935 657;
#P comment 443 355 142 1048585 Benjamin Thigpen , Hans Tutschku;
#P comment 445 366 136 1048585 Ircam /Centre Georges Pompidou;
#P comment 500 378 25 1048585 1999;
#P newex 57 205 27 196617 b;
#P newex 503 46 28 196617 t b s;
#P newex 521 68 60 196617 prepend set;
#P message 503 96 82 196617 $1;
#P newex 503 117 66 196617 t b b b b s;
#P newex 533 141 60 196617 prepend set;
#N comlet set buffer~;
#P inlet 503 23 15 0;
#N comlet zoom max (ms);
#P outlet 403 386 15 0;
#N vpatcher 50 40 221 204;
#N comlet zoom max;
#P outlet 52 105 15 0;
#P newex 73 53 27 196617 t b f;
#P newex 52 75 48 196617 + 0.;
#N comlet zoom length;
#P inlet 73 28 15 0;
#N comlet zoom min;
#P inlet 52 28 15 0;
#P connect 3 1 2 1;
#P connect 3 0 2 0;
#P connect 2 0 4 0;
#P connect 1 0 3 0;
#P connect 0 0 2 0;
#P pop;
#P newobj 403 293 58 196617 p zoommax;
#N comlet zoom min (ms);
#P outlet 365 386 15 0;
#P newex 428 263 97 196617 r $1_zoomlength;
#B color 6;
#N comlet zoom length (ms);
#P outlet 428 386 15 0;
#N comlet zoom in;
#P inlet 288 23 15 0;
#N comlet select all;
#P inlet 350 23 15 0;
#P comment 144 48 92 196617 1 = name of buffer;
#P comment 159 33 58 196617 arguments:;
#P comment 144 60 110 196617 2 = lcd length in pixels;
#P comment 144 72 110 196617 3 = lcd height in pixels;
#N comlet unselect all;
#P inlet 370 23 15 0;
#N comlet zoom out;
#P inlet 310 23 15 0;
#N vpatcher 546 95 859 368;
#N comlet eliminate selection;
#P outlet 74 237 15 0;
#N comlet to sel&zoom;
#P outlet 44 237 15 0;
#P newex 116 113 13 196617 1;
#P newex 116 25 50 196617 loadbang;
#P newex 44 115 24 196617 + 1;
#N comlet lcd height;
#P outlet 199 237 15 0;
#N comlet lcd length;
#P outlet 124 237 15 0;
#N comlet redraw;
#P outlet 99 237 15 0;
#P newex 74 165 60 196617 t b b l;
#N comlet from lcd;
#P inlet 7 25 15 0;
#P newex 44 140 40 196617 gate 2;
#P comment 143 238 49 196617 lcd length;
#P newex 124 187 85 196617 unpack;
#P number 139 216 35 9 0 0 0 3;
#P number 219 216 35 9 0 0 0 3;
#P comment 218 238 48 196617 lcd height;
#P comment 256 217 39 196617 (pixels);
#P newex 44 71 70 196617 modifiers;
#P newex 44 93 50 196617 change;
#P newex 7 50 47 196617 t l b;
#P connect 17 0 9 0;
#P connect 11 0 19 0;
#P connect 11 1 12 0;
#P connect 11 2 7 0;
#P connect 9 0 18 0;
#P connect 9 1 11 0;
#P connect 15 0 9 0;
#P connect 7 0 13 0;
#P connect 7 0 6 0;
#P connect 7 1 14 0;
#P connect 7 1 5 0;
#P connect 0 1 2 0;
#P fasten 0 0 9 1 12 135 79 135;
#P connect 16 0 17 0;
#P connect 2 3 1 0;
#P connect 1 0 15 0;
#P connect 10 0 0 0;
#P pop;
#P newobj 151 131 93 196617 p set-lcd-size;
#P newex 112 165 27 196617 t b i;
#P newex 86 186 28 196617 t b f;
#P message 376 131 42 196617 $2;
#P newex 376 107 45 196617 loadbang;
#N comlet selection length (ms);
#P outlet 333 386 15 0;
#N vpatcher 50 40 556 621;
#N comlet set buffer~;
#P inlet 461 46 15 0;
#P newex 264 318 69 196617 * 44.1;
#N comlet zoom offset;
#P inlet 264 46 15 0;
#P newex 286 76 29 196617 t b i;
#P newex 331 118 27 196617 / 2.;
#P newex 177 397 157 196617 peek~ $1;
#P message 91 509 139 196617 LineSegment $1 $2 $3 $4 $5;
#P newex 177 422 89 196617 * 25.;
#P newex 91 486 186 196617 pack i i i i 69;
#P newex 194 234 69 196617 * 44.1;
#P newex 59 271 43 196617 Uzi $2;
#P newex 194 271 38 196617 / 500.;
#P newex 177 334 27 196617 * 0.;
#P newex 91 311 96 196617 t i i;
#P newex 6 139 171 196617 b 4;
#P message 165 192 31 196617 clear;
#P newex 177 458 32 196617 + 25.;
#P message 96 192 55 196617 penMode 0;
#P message 6 192 55 196617 penMode 5;
#P newex 6 169 42 196617 del 100;
#N comlet redraw;
#P inlet 6 46 15 0;
#P newex 177 356 97 196617 + 1.;
#P newex 194 24 97 196617 r $1_zoomlength;
#B color 6;
#N comlet to lcd;
#P outlet 6 541 15 0;
#N comlet lcd length (pixels);
#P inlet 286 46 15 0;
#N comlet lcd height (pixels);
#P inlet 331 46 15 0;
#P newex 223 457 73 196617 expr $f2 – $f1;
#N comlet color;
#P inlet 424 46 15 0;
#P newex 424 76 27 196617 t b i;
#P newex 386 145 33 196617 * 1.;
#N comlet vertical zoom;
#P inlet 363 46 15 0;
#P newex 363 76 56 196617 t b b f;
#P newex 91 291 27 196617 – 1;
#P newex 103 24 50 196617 loadbang;
#P message 103 76 43 196617 $2;
#P message 153 76 43 196617 $3;
#P fasten 31 0 19 1 336 446 204 446;
#P fasten 31 0 9 1 336 451 291 451;
#P connect 31 0 6 0;
#P connect 30 0 28 0;
#P connect 28 0 9 0;
#P connect 28 0 19 0;
#P fasten 32 1 25 1 310 262 97 262;
#P connect 32 0 24 0;
#P fasten 32 1 24 1 310 266 227 266;
#P connect 29 0 12 0;
#P fasten 20 0 12 0 170 216 11 216;
#P connect 17 0 12 0;
#P fasten 18 0 12 0 101 216 11 216;
#P connect 0 0 31 0;
#P connect 1 0 24 1;
#P connect 33 0 34 0;
#P fasten 35 0 30 0 466 353 182 389;
#P connect 11 0 32 0;
#P connect 10 0 31 0;
#P connect 8 0 7 0;
#P connect 5 0 4 0;
#P connect 27 0 29 0;
#P connect 26 0 24 0;
#P connect 25 2 3 0;
#P connect 24 0 23 1;
#P connect 23 0 14 0;
#P connect 34 0 14 1;
#P connect 22 0 27 0;
#P connect 22 1 23 0;
#P fasten 22 0 27 2 96 443 144 459;
#P connect 21 0 16 0;
#P connect 21 2 18 0;
#P connect 21 1 25 0;
#P connect 21 3 20 0;
#P connect 19 0 27 1;
#P connect 14 0 30 0;
#P connect 16 0 17 0;
#P connect 9 0 27 3;
#P connect 13 0 26 0;
#P fasten 6 0 28 1 391 417 261 417;
#P connect 3 0 22 0;
#P connect 15 0 21 0;
#P connect 7 0 21 0;
#P fasten 7 1 27 4 446 477 272 477;
#P connect 2 0 1 0;
#P connect 2 0 0 0;
#P connect 4 0 21 0;
#P connect 4 1 6 0;
#P connect 4 2 6 1;
#P pop;
#P newobj 4 356 163 196617 p draw;
#N comlet get filelength;
#P inlet 479 23 15 0;
#N comlet file length (ms);
#P outlet 592 386 15 0;
#N comlet selection max (ms);
#P outlet 313 386 15 0;
#N comlet selection min (ms);
#P outlet 292 386 15 0;
#N comlet full zoom out;
#P inlet 332 23 15 0;
#N comlet zoom selection;
#P inlet 266 23 15 0;
#N comlet from lcd;
#P inlet 18 23 15 0;
#N vpatcher 28 83 1001 616;
#P newex 229 400 27 196617 t b f;
#N vpatcher 291 185 591 621;
#P newex 162 151 27 196617 + 1;
#P newex 162 228 40 196617 gate 2;
#P newex 174 103 27 196617 t b i;
#P newex 162 270 27 196617 < ;
#P newex 162 128 39 196617 ==;
#N comlet extend on/off (to gate for mouseup redraw);
#P outlet 83 395 15 0;
#N comlet new min;
#P outlet 255 395 15 0;
#N comlet new max;
#P outlet 192 395 15 0;
#P comment 223 38 24 196617 min;
#P newex 192 367 73 196617 gate 2;
#P newex 192 346 27 196617 + 1;
#P newex 126 157 27 196617 t i i;
#P newex 192 312 47 196617 >;
#P newex 229 291 23 196617 abs;
#P newex 192 291 23 196617 abs;
#P newex 229 270 27 196617 -;
#P newex 192 270 27 196617 -;
#N comlet selection min;
#P inlet 246 21 15 0;
#N comlet selection max;
#P inlet 209 21 15 0;
#P newex 3 89 13 196617 0;
#P newex 3 67 45 196617 loadbang;
#N comlet new selection;
#P outlet 60 395 15 0;
#P newex 60 136 76 196617 gate 2;
#P newex 60 112 27 196617 + 1;
#P newex 60 91 40 196617 change;
#P newex 43 42 27 196617 t i b;
#P newex 60 69 66 196617 modifiers;
#N comlet from lcd;
#P inlet 43 21 15 0;
#P comment 184 39 24 196617 max;
#P connect 11 0 26 0;
#P connect 11 0 13 1;
#P fasten 10 0 24 0 214 63 167 63;
#P fasten 10 0 25 1 214 252 184 261;
#P connect 10 0 12 1;
#P connect 1 0 3 0;
#P connect 28 0 27 0;
#P connect 27 1 25 0;
#P connect 27 0 12 0;
#P connect 27 0 13 0;
#P connect 25 0 18 0;
#P connect 19 0 21 0;
#P connect 19 1 22 0;
#P connect 24 0 28 0;
#P connect 18 0 19 0;
#P connect 17 1 27 1;
#P fasten 17 0 19 1 131 208 260 208;
#P connect 16 0 18 0;
#P connect 15 0 16 1;
#P connect 14 0 16 0;
#P connect 13 0 15 0;
#P connect 12 0 14 0;
#P connect 9 0 5 0;
#P connect 8 0 9 0;
#P connect 6 0 7 0;
#P connect 6 1 17 0;
#P connect 5 0 6 0;
#P connect 5 0 23 0;
#P connect 3 1 2 0;
#P connect 4 0 5 0;
#P fasten 3 0 6 1 48 65 131 65;
#P connect 2 0 4 0;
#P connect 26 0 24 0;
#P connect 26 1 24 1;
#P pop;
#P newobj 275 136 49 196617 p ext-sel;
#N vpatcher 323 148 570 415;
#N comlet draw selection;
#P outlet 16 197 15 0;
#N comlet redraw;
#P outlet 39 198 15 0;
#P newex 16 59 56 196617 b 3;
#N comlet selection max (pixels);
#P outlet 103 197 15 0;
#N comlet selection min (pixels);
#P outlet 62 197 15 0;
#P newex 103 173 27 196617 * 1.;
#P newex 62 173 27 196617 * 1.;
#P newex 103 145 27 196617 / 1.;
#P newex 62 145 27 196617 / 1.;
#P newex 103 88 29 196617 float;
#P newex 62 88 29 196617 float;
#N comlet trigger;
#P inlet 16 26 15 0;
#P newex 103 118 27 196617 – 0.;
#P newex 62 118 27 196617 – 0.;
#N comlet lcd length (pixels);
#P inlet 185 33 15 0;
#N comlet zoom length (ms);
#P inlet 163 33 15 0;
#N comlet zoom offset (ms);
#P inlet 143 33 15 0;
#N comlet selection max (ms);
#P inlet 122 33 15 0;
#N comlet selection min (ms);
#P inlet 81 33 15 0;
#P connect 7 0 16 0;
#P fasten 4 0 12 1 190 166 84 166;
#P fasten 4 0 13 1 190 170 125 170;
#P fasten 3 0 10 1 168 139 84 139;
#P fasten 2 0 5 1 148 109 84 109;
#P fasten 3 0 11 1 168 142 125 142;
#P fasten 2 0 6 1 148 112 125 112;
#P connect 1 0 9 1;
#P connect 0 0 8 1;
#P connect 16 0 18 0;
#P connect 16 1 17 0;
#P connect 16 2 8 0;
#P connect 16 2 9 0;
#P connect 13 0 15 0;
#P connect 12 0 14 0;
#P connect 11 0 13 0;
#P connect 9 0 6 0;
#P connect 6 0 11 0;
#P connect 10 0 12 0;
#P connect 8 0 5 0;
#P connect 5 0 10 0;
#P pop;
#P newobj 369 238 117 196617 p keepselection;
#P newex 648 330 27 196617 / 2.;
#P comment 617 43 41 196617 zoom in;
#N comlet zoom in;
#P inlet 600 42 15 0;
#P newex 600 130 59 196617 b 3;
#P newex 648 308 29 196617 float;
#P newex 615 308 29 196617 float;
#P newex 615 352 43 196617 + 0.;
#P newex 615 373 65 196617 clip 0 10000;
#P newex 91 81 85 196617 b 5;
#P comment 99 63 47 196617 select all;
#N comlet select all;
#P inlet 91 45 15 0;
#P newex 62 247 15 196617 0.;
#P newex 79 247 15 196617 0.;
#P newex 28 224 61 196617 b 4;
#P message 872 80 45 196617 set 0 $1;
#P newex 719 432 65 196617 clip 0 10000;
#P newex 668 130 112 196617 b 3;
#P newex 719 348 29 196617 float;
#P newex 738 315 27 196617 * 2.;
#P newex 770 369 65 196617 clip 0 10000;
#P newex 770 348 43 196617 – 0.;
#P newex 770 315 29 196617 float;
#P newex 803 315 27 196617 / 2.;
#N comlet zoom out;
#P inlet 668 40 15 0;
#N comlet redraw selection;
#P inlet 7 46 15 0;
#N vpatcher 216 250 884 676;
#P newex 319 76 53 196617 b 4;
#N comlet extend selection off/on;
#P inlet 294 26 15 0;
#P newex 294 53 35 196617 gate 2;
#P message 591 180 37 196617 $3;
#P newex 591 26 50 196617 loadbang;
#P newex 580 259 25 196617 + 1;
#P comment 11 44 47 196617 redraw selection rectangle;
#P newex 3 107 37 196617 b 3;
#N comlet redraw selection;
#P inlet 3 26 15 0;
#P message 426 145 50 196617 0 0 0 0;
#P comment 409 62 122 196617 replace segment w/ spot ; draw new rectangle;
#P comment 414 43 73 196617 zoom selection;
#P newex 398 108 52 196617 b 4;
#P comment 311 166 94 196617 close mouseup gate ; undo segment ; draw rectangle;
#P comment 339 30 46 196617 mouseup;
#P message 77 290 50 196617 0 0 0 0;
#P newex 56 107 52 196617 b 3;
#N comlet lcd height;
#P inlet 570 26 15 0;
#P newex 276 174 28 196617 gate;
#P newex 260 152 13 196617 0;
#P newex 276 152 13 196617 1;
#N comlet selection max;
#P inlet 550 26 15 0;
#N comlet selection min;
#P inlet 528 26 15 0;
#N comlet mouseup (bang);
#P inlet 319 26 15 0;
#N comlet mousedown (value);
#P inlet 117 26 15 0;
#N comlet zoom selection;
#P inlet 398 26 15 0;
#N comlet eliminate selection;
#P inlet 56 26 15 0;
#N comlet to lcd;
#P outlet 290 392 15 0;
#P newex 276 207 67 196617 b 5;
#P message 481 333 54 196617 penMode 2;
#P message 3 333 54 196617 penMode 5;
#P message 290 333 112 196617 PaintRect $1 $2 $3 $4;
#P newex 290 290 112 196617 pack i 0 i 51;
#P message 154 333 124 196617 LineSegment $1 $2 $3 $4;
#P newex 117 108 123 196617 t b i b b;
#P newex 154 279 65 196617 pack i 0 i $3;
#P message 325 251 36 196617 set $1;
#P comment 127 44 56 196617 mousedown;
#P comment 63 45 47 196617 replace selection w/spot;
#P comment 127 66 109 196617 undo prev rectangle ; draw segment ; open gate for mouseup;
#P comment 328 98 47 196617 extend selection;
#P connect 37 0 35 0;
#P connect 31 0 7 0;
#P connect 25 0 7 0;
#P connect 25 0 9 0;
#P connect 33 1 9 0;
#P connect 33 0 10 0;
#P fasten 33 2 11 0 34 139 486 139;
#P connect 39 0 38 0;
#P connect 10 0 13 0;
#P connect 11 0 13 0;
#P connect 9 0 13 0;
#P connect 4 0 8 0;
#P connect 7 0 13 0;
#P connect 40 0 10 0;
#P connect 40 1 8 0;
#P connect 40 2 9 0;
#P connect 40 3 11 0;
#P connect 38 0 22 1;
#P connect 38 1 40 0;
#P connect 36 0 37 0;
#P connect 35 0 8 3;
#P connect 24 0 10 0;
#P connect 24 1 25 0;
#P fasten 24 2 11 0 103 139 486 139;
#P connect 22 0 12 0;
#P connect 20 0 22 0;
#P connect 21 0 22 0;
#P fasten 12 0 10 0 281 235 8 235;
#P fasten 12 4 21 0 337 229 351 229 351 147 265 147;
#P connect 12 2 7 0;
#P connect 12 1 8 0;
#P connect 12 3 11 0;
#P connect 8 0 9 0;
#P connect 6 1 5 0;
#P connect 6 1 5 2;
#P connect 6 0 20 0;
#P connect 6 2 9 0;
#P fasten 6 3 11 0 233 139 486 139;
#P connect 6 0 10 0;
#P connect 5 0 7 0;
#P fasten 28 0 10 0 403 139 8 139;
#P connect 28 1 8 0;
#P connect 28 2 31 0;
#P fasten 28 3 11 0 445 139 486 139;
#P connect 32 0 33 0;
#P fasten 23 0 5 3 575 274 213 274;
#P connect 23 0 35 0;
#P fasten 19 0 8 2 555 267 363 267;
#P fasten 18 0 4 0 533 246 330 246;
#P connect 17 0 38 1;
#P connect 16 0 6 0;
#P connect 15 0 28 0;
#P connect 14 0 24 0;
#P pop;
#P newobj 7 315 163 196617 p drawselection;
#P newex 190 132 13 196617 2;
#N comlet lcd height (pixels);
#P inlet 937 42 15 0;
#N comlet lcd length (pixels);
#P inlet 913 42 15 0;
#P message 329 86 45 196617 set 0 $1;
#P comment 879 99 32 196617 file length;
#P comment 104 373 79 196617 zoomlow(offset);
#N comlet selection length (ms);
#P outlet 120 489 15 0;
#P newex 278 434 29 196617 float;
#P newex 278 468 107 196617 s $1_zoomlength;
#B color 14;
#P newex 845 369 15 196617 0.;
#P newex 463 170 27 196617 500;
#P newex 511 169 20 196617 0;
#P newex 275 243 27 196617 t i i;
#P newex 862 130 29 196617 t b f;
#P newex 183 274 51 196617 maximum;
#P newex 260 273 48 196617 minimum;
#N comlet zoom offset (ms);
#P outlet 394 489 15 0;
#N comlet redraw;
#P outlet 45 489 15 0;
#P newex 120 447 40 196617 – 0.;
#N comlet filelength;
#P inlet 862 42 15 0;
#P comment 186 228 36 196617 down;
#P newex 275 79 50 196617 unpack i i;
#P newex 275 109 64 196617 clip 0 $2;
#P newex 207 102 33 196617 sel 0;
#P newex 207 42 45 196617 loadbang;
#N comlet from lcd;
#P inlet 275 42 15 0;
#P newex 260 343 101 196617 * 1.;
#P newex 260 316 38 196617 / 500.;
#P newex 183 343 61 196617 * 1.;
#P newex 183 316 38 196617 / 500.;
#P newex 351 21 97 196617 r $1_zoomlength;
#B color 6;
#P newex 260 371 27 196617 + 0.;
#P newex 183 371 27 196617 + 0.;
#P newex 207 79 62 196617 MouseState;
#P newex 207 164 78 196617 gate 2;
#P number 224 225 35 9 0 0 0 3;
#P newex 207 186 52 196617 t i b i i;
#P newex 207 132 13 196617 1;
#P number 275 225 35 9 0 0 0 3;
#P comment 313 227 18 196617 up;
#N comlet to lcd;
#P outlet 7 489 15 0;
#P newex 828 130 27 196617 b;
#P comment 778 42 46 196617 full zoom out;
#P newex 862 170 29 196617 float;
#P newex 463 130 130 196617 b 6;
#P newex 394 402 29 196617 float;
#P comment 482 43 48 196617 zoom selection;
#N comlet selection min (ms);
#P outlet 260 489 15 0;
#N comlet selection max (ms);
#P outlet 183 489 15 0;
#N comlet zoom selection;
#P inlet 463 42 15 0;
#N comlet full zoom out;
#P inlet 828 42 15 0;
#P comment 126 346 57 196617 zoomlength;
#P comment 685 43 47 196617 zoom out;
#N comlet unselect;
#P inlet 28 46 15 0;
#P comment 36 64 47 196617 unselect all;
#P comment 293 42 28 196617 from lcd;
#P connect 20 0 41 1;
#P fasten 20 0 40 1 229 267 303 267;
#P connect 17 0 43 0;
#P connect 67 0 74 0;
#P connect 67 0 66 0;
#P connect 67 0 62 0;
#P connect 55 0 21 0;
#P connect 48 0 47 0;
#P fasten 46 0 10 0 850 394 399 394;
#P connect 45 0 17 0;
#P connect 44 0 20 0;
#P connect 43 0 41 0;
#P connect 43 1 40 0;
#P connect 42 0 12 0;
#P connect 42 1 12 1;
#P connect 40 0 56 6;
#P connect 40 0 28 0;
#P connect 40 0 83 2;
#P connect 37 0 49 0;
#P connect 37 0 48 1;
#P connect 34 0 33 0;
#P connect 33 0 83 0;
#P fasten 32 0 56 4 155 126 102 270;
#P connect 32 0 18 0;
#P connect 31 0 22 0;
#P connect 29 0 24 0;
#P connect 28 0 29 0;
#P connect 27 0 23 0;
#P connect 26 0 27 0;
#P connect 56 0 15 0;
#P fasten 25 0 27 1 356 337 239 337;
#P connect 25 0 29 1;
#P connect 25 0 82 4;
#P connect 25 0 63 0;
#P connect 25 0 59 0;
#P connect 24 0 84 0;
#P connect 24 0 8 0;
#P connect 24 0 82 1;
#P connect 24 0 10 1;
#P connect 23 0 37 0;
#P connect 23 0 7 0;
#P connect 23 0 82 2;
#P connect 22 0 32 0;
#P connect 21 0 19 0;
#P connect 21 1 17 0;
#P connect 19 0 56 2;
#P fasten 19 1 55 0 226 209 182 209 182 127 195 127;
#P connect 19 3 20 0;
#P connect 19 2 17 0;
#P connect 18 0 21 0;
#P connect 14 0 82 0;
#P connect 14 1 46 0;
#P connect 14 1 12 0;
#P fasten 10 0 23 1 399 422 320 422 320 366 205 366;
#P fasten 10 0 24 1 399 422 320 422 320 366 282 366;
#P connect 10 0 39 0;
#P fasten 10 0 82 3 399 425 490 425 490 232 437 232;
#P connect 10 0 76 1;
#P connect 10 0 60 1;
#P connect 11 3 38 0;
#P fasten 11 0 56 5 324 190 137 238 96 300;
#P fasten 11 4 48 0 354 427 283 427;
#P connect 11 5 10 0;
#P connect 11 1 45 0;
#P connect 11 2 44 0;
#P connect 41 0 56 7;
#P connect 41 0 26 0;
#P connect 41 0 83 1;
#P fasten 12 0 47 0 867 461 283 461;
#P connect 79 0 78 0;
#P connect 71 0 73 0;
#P connect 58 0 65 0;
#P connect 57 0 56 0;
#P connect 52 0 33 0;
#P connect 84 0 37 0;
#P connect 84 1 37 1;
#P connect 83 2 41 0;
#P connect 83 1 56 3;
#P connect 83 2 41 1;
#P connect 83 3 40 0;
#P connect 83 0 21 1;
#P connect 83 3 40 1;
#P connect 82 1 38 0;
#P connect 82 0 56 5;
#P connect 82 2 56 6;
#P connect 82 3 56 7;
#P connect 81 0 75 1;
#P connect 77 0 47 0;
#P connect 77 0 81 0;
#P connect 76 0 75 0;
#P connect 75 0 74 0;
#P fasten 74 0 10 0 620 394 399 394;
#P connect 73 1 56 1;
#P connect 73 2 38 0;
#P connect 73 0 56 5;
#P connect 73 3 45 0;
#P connect 73 4 44 0;
#P connect 70 0 26 0;
#P connect 69 0 28 0;
#P connect 68 0 56 1;
#P connect 68 1 38 0;
#P connect 68 2 70 0;
#P connect 68 3 69 0;
#P fasten 66 0 47 0 724 461 283 461;
#P connect 78 0 82 0;
#P connect 78 1 76 0;
#P connect 78 2 77 0;
#P connect 65 0 82 0;
#P connect 65 1 64 0;
#P connect 65 2 60 0;
#P connect 64 0 66 0;
#P connect 63 0 64 1;
#P fasten 62 0 10 0 775 394 399 394;
#P connect 60 0 61 0;
#P connect 59 0 77 1;
#P connect 59 0 61 1;
#P connect 61 0 62 0;
#P fasten 54 0 56 8 942 71 164 71;
#P fasten 53 0 26 1 918 304 216 304;
#P fasten 53 0 28 1 918 304 293 304;
#P connect 53 0 52 0;
#P connect 53 0 82 5;
#P fasten 53 0 45 1 918 162 485 162;
#P connect 36 0 42 0;
#P connect 36 0 67 0;
#P connect 30 0 34 0;
#P connect 6 0 11 0;
#P connect 5 0 14 0;
#P connect 2 0 68 0;
#P pop;
#P newobj 178 246 235 196617 p sel&zoom;
#N comlet vertical zoom;
#P inlet 86 23 15 0;
#N comlet color;
#P inlet 112 23 15 0;
#N comlet to lcd;
#P outlet 4 386 15 0;
#N comlet redraw (eliminate selection);
#P inlet 57 23 15 0;
#P newex 479 176 105 196617 info~ $1;
#P connect 35 2 5 7;
#P connect 35 3 0 0;
#P connect 35 4 34 0;
#P connect 34 0 13 6;
#P connect 34 0 0 0;
#P connect 31 0 32 0;
#P connect 29 0 28 0;
#P connect 29 0 31 1;
#P connect 18 0 5 0;
#P connect 18 1 13 5;
#P connect 17 1 13 4;
#P connect 17 0 5 0;
#P connect 19 2 13 0;
#P connect 19 4 13 3;
#P connect 19 3 13 2;
#P connect 19 1 5 1;
#P connect 19 0 5 3;
#P connect 19 3 5 9;
#P connect 19 4 5 10;
#P connect 37 0 36 0;
#P connect 36 0 35 0;
#P connect 16 0 5 9;
#P connect 33 0 38 0;
#P connect 0 6 11 0;
#P connect 0 6 5 8;
#P connect 5 1 13 0;
#P fasten 5 0 2 0 183 379 9 379;
#P connect 5 5 13 1;
#P connect 5 3 10 0;
#P connect 5 4 9 0;
#P connect 5 2 14 0;
#P connect 5 5 30 0;
#P connect 5 5 31 0;
#P connect 27 0 5 5;
#P connect 26 0 5 2;
#P connect 21 0 5 1;
#P connect 20 0 5 6;
#P connect 8 0 5 7;
#P connect 12 0 0 0;
#P connect 7 0 5 4;
#P connect 6 0 19 0;
#P connect 39 1 13 0;
#P connect 39 0 5 0;
#P connect 38 0 36 0;
#P connect 38 1 37 0;
#P connect 15 0 16 0;
#P connect 13 0 2 0;
#P connect 4 0 17 0;
#P connect 3 0 18 0;
#P connect 1 0 39 0;
#P pop;

save as showwf~.help

max v2;
#N vpatcher 8 43 826 420;
#P comment 585 346 216 196617 Requires Steve Ellison’s object "modifiers.";
#P comment 178 34 216 1073676298 (with zooming and region selection);
#P comment 585 251 215 196617 To extend or reduce the current selection , shift-click or shift-drag. Takes effect immediately , but displayed only on mouseup.;
#P comment 599 29 25 1048585 1999;
#P comment 459 34 136 1048585 Ircam /Centre Georges Pompidou;
#P comment 457 23 142 1048585 Benjamin Thigpen , Hans Tutschku;
#P comment 527 72 22 196617 set;
#P comment 522 84 35 196617 buffer;
#P message 542 105 24 196617 you;
#P message 516 105 24 196617 hey;
#P message 691 104 41 196617 replace;
#P newex 691 126 61 196617 buffer~ you;
#P flonum 357 153 77 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P comment 364 171 50 196617 zoom max;
#P comment 285 171 50 196617 zoom min;
#P flonum 278 153 77 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 436 153 77 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P comment 443 171 62 196617 zoom length;
#P button 202 105 15 0;
#P comment 248 84 16 196617 in;
#P comment 240 72 31 196617 zoom;
#P comment 426 72 43 196617 unselect;
#P button 437 105 15 0;
#P comment 435 84 18 196617 all;
#P comment 466 84 48 196617 filelength;
#P comment 388 84 18 196617 all;
#P comment 289 72 31 196617 zoom;
#P comment 111 84 31 196617 zoom;
#P comment 190 84 46 196617 selection;
#P button 390 105 15 0;
#P button 343 105 15 0;
#P comment 328 84 45 196617 zoom out;
#P comment 585 298 216 196617 To set or change the lcd size (instead of using arguments 2 & 3): ctrl-click in the lower right corner of lcd.;
#P comment 531 171 53 196617 file length;
#P comment 185 171 80 196617 selection length;
#P comment 111 171 68 196617 selection max;
#P comment 479 72 19 196617 get;
#P comment 49 84 37 196617 redraw;
#P comment 293 84 19 196617 out;
#P flonum 525 153 85 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 186 153 77 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 110 153 74 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 27 153 81 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P button 484 105 15 0;
#P button 296 105 15 0;
#P button 249 105 15 0;
#P user lcd 14 192 554 154 1 1 0 0 0;
#P comment 598 226 200 196617 $3 = default lcd height in pixels (optional);
#P comment 598 214 195 196617 $2 = default lcd length in pixels (optional);
#P number 155 105 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 108 105 35 9 0. 0 1 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 613 104 41 196617 replace;
#P newex 613 126 61 196617 buffer~ hey;
#P button 61 105 17 0;
#P newex 14 128 527 196617 showwf~ hey 554 152;
#P comment 105 72 41 196617 vertical;
#P comment 158 84 27 196617 color;
#P comment 585 187 58 196617 arguments:;
#P comment 598 202 155 196617 $1 = name of buffer (obligatory);
#P comment 196 72 31 196617 zoom;
#P comment 31 171 68 196617 selection min;
#P comment 379 72 43 196617 select;
#P comment 54 24 79 1073676302 showwf~;
#P comment 170 21 229 1073676298 displays a buffer’s waveform in an lcd;
#P comment 340 72 22 196617 full;
#P comment 37 48 590 196617 ________________________________________________________________________________________________;
#P comment 657 32 125 196617 NB: this object has been made obsolete in Max 4 by the object "waveform.";
#B frgb 255 255 255;
#P user panel 651 25 135 50;
#X brgb 60 178 173;
#X frgb 0 0 0;
#X border 1;
#X rounded 0;
#X shadow 0;
#X done;
#P fasten 21 0 13 0 19 355 4 355 4 121 19 121;
#P connect 13 0 21 0;
#P connect 13 1 25 0;
#P fasten 15 1 14 0 669 149 681 149 681 99 66 99;
#P fasten 56 1 14 0 747 149 758 149 758 99 66 99;
#P connect 14 0 13 1;
#P connect 17 0 13 2;
#P connect 13 2 26 0;
#P connect 18 0 13 3;
#P connect 13 3 27 0;
#P connect 49 0 13 4;
#P connect 22 0 13 5;
#P connect 13 4 52 0;
#P connect 23 0 13 6;
#P connect 37 0 13 7;
#P connect 13 5 55 0;
#P connect 38 0 13 8;
#P connect 13 6 51 0;
#P connect 45 0 13 9;
#P fasten 15 1 24 0 669 149 681 149 681 99 489 99;
#P fasten 56 1 24 0 747 149 758 149 758 99 489 99;
#P connect 24 0 13 10;
#P connect 13 7 28 0;
#P connect 58 0 13 11;
#P connect 59 0 13 11;
#P connect 16 0 15 0;
#P connect 57 0 56 0;
#P pop;

best

mp


July 23, 2006 | 7:32 pm

thanks a lot Matteo ,( and thanks for those who replied off line ), that is exactly what i was looking for !

have a good day ( or night )
ciao



Nat
July 24, 2006 | 12:00 am

I don’t know if this can be of any help but I did a MXJ/JSUI patch that can display waveforms (with the ability to zoom and navigate)


August 7, 2006 | 8:39 am

yeah nat!your patch is interesting me..
works as universal binaries??

thks freeka


August 7, 2006 | 4:53 pm

Nat, i would love to see it !

Quote: Nat wrote on Sun, 23 July 2006 18:00
—————————————————-
> I don’t know if this can be of any help but I did a MXJ/JSUI patch that can display waveforms (with the ability to zoom and navigate)
>
>
—————————————————-



Nat
August 8, 2006 | 1:06 am

Here is a link to the package :

http://www.studioimaginaire.com/nat/waver.zip

You will need to put the java file in your max java directory and compile it.


August 8, 2006 | 7:34 am

Hi

here is a patch that display the waveform of a soundfile without loading
it in a buffer~.

http://mathieu.chamagne.free.fr/max/mc.SF.Waveform.mxt

(to be completly honest, it uses a buffer~, but 50 times smaller than
the original sound file, so it can be very useful to display a very long
sound file waveform, too big to be loaded in a buffer~…)

please have a look…

Mathieu Chamagne


August 8, 2006 | 7:38 am

…and here is a patch that peter nyboer posted some time ago, that
demonstrates 3 differents way to display a waveform in LCD, jit.lcd and
OpenGL.
very instructive…

Mathieu

max v2;
#N vpatcher 27 113 961 909;
#P window setfont "Sans Serif" 9.;
#P comment 486 709 174 196617 pnyboer at slambassador dot com;
#P comment 485 690 174 196617 patch by peter nyboer;
#P comment 412 547 39 196617 (LCD);
#P comment 589 571 205 196617 name of pwindow is "waveform" of course!;
#P message 804 252 14 196617 0;
#P message 701 252 14 196617 1;
#P window linecount 2;
#P comment 167 122 133 196617 resolution. Default is every 44.1 samples;
#P window linecount 1;
#P comment 740 233 113 196617 Animate the waveform;
#P comment 861 254 33 196617 scroll;
#P comment 116 49 133 196617 1.) Read in a file to buffer~;
#P newex 670 441 52 196617 s drawGL;
#P newex 670 420 27 196617 t b l;
#P newex 670 399 52 196617 s drawGL;
#P newex 456 81 52 196617 s drawGL;
#P newex 625 40 52 196617 r drawGL;
#P newex 670 378 27 196617 t b l;
#P comment 388 596 174 196617 all pwindows are set to onscreen off;
#P comment 764 252 33 196617 zoom;
#P comment 577 357 169 196617 instead of a group of vertical lines;
#P comment 576 343 169 196617 use of bucket makes continuous line;
#P newex 167 81 78 196617 loadmess 44.1;
#P newex 455 347 33 196617 -3.3;
#P newex 494 347 42 196617 bucket;
#P newex 534 348 42 196617 bucket;
#P newex 142 155 32 196617 t b f;
#P flonum 167 102 81 9 1. 44100. 3 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P comment 600 377 29 196617 amp;
#P comment 607 307 33 196617 time;
#P comment 229 370 33 196617 time;
#P newex 105 158 30 196617 / 1.;
#P flonum 725 251 38 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 705 377 90 196617 pak scale 0. 1. 1.;
#P flonum 823 252 38 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 705 420 102 196617 pak position 0. 0. 0.;
#P message 447 419 186 196617 reset , glcolor 0.752941 0.65098 0. 1;
#P user jit.pwindow 499 467 402 102 0 0 0 0 1 0;
#X name waveform;
#P newex 494 305 113 196617 scale 0 1000 -3.3 3.3;
#P newex 625 62 44 196617 qlim 33;
#P newex 625 93 50 196617 t b erase;
#P newex 625 124 227 196617 jit.gl.render waveform @erase_color 0. 0. 0. 1.;
#P newex 469 391 173 196617 pack linesegment 0. 0. 0. 0.1 0. 0.;
#P newex 469 445 194 196617 jit.gl.sketch waveform @depth_enable 0;
#P newex 68 595 69 196617 jit.unpack;
#P newex 68 616 132 196617 jit.matrix 1 char 400 100;
#P newex 105 180 21 196617 t i;
#P button 6 96 18 0;
#P message 25 29 66 196617 import 0 -1;
#P button 400 34 18 0;
#P newex 400 55 66 196617 t b b 0. b b;
#P newex 431 130 44 196617 * 44.1;
#P newex 105 135 32 196617 * 1.;
#P newex 105 114 49 196617 / 1000.;
#P newex 25 94 108 196617 info~ drawme;
#P newex 68 573 114 196617 jit.lcd 4 char 400 100;
#P user jit.pwindow 9 635 402 102 0 0 0 0 1 0;
#P newex 431 108 30 196617 – 1;
#P message 324 449 90 196617 brgb 0 0 0 , clear;
#P newex 130 367 102 196617 scale 0 1000 0 400;
#P newex 130 415 206 196617 pack linesegment 10 50 10 100 192 166 0;
#P newex 232 393 95 196617 scale 1. -1. 0 100;
#P user lcd 10 468 400 100 1 1 0 0 0;
#P newex 400 80 53 196617 uzi 1000;
#P message 41 49 72 196617 read talk.aiff;
#P window setfont "Sans Serif" 12.;
#P newex 393 232 97 196620 peek~ drawme;
#B color 5;
#P window setfont "Sans Serif" 9.;
#P newex 25 73 113 196617 buffer~ drawme 1000;
#P comment 326 395 61 196617 amplitudes;
#P newex 751 332 30 196617 – 1.;
#P newex 775 310 32 196617 * 1.;
#P comment 419 36 115 196617 2.) draw the waveform;
#P fasten 12 0 8 0 329 466 15 466;
#P connect 10 0 8 0;
#P fasten 15 0 14 0 73 591 15 591;
#P connect 22 0 4 0;
#P connect 6 0 4 0;
#P connect 4 1 16 0;
#P connect 23 0 16 0;
#P fasten 20 4 16 0 461 74 30 74;
#P connect 7 1 15 0;
#P connect 10 0 15 0;
#P hidden fasten 12 0 15 0 329 572 73 572;
#P connect 15 0 26 0;
#P connect 26 1 25 0;
#P connect 16 6 17 0;
#P connect 16 0 18 0;
#P connect 44 0 39 0;
#P connect 18 0 39 0;
#P connect 39 0 24 0;
#P connect 44 1 39 1;
#P connect 17 0 18 1;
#P connect 13 0 11 0;
#P connect 7 0 10 0;
#P connect 43 0 44 0;
#P connect 11 0 10 1;
#P connect 24 0 11 2;
#P connect 48 0 43 0;
#P connect 11 0 10 3;
#P connect 5 0 9 0;
#P connect 9 0 10 4;
#P connect 20 1 12 0;
#P connect 19 0 5 0;
#P connect 21 0 20 0;
#P connect 20 0 7 0;
#P connect 7 2 13 0;
#P connect 13 0 19 0;
#P connect 24 0 7 1;
#P connect 20 1 34 0;
#P connect 20 3 47 0;
#P connect 7 1 55 0;
#P connect 43 0 19 1;
#P connect 7 0 28 0;
#P connect 34 0 27 0;
#P connect 28 0 27 0;
#P connect 53 1 27 0;
#P connect 57 1 27 0;
#P connect 13 0 32 0;
#P connect 32 0 46 0;
#P connect 47 0 46 0;
#P connect 46 0 28 1;
#P connect 45 0 28 2;
#P connect 24 0 32 2;
#P connect 5 0 45 0;
#P connect 20 2 45 0;
#P connect 32 0 28 4;
#P connect 5 0 28 5;
#P connect 54 0 31 0;
#P connect 31 0 30 0;
#P connect 30 0 29 0;
#P connect 30 1 29 0;
#P connect 37 0 53 0;
#P connect 53 0 56 0;
#P connect 35 0 57 0;
#P connect 57 0 58 0;
#P connect 63 0 38 0;
#P connect 38 0 37 1;
#P connect 36 0 35 1;
#P connect 38 0 2 0;
#P connect 1 0 2 1;
#P connect 38 0 1 0;
#P connect 2 0 36 0;
#P connect 64 0 36 0;
#P pop;


August 8, 2006 | 11:53 am

hi nat,
thanks for the package!
i did everything you said, compile waver-java,got waver-java.class, change the file folde for the ubumenu ;…etc

got now the mxj waver-java…

but nothing happened inside waver-j.pat..

any idea???

i run it with max 4.6 on intel..

thanks;p

freeka


August 8, 2006 | 11:59 am



f.e
August 8, 2006 | 1:50 pm

First, be sure it’s compiled (look for a waver_java.class…).

Then, use the black slider on the right corner (yes, it’s a slider).

f.e

f.e chanfrault | aka | personal computer music
> >>>>>> http://www.personal-computer-music.com
> >>>>>> |sublime music for a desperate people|

freeka wrote:
> hi nat,
> thanks for the package!
> i did everything you said, compile waver-java,got waver-java.class, change the file folde for the ubumenu ;…etc
>
> got now the mxj waver-java…
>
> but nothing happened inside waver-j.pat..
>
> any idea???
>
> i run it with max 4.6 on intel..
>
> thanks;p
>
> freeka
>
>



Nat
August 8, 2006 | 3:17 pm

That slider is in fact a range slider I did in JSUI. If you click on CTRL/CMD you can drag the region and scroll the waveform. I recall someone made a better rangeslider than mine in JSUI, will have to find that one again.


August 8, 2006 | 7:26 pm



Nat
August 8, 2006 | 8:16 pm

ad.rangeslider, that’s the one, thanks !


August 8, 2006 | 10:48 pm

Here is a link to the package :

http://www.studioimaginaire.com/nat/waver.zip

You will need to put the java file in your max java directory and compile it.

i am very interested…
How do you ‘compile?’
i’m sorry, i am new to java
i try reading manual about javascript
but i don’t understand,
i put files in right folders i think,
but it is not work

thank you!

kenichi



Nat
August 8, 2006 | 11:11 pm

Sending the message viewsource to the mxj object and then hitting ctrl-k within the editor should do the trick.


August 9, 2006 | 8:04 am

thanks everybody


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