1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
#N canvas 356 22 766 656 10;
#X msg 103 243 inForce \$1 \$2 \$3;
#X msg 30 74 reset;
#X msg 44 100 mass \$1 \$2;
#X text 168 133 connect 2 masses (\$1 and \$2) \, with a link rigidity
\$3 and damping \$4;
#X msg 70 171 NLlink \$1 \, \$2 \, \$3 \, \$4 \, \$5 \, \$6 \, \$7
\, \$8;
#X text 302 166 like the link message \, but with extra arguments :
;
#X text 323 181 \$5 is pow for a non-linear link;
#X text 323 196 \$6 is the lenght of the link;
#X msg 160 371 outPos \$1 \$2 \$3;
#X msg 131 305 inPos \$1 \$2 \$3;
#X msg 179 411 outSpeed \$1 \$2 \$3;
#X obj 30 593 pmpd~ 1 1;
#X text 226 299 connect an inlet to the position of a specific mass
(\$2) \, with an amplitude factor \$3;
#X obj 31 631 dac~;
#X text 323 212 \$7 and \$8 are the min and max size of this link;
#X msg 150 496 posX \$1 \$2;
#X msg 162 516 forceX \$1 \$2;
#X text 147 477 few messages can interact in real time with the simulation
;
#X text 117 621 arg3 : oversample factor (usefull to run the simulation
faster than audio rate);
#X text 217 494 change the position (\$2) of a fixed mass (\$1);
#X text 239 515 send a force (\$1) to a mass (\$2);
#X obj 128 553 osc~ 444;
#X text 181 552 interaction with the simulation is at audio rate;
#X msg 54 137 link \$1 \$2 \$3 \$4;
#X text 209 237 audio inlet \$1 send force to the mass \$2 \, with
an amplitude factor \$3;
#X text 153 6 pmpd~ : 1d particular physical modelling for audio synthesis
;
#X text 19 38 all these messages have to be sent only once to create
a physical model structure;
#X text 121 95 create a mass with argument : weight of the mass \,
initial position. A mass with no weight will not move.;
#X text 68 73 clear everything;
#X text 209 265 You can send many forces to a single mass \, the resulting
force will be the sum of all forces;
#X text 225 323 many inForce and inPos messages can be sent \, so the
same inlet can be used to move and send force to diferents masses;
#X text 261 367 connect the Position of the \$2 mass to the \$1 outlet
\, with amplitude \$3;
#X text 290 404 connect the Velocity of the \$2 mass to the \$1 outlet
\, with amplitude \$3;
#X text 179 429 The output of an outlet is the sum of the contribution
of all out* messages;
#X text 117 592 arg1 : number of audio inlets (min 1);
#X text 117 606 arg2 : number of audio outlets (min 1);
#X connect 0 0 11 0;
#X connect 1 0 11 0;
#X connect 2 0 11 0;
#X connect 4 0 11 0;
#X connect 8 0 11 0;
#X connect 9 0 11 0;
#X connect 10 0 11 0;
#X connect 11 0 13 0;
#X connect 11 0 13 1;
#X connect 15 0 11 0;
#X connect 16 0 11 0;
#X connect 21 0 11 0;
#X connect 23 0 11 0;
|