I know a little bit about filters and will try to investigate more. I've been 
avoiding physical modelling for ages and it seems its finally time to dig in :)

Here is the most simple usable structure : a mass and a link.
it look like a 2nd order resonant filter.
now, the challenge is to find the equation that compute K and D from frequency 
and attenuation time.

cheers
c
#N canvas 645 122 798 768 12;
#X declare -lib pmpd -lib nusmuk_audio;
#X obj 99 390 oscillo~;
#X obj 23 5 declare -lib pmpd -lib nusmuk_audio;
#X obj 100 332 pmpd~ 1 1;
#X obj 242 303 bng 20 250 50 0 empty empty empty 0 -10 0 12 #fcfcfc #000000 #000000;
#X obj 423 389 oscillo~;
#X msg 134 270 setK 0 \$1;
#X floatatom 134 118 5 1 100 0 - - - 0;
#X obj 100 31 loadbang;
#X floatatom 224 149 5 0 0 0 - - - 0;
#X obj 224 177 / 10000;
#X msg 224 270 setD 0 \$1;
#X obj 185 503 _fft~;
#X obj 134 196 t f f;
#X obj 134 224 *;
#X obj 134 144 mtof;
#X floatatom 154 249 9 0 0 0 - - - 0;
#X obj 134 170 / 1000;
#X floatatom 234 246 9 0 0 0 - - - 0;
#X obj 421 206 *~;
#X obj 455 205 tgl 20 0 empty empty empty 0 -10 0 12 #fcfcfc #000000 #000000 0 1;
#X obj 422 255 +~;
#X obj 506 208 *~;
#X obj 540 207 tgl 20 0 empty empty empty 0 -10 0 12 #fcfcfc #000000 #000000 0 1;
#X obj 505 177 noise~;
#X obj 420 175 phasor~ 20;
#X msg 100 57 reset \, mass 0 \, mass 1 \, link 0 1 0.005 0.005 \, inPos 0 0 1 \, outPos 0 1 1, f 70;
#X connect 2 0 0 0;
#X connect 2 0 11 0;
#X connect 3 0 2 0;
#X connect 5 0 2 0;
#X connect 6 0 14 0;
#X connect 7 0 25 0;
#X connect 8 0 9 0;
#X connect 9 0 10 0;
#X connect 9 0 17 0;
#X connect 10 0 2 0;
#X connect 12 0 13 0;
#X connect 12 1 13 1;
#X connect 13 0 5 0;
#X connect 13 0 15 0;
#X connect 14 0 16 0;
#X connect 16 0 12 0;
#X connect 18 0 20 0;
#X connect 19 0 18 1;
#X connect 20 0 2 0;
#X connect 20 0 4 0;
#X connect 21 0 20 0;
#X connect 22 0 21 1;
#X connect 23 0 21 0;
#X connect 24 0 18 0;
#X connect 25 0 2 0;
_______________________________________________
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list

Reply via email to