Update of /cvsroot/pure-data/externals/zexy/examples In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv807
Modified Files: 0.INTRO.txt mtx_binops.pd mtx_transpose.pd Added Files: blockmirror~.pd blockswap~.pd Removed Files: a2l.pd tabread4.pd Log Message: updated documentation
--- tabread4.pd DELETED ---
--- NEW FILE: blockswap~.pd --- #N canvas 0 0 705 533 10; #X obj 71 367 dac~ 1; #X obj 71 342 *~; #X obj 32 293 dbtorms; #X floatatom 32 269 0 0 0 0 - - -; #X floatatom 26 203 0 0 0 0 - - -; #X msg 118 228 help; #X msg 404 59 ; pd dsp 1; #X obj 71 317 sig~ 0.2; #X msg 482 61 ; pd dsp 0; #N canvas 0 0 450 300 graph5 0; #X array scope 100 float 0; #X coords 0 1 100 -1 400 300 1; #X restore 298 194 graph; #X obj 139 314 tabwrite~ scope; #X msg 139 289 bang; #X text 287 166 note: there will be a break at 64 samples (signal-vector!) ; #X obj 87 255 blockswap~; #X obj 26 227 osc~ 440; #X obj 123 12 blockswap~; #X text 200 13 swap upper and lower half of the signal-vector; #X obj 122 198 tgl 15 0 empty empty on/off 0 -6 0 8 -262144 -1 -1 1 1; #X text 287 151 note: there will be a break at 32 samples (swap!); #X connect 1 0 0 0; #X connect 2 0 7 0; #X connect 3 0 2 0; #X connect 4 0 14 0; #X connect 5 0 13 0; #X connect 7 0 1 0; #X connect 11 0 10 0; #X connect 13 0 1 1; #X connect 13 0 10 0; #X connect 14 0 13 0; #X connect 17 0 13 0;
--- NEW FILE: blockmirror~.pd --- #N canvas 0 0 705 533 10; #X obj 71 367 dac~ 1; #X obj 71 342 *~; #X obj 32 293 dbtorms; #X floatatom 32 269 0 0 0 0 - - -; #X floatatom 26 203 0 0 0 0 - - -; #X msg 118 228 help; #X msg 404 59 ; pd dsp 1; #X obj 71 317 sig~ 0.2; #X msg 482 61 ; pd dsp 0; #N canvas 0 0 450 300 graph5 0; #X array scope 100 float 0; #X coords 0 1 100 -1 400 300 1; #X restore 298 194 graph; #X obj 139 314 tabwrite~ scope; #X msg 139 289 bang; #X text 287 166 note: there will be a break at 64 samples (signal-vector!) ; #X obj 26 227 osc~ 440; #X obj 122 198 tgl 15 0 empty empty on/off 0 -6 0 8 -262144 -1 -1 1 1; #X obj 101 12 blockmirror~; #X obj 87 255 blockmirror~; #X text 200 13 play back a signal-vector in a time-reversed way!; #X connect 1 0 0 0; #X connect 2 0 7 0; #X connect 3 0 2 0; #X connect 4 0 13 0; #X connect 5 0 16 0; #X connect 7 0 1 0; #X connect 11 0 10 0; #X connect 13 0 16 0; #X connect 14 0 16 0; #X connect 16 0 1 1; #X connect 16 0 10 0;
--- a2l.pd DELETED ---
Index: mtx_transpose.pd =================================================================== RCS file: /cvsroot/pure-data/externals/zexy/examples/mtx_transpose.pd,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** mtx_transpose.pd 9 Oct 2002 10:19:02 -0000 1.1 --- mtx_transpose.pd 21 Jul 2004 16:56:50 -0000 1.2 *************** *** 1,3 **** ! #N canvas 204 56 718 799 10; #X obj 48 162 mtx_print; #X obj 48 134 mtx_transpose; --- 1,3 ---- ! #N canvas 199 -133 718 600 10; #X obj 48 162 mtx_print; #X obj 48 134 mtx_transpose; *************** *** 5,25 **** #X msg 48 59 3 5; #X text 45 42 transpose a matrix; ! #X text 158 13 tranpose/shift matrices; #X obj 37 349 mtx_print; #X msg 37 246 1 2 3 4 5; #X text 33 229 shift rows of a matrix; ! #X floatatom 104 301 4 0 0; #X obj 37 321 mtx_scroll 1; #X obj 37 268 mtx_diag; ! #X obj 32 524 mtx_print; ! #X msg 32 421 1 2 3 4 5; ! #X floatatom 99 476 4 0 0; ! #X obj 32 443 mtx_diag; ! #X text 28 404 shift columns of a matrix; ! #X obj 32 497 mtx_roll 1; ! #X text 135 477 shift amount (0=no-shift ; 1=1-column-right ; -2=2-columns-left ; ...); ! #X text 143 299 shift amount (0=no-shift ; 1=1-row-down ; -2=2-rows-up ; ...); ! #X text 30 594 pivot-transform a matrix; ! #X obj 34 669 mtx_pivot; #N canvas 352 114 190 367 rand-matrix 0; #X obj 74 163 inlet; --- 5,27 ---- #X msg 48 59 3 5; #X text 45 42 transpose a matrix; ! #X text 188 7 tranpose/shift matrices; #X obj 37 349 mtx_print; #X msg 37 246 1 2 3 4 5; #X text 33 229 shift rows of a matrix; ! #X floatatom 104 301 4 0 0 0 - - -; #X obj 37 321 mtx_scroll 1; #X obj 37 268 mtx_diag; ! #X obj 414 333 mtx_print; ! #X msg 414 230 1 2 3 4 5; ! #X floatatom 481 285 4 0 0 0 - - -; ! #X obj 414 252 mtx_diag; ! #X text 410 213 shift columns of a matrix; ! #X obj 414 306 mtx_roll 1; ! #X text 517 286 shift amount (0=no-shift ; 1=1-column-right ; -2=2-columns-left ! ; ...); ! #X text 143 299 shift amount (0=no-shift ; 1=1-row-down ; -2=2-rows-up ! ; ...); ! #X text 29 419 pivot-transform a matrix; ! #X obj 33 494 mtx_pivot; #N canvas 352 114 190 367 rand-matrix 0; #X obj 74 163 inlet; *************** *** 32,45 **** #X connect 3 0 4 0; #X connect 4 0 1 0; ! #X restore 34 633 pd rand-matrix; ! #X msg 34 611 4 3; ! #X obj 83 690 mtx_print post; ! #X obj 58 710 mtx_print pre; ! #X obj 34 760 mtx_print pivot; #X obj 485 95 matrix; ! #X text 375 95 see also help for; ! #X text 282 620 this will tranform the columns and rows , so that the result will have all maximum values in the diagonale. the maximum of the matrix will be located at the upper-lft corner.; ! #X text 281 669 the first outlet is the pivot-transformed matrix.; ! #X text 280 695 the other outlets are the 1/0-matrices that have to be pre-multiplied (row-tranform) and post-multiplied (column-tranform) to the original matrix to get the pivot-tranformation. this is useful for de-pivoting.; #X connect 1 0 0 0; #X connect 2 0 1 0; --- 34,52 ---- #X connect 3 0 4 0; #X connect 4 0 1 0; ! #X restore 33 458 pd rand-matrix; ! #X msg 33 436 4 3; ! #X obj 82 515 mtx_print post; ! #X obj 57 535 mtx_print pre; ! #X obj 33 575 mtx_print pivot; #X obj 485 95 matrix; ! #X text 435 77 see also help for; ! #X text 280 494 the first outlet is the pivot-transformed matrix.; ! #X text 279 520 the other outlets are the 1/0-matrices that have to ! be pre-multiplied (row-tranform) and post-multiplied (column-tranform) ! to the original matrix to get the pivot-tranformation. this is useful ! for de-pivoting.; ! #X text 281 445 this will tranform the columns and rows , so that ! the result will have all maximum values in the diagonale. the maximum ! of the matrix will be located at the upper-left corner.; #X connect 1 0 0 0; #X connect 2 0 1 0;
Index: mtx_binops.pd =================================================================== RCS file: /cvsroot/pure-data/externals/zexy/examples/mtx_binops.pd,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** mtx_binops.pd 9 Oct 2002 10:19:02 -0000 1.1 --- mtx_binops.pd 21 Jul 2004 16:56:50 -0000 1.2 *************** *** 1,3 **** ! #N canvas 95 74 802 673 10; #X obj 87 360 mtx_mul; #X obj 157 360 mtx_*; --- 1,3 ---- ! #N canvas 79 32 859 673 10; #X obj 87 360 mtx_mul; #X obj 157 360 mtx_*; *************** *** 14,18 **** #X msg 305 107 bang; #X obj 305 186 mtx_print; ! #X floatatom 374 101 4 0 0; #X obj 374 119 t b f; #X obj 392 160 mtx_+ 10; --- 14,18 ---- #X msg 305 107 bang; #X obj 305 186 mtx_print; ! #X floatatom 374 101 4 0 0 0 - - -; #X obj 374 119 t b f; #X obj 392 160 mtx_+ 10; *************** *** 27,31 **** #X obj 249 399 mtx_print; #X obj 249 292 t b f; ! #X floatatom 249 274 4 0 0; #X msg 249 315 4 2 1 3; #X obj 249 335 mtx_diag; --- 27,31 ---- #X obj 249 399 mtx_print; #X obj 249 292 t b f; ! #X floatatom 249 274 4 0 0 0 - - -; #X msg 249 315 4 2 1 3; #X obj 249 335 mtx_diag; *************** *** 50,54 **** #X obj 88 599 mtx_print; #X obj 88 492 t b f; ! #X floatatom 88 474 4 0 0; #X msg 88 515 4 2 1 3; #X obj 88 535 mtx_diag; --- 50,54 ---- #X obj 88 599 mtx_print; #X obj 88 492 t b f; ! #X floatatom 88 474 4 0 0 0 - - -; #X msg 88 515 4 2 1 3; #X obj 88 535 mtx_diag; *************** *** 62,68 **** #X text 307 624 divide 2 matrices element by element; #X obj 323 482 t b b f; ! #X floatatom 323 463 4 0 0; #X obj 709 538 matrix; #X text 592 538 see also help for; #X connect 0 0 18 0; #X connect 2 0 7 0; --- 62,86 ---- #X text 307 624 divide 2 matrices element by element; #X obj 323 482 t b b f; ! #X floatatom 323 463 4 0 0 0 - - -; #X obj 709 538 matrix; #X text 592 538 see also help for; + #X obj 550 141 mtx_diag 1 2 3 4 5; + #X obj 483 141 mtx_ones 5; + #X obj 483 118 t b b; + #X obj 483 192 mtx_print; + #X msg 483 99 bang; + #X text 537 172 ==; + #X obj 700 141 mtx_eye 4; + #X msg 700 114 bang; + #X obj 700 193 mtx_print; + #X floatatom 769 108 4 0 0 0 - - -; + #X obj 769 126 t b f; + #X text 762 168 ==; + #X obj 483 170 mtx_sub; + #X obj 562 173 mtx_-; + #X obj 779 169 mtx_sub 10; + #X obj 700 166 mtx_- 10; + #X text 481 221 subtract 2 matrices; + #X text 669 225 subtract an offset from a matrix; #X connect 0 0 18 0; #X connect 2 0 7 0; *************** *** 111,112 **** --- 129,142 ---- #X connect 61 2 56 1; #X connect 62 0 61 0; + #X connect 65 0 77 1; + #X connect 66 0 77 0; + #X connect 67 0 66 0; + #X connect 67 1 65 0; + #X connect 69 0 67 0; + #X connect 71 0 80 0; + #X connect 72 0 71 0; + #X connect 74 0 75 0; + #X connect 75 0 71 0; + #X connect 75 1 80 1; + #X connect 77 0 68 0; + #X connect 80 0 73 0;
Index: 0.INTRO.txt =================================================================== RCS file: /cvsroot/pure-data/externals/zexy/examples/0.INTRO.txt,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** 0.INTRO.txt 9 Oct 2002 10:19:01 -0000 1.1 --- 0.INTRO.txt 21 Jul 2004 16:56:50 -0000 1.2 *************** *** 17,20 **** --- 17,22 ---- quantize~ quantizes signals swap~ bytes swap a 16bit-signal + blockmirror~ time-reverse a signal-vector (1,2,...,64 -> 64,63,...,1) + blockswap~ swap the upper and lower half of a signal-vector z~ samplewise delay
*************** *** 37,40 **** --- 39,43 ---- unpack~ convert a list of floats to a signal matrix~ matrix-multiply m IN-signals to n OUT-signals + multiline~ multiply a number of signals with scalars (interpolated) multiplex~ multiplex 1-of-n inlets to 1 outlet demultiplex~ demultiplex 1 inlet to 1-of-n outlets *************** *** 45,51 **** --- 48,56 ---- -------------------------- basic ------------------------------- nop no-operation + repeat repeat a message several times lister store lists (like "float" for floats) repack (re)pack atoms to packages of a given size packel get a specified element of a list + drip extract the atoms of a package (opt. scheduled) length get the length of a list niagara split 1 packages into 2 *************** *** 57,64 **** strcmp compare lists as strings list2symbol convert a list into a single symbol ! . scalar multiplication of vectors (=lists of floats)
------------------------ advanced ------------------------------ - tabread4 interpolating tabread (obsolete since pd>=0.30) tabdump dump out a table as a list of floats tabset set a table with a list of floats --- 62,68 ---- strcmp compare lists as strings list2symbol convert a list into a single symbol ! symbol2list convert a symbol to a list
------------------------ advanced ------------------------------ tabdump dump out a table as a list of floats tabset set a table with a list of floats *************** *** 68,78 **** index map symbols to indices msgfile a powerful "textfile" derivative mavg moving average filter for floats mean get the mean value of a list of floats minmax get minimum and maximum of a list of floats sort shell-sort a list of floats ! demultiplex demultiplex the input to a specified outlet ! drip extract the atoms of a package (opt. scheduled) ! lp write to the (parallel) port (linux only)
-------------------------- matrix ------------------------------- --- 72,92 ---- index map symbols to indices msgfile a powerful "textfile" derivative + demultiplex demultiplex the input to a specified outlet + lpt write to the (parallel) port (linux only) + operating_system get the current OS + + + -------------------------- maths -------------------------------- mavg moving average filter for floats mean get the mean value of a list of floats minmax get minimum and maximum of a list of floats sort shell-sort a list of floats ! urn unique random numbers ! prime test whether a number is prime or not ! wrap wrap the float-input between to boundaries ! . scalar multiplication of vectors (=lists of floats) ! deg2rad convert between degree and radiant ! rad2deg convert between radiant and degree ! cart2pol, pol2cart, cart2sph, sph2cart, pol2sph, sph2pol convert between coordinate systems (cartesian, polar, shperic)
-------------------------- matrix ------------------------------- *************** *** 97,100 **** --- 111,115 ---- mtx_inverse get the inverse of a matrix mtx_add, mtx_+ add 2 matrices (or an offset to 1 matrix) + mtx_sub, mtx_- subtract 2 matrices (or an offset from 1 matrix) mtx_mul, mtx_* multiply 2 matrices (or a factor with 1 matrix) mtx_.* multiply 2 matrices element by element