"debugging" msp

Aug 2, 2007 at 9:31pm

"debugging" msp

hi, it might sound trite but when learning (and patching) i usually have an
arsenal o debugging clippings. in jitter (my main dish) i was saved a lot of
time using a combination of unpack and cellblock, matrixinfo ect.
what do you use when taking patches apart?
thank you.

#33140
Aug 2, 2007 at 9:34pm

something like

#P window setfont “Fixedwidth Serif” 10.;
#P window linecount 1;
#P newex 132 290 38 9240586 * -1.;
#P window setfont “Sans Serif” 9.;
#P number 206 335 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 181 261 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 131 312 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P window setfont “Fixedwidth Serif” 10.;
#P newex 87 331 104 9240586 pak range -1. 1.;
#P user scope~ 85 355 435 445 256 3 256 -0.08 0.08 0 0. 0 0. 102 255 51 135
135 135 0;
#P fasten 3 0 5 0 186 283 137 283;
#P connect 3 0 1 2;
#P connect 4 0 0 1;
#P connect 2 0 1 1;
#P connect 5 0 2 0;
#P connect 1 0 0 0;
#P window clipboard copycount 6;

On 8/2/07, yair reshef wrote:
>
> hi, it might sound trite but when learning (and patching) i usually have
> an arsenal o debugging clippings. in jitter (my main dish) i was saved a lot
> of time using a combination of unpack and cellblock, matrixinfo ect.
> what do you use when taking patches apart?
> thank you.
>

#109964
Aug 7, 2007 at 5:02pm

yair reshef schrieb:
> something like

Mine is shorter and does the same, not as clipping, but as prototype for
scope~:

#P user scope~ 85 355 302 445 2 3 128 -1. 1. 0 0. 1 0. 102 255 51 135
135 135 0;
#P window clipboard copycount 1;

The most used clipping I have is [set]->[message box]…

I also have a special debug abhaXion, to print or display values. I can
switch them on/off from a central point. This is useful as you could
leave them in the patch even after its ready, because the have no cost
if switched off. (Especially printing into the max window is pretty
expensive…)

Recently I created a special monitor for seeing what’s going on in a
pfft. It will dump values into a buffer~ and I can watch the buffer~
with wavefrom~. This is indespensible for me, for any fft work…

Have a look at my St.ools collection. I am not sure if the latter made
it to the last version…

Stefan


Stefan Tiedje————x——-
–_____———–|————–
–(_|_ —-|—–|—–()——-
– _|_)—-|—–()————–
———-()——–www.ccmix.com

#109965
Aug 8, 2007 at 7:04am

Stefan, i re-searched your st.ools (your meticulous and intimate knowledge
of max is evident in every one of them), and couldn’t find the ftt analysis
abstract, which should come in very handy.
please consider updating your package, i will continue following it, thanks.

On 8/7/07, Stefan Tiedje wrote:
>
> yair reshef schrieb:
> > something like
>
> Mine is shorter and does the same, not as clipping, but as prototype for
> scope~:
>
> #P user scope~ 85 355 302 445 2 3 128 -1. 1. 0 0. 1 0. 102 255 51 135
> 135 135 0;
> #P window clipboard copycount 1;
>
> The most used clipping I have is [set]->[message box]…
>
> I also have a special debug abhaXion, to print or display values. I can
> switch them on/off from a central point. This is useful as you could
> leave them in the patch even after its ready, because the have no cost
> if switched off. (Especially printing into the max window is pretty
> expensive…)
>
> Recently I created a special monitor for seeing what’s going on in a
> pfft. It will dump values into a buffer~ and I can watch the buffer~
> with wavefrom~. This is indespensible for me, for any fft work…
>
> Have a look at my St.ools collection. I am not sure if the latter made
> it to the last version…
>
> Stefan
>
> –
> Stefan Tiedje————x——-
> –_____———–|————–
> –(_|_ —-|—–|—–()——-
> — _|_)—-|—–()————–
> ———-()——–www.ccmix.com
>
>

#109966
Aug 9, 2007 at 7:28am

yair reshef schrieb:
> Stefan, i re-searched your st.ools (your meticulous and intimate
> knowledge of max is evident in every one of them), and couldn’t find the
> ftt analysis abstract, which should come in very handy.
> please consider updating your package, i will continue following it,
> thanks.

For the impatient… ;-)

Have fun…

Save as binalyze.pat

#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P newex 348 79 64 196617 unpack;
#P newex 294 56 64 196617 route int;
#P inlet 294 32 15 0;
#P newex 294 125 118 196617 pack rampsmooth $2 $3;
#P flonum 375 201 78 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 246 266 61 196617 loadmess 2;
#P newex 154 266 88 196617 poke~ $1;
#P newex 63 266 88 196617 poke~ $1;
#P newex 154 224 69 196617 vectral~;
#P newex 363 222 65 196617 prepend size;
#P newex 321 172 65 196617 prepend size;
#P newex 304 147 63 196617 fftinfo~;
#P newex 63 224 69 196617 vectral~;
#P newex 308 200 65 196617 sampstoms~;
#P newex 310 266 103 196617 buffer~ $1 11.601 2;
#P inlet 212 32 15 0;
#P inlet 273 32 15 0;
#P inlet 121 32 15 0;
#P newex 294 104 13 196617 b;
#P connect 17 0 0 0;
#P fasten 17 0 15 2 299 100 407 100;
#P connect 18 1 15 2;
#P connect 5 1 14 0;
#P connect 5 1 9 0;
#P connect 18 0 15 1;
#P fasten 17 1 0 0 353 76 299 76;
#P connect 17 1 18 0;
#P fasten 7 1 5 0 326 167 313 167;
#P connect 7 1 8 0;
#P connect 9 0 4 0;
#P connect 0 0 15 0;
#P connect 16 0 17 0;
#P connect 13 0 12 2;
#P connect 3 0 10 2;
#P fasten 2 0 6 0 278 79 68 79;
#P fasten 2 0 6 1 278 79 97 79;
#P fasten 2 0 11 1 278 254 107 254;
#P fasten 2 0 10 0 278 79 159 79;
#P fasten 2 0 10 1 278 79 188 79;
#P fasten 2 0 12 1 278 254 198 254;
#P connect 10 0 12 0;
#P fasten 8 0 6 0 326 194 68 194;
#P fasten 8 0 10 0 326 194 159 194;
#P fasten 15 0 10 0 299 159 159 159;
#P connect 1 0 6 2;
#P connect 6 0 11 0;
#P fasten 15 0 6 0 299 159 68 159;
#P window clipboard copycount 19;

Save as binalyze.pfft

#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P newex 92 97 126 196617 cartopol~;
#N in 1;
#P newobj 440 101 34 196617 in 1;
#P newex 92 136 358 196617 binalyze $1;
#P newex 92 69 243 196617 fftin~ 1;
#P connect 2 0 1 3;
#P connect 0 2 1 2;
#P connect 3 1 1 1;
#P connect 0 1 3 1;
#P connect 3 0 1 0;
#P connect 0 0 3 0;
#P window clipboard copycount 4;

Save as binalyze.help

#P window setfont “Sans Serif” 9.;
#P flonum 1142 394 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 702 173 43 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 262 173 43 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 922 173 43 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 482 173 43 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P window linecount 1;
#N vpatcher 300 415 900 815;
#P window setfont “Sans Serif” 9.;
#P newex 50 49 62 196617 bintof 4096;
#P newex 50 100 40 196617 * 0.25;
#P newex 134 100 40 196617 * 0.75;
#P outlet 176 133 15 0;
#P outlet 134 133 15 0;
#P outlet 92 133 15 0;
#P outlet 50 133 15 0;
#P newex 92 100 40 196617 * 0.5;
#P newex 50 70 62 196617 – 0.;
#P inlet 50 30 15 0;
#P connect 0 0 9 0;
#P connect 9 0 1 0;
#P connect 1 0 8 0;
#P connect 8 0 3 0;
#P fasten 1 0 2 0 55 93 97 93;
#P connect 2 0 4 0;
#P fasten 1 0 7 0 55 93 139 93;
#P connect 7 0 5 0;
#P fasten 1 0 6 0 55 93 181 93;
#P pop;
#P hidden newobj 563 143 55 196617 p;
#P flonum 409 89 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P hidden newex 230 162 100 196617 loadmess voffset 1.;
#P number 340 66 35 9 1 0 1 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 340 88 62 196617 bintof 4096;
#P user umenu 534 86 36 196647 1 64 102 1;
#X add 8192;
#X add 4096;
#X add 2048;
#X add 1024;
#X add 512;
#X add 256;
#X add 128;
#X add 64;
#X add 32;
#X add 16;
#X add 8;
#X add 4;
#X add 2;
#P user umenu 472 38 36 196647 1 64 54 1;
#X add 8192;
#X add 4096;
#X add 2048;
#X add 1024;
#X add 512;
#X add 256;
#X add 128;
#X add 64;
#X add 32;
#X add 16;
#X add 8;
#X add 4;
#X add 2;
#P newex 490 86 40 196617 ftobin;
#P newex 490 143 70 196617 sampstoms~;
#P number 490 109 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P comment 945 342 56 196617 Phase;
#P hidden newex 435 58 58 196617 !/ 44100.;
#P user gain~ 22 123 24 100 158 0 1.071519 7.94321 10.;
#P newex 203 418 65 196617 loadmess 4;
#P flonum 431 118 35 9 0. 0 1 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 431 144 55 196617 vzoom $1;
#P user umenu 32 39 67 196647 1 64 55 1;
#X add off;
#X add soundfile;
#X add sine;
#X add saw;
#P newex 168 69 67 196617 cycle~ 4000;
#P flonum 237 38 196 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 237 69 67 196617 saw~ 4000;
#P message 106 38 31 196617 open;
#N sfplay~ 1 120960 0 ;
#P newobj 106 68 60 196617 sfplay~;
#P message 172 39 35 196617 loop 1;
#P toggle 145 38 15 0;
#P newex 63 90 184 196617 selector~ 3;
#P flonum 355 118 49 9 0. 0 1 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 355 144 55 196617 vzoom $1;
#P number 104 113 35 9 0 0 1 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 42 418 158 196617 loadmess set MyAnalyzeBuffer 2;
#P newex 63 162 158 196617 loadmess set MyAnalyzeBuffer;
#P user ezdac~ 4 299 48 332 0;
#P newex 63 137 250 196617 pfft~ binalyze.pfft 4096 2 args MyAnalyzeBuffer;
#P comment 945 240 55 196617 Amplitude;
#P comment 143 113 100 196617 smooth over frames;
#P number 435 38 35 9 2 0 1 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P window linecount 4;
#P user com 630 61 202 196617 72;
#K set 0 28789 29728 25193 28257 27769 31333 8297 28276 28448 24864
28774 26228 32288 29807 8289 28257 27769 31333 8308 26725 8290 25960
24950 26991 29216 28518 8308 26725 8290 26990 29486 3401 29728 30569
27756 8304 28523 25982 8308 26725 8290 26990 29472 26990 29807 8289 8290
30054 26213 29216 30568 26979 26656 25441 28192 29800 25966 8290 25888
30313 29557 24940 26995 25956 8311 26996 26656 30561 30309 26223 29293
32256;
#K end;
#P user waveform~ 63 293 881 100 3 9;
#W mode select;
#W mouseoutput continuous;
#W unit samples;
#W grid 22.675737;
#W ticks 0;
#W labels 1;
#W vlabels 0;
#W vticks 1;
#W vzoom 4.;
#W bpm 120. 4.;
#W frgb 33 0 0;
#W brgb 60 178 173;
#W rgb2 0 95 255;
#W rgb3 0 0 0;
#W rgb4 0 0 0;
#W rgb5 190 137 255;
#W rgb6 100 100 100;
#W rgb7 100 100 100;
#P user waveform~ 63 191 881 101 3 9;
#W mode select;
#W mouseoutput continuous;
#W unit samples;
#W grid 22.675737;
#W ticks 0;
#W labels 1;
#W vlabels 0;
#W vticks 1;
#W vzoom 177.;
#W voffset 1.;
#W bpm 120. 4.;
#W frgb 33 0 0;
#W brgb 60 178 173;
#W rgb2 0 95 255;
#W rgb3 0 0 0;
#W rgb4 0 0 0;
#W rgb5 190 137 255;
#W rgb6 100 100 100;
#W rgb7 100 100 100;
#P window linecount 1;
#P comment 434 23 100 196617 division/samplerate;
#P comment 968 174 20 196617 Hz;
#P hidden fasten 39 3 41 0 613 164 927 164;
#P hidden fasten 39 2 43 0 598 164 707 164;
#P hidden connect 30 0 39 0;
#P connect 30 0 31 0;
#P connect 32 0 30 0;
#P fasten 34 1 30 0 565 105 495 105;
#P hidden fasten 39 1 40 0 583 164 487 164;
#P hidden connect 5 0 28 0;
#P hidden connect 33 1 5 0;
#P hidden connect 25 0 24 0;
#P hidden connect 26 0 25 0;
#P connect 35 1 38 0;
#P hidden connect 14 0 13 0;
#P connect 36 0 35 0;
#P hidden fasten 31 1 3 1 555 292 285 292;
#P hidden fasten 31 1 2 1 555 190 285 190;
#P hidden fasten 39 0 42 0 568 164 267 164;
#P connect 20 0 15 3;
#P connect 21 0 22 0;
#P connect 21 0 20 0;
#P hidden connect 28 0 21 0;
#P hidden connect 35 0 21 0;
#P connect 22 0 15 2;
#P connect 18 0 15 1;
#P connect 19 0 18 0;
#P connect 17 0 18 0;
#P connect 16 0 18 0;
#P connect 11 0 3 0;
#P hidden connect 24 0 3 0;
#P connect 10 0 2 0;
#P hidden fasten 13 0 2 0 360 183 68 183;
#P hidden fasten 37 0 2 0 235 183 68 183;
#P connect 15 0 27 0;
#P connect 15 0 8 0;
#P connect 12 0 8 0;
#P connect 23 0 15 0;
#P connect 27 0 9 0;
#P connect 27 0 9 1;
#P window clipboard copycount 45;


Stefan Tiedje————x——-
–_____———–|————–
–(_|_ —-|—–|—–()——-
– _|_)—-|—–()————–
———-()——–www.ccmix.com

#109967

You must be logged in to reply to this topic.