splines.pd 2.22 KB
Newer Older
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
66
67
68
69
#N struct splines float x float y float qmid float c1 float c2;
#N canvas -7 0 1008 546 10;
#X obj 318 76 loadbang;
#X obj 318 146 loadbang;
#X obj 318 216 loadbang;
#X obj 318 259 draw path M 15 100 h 10 m -5 -5 v 10;
#X msg 318 237 stroke red;
#X obj 318 286 loadbang;
#X msg 318 307 stroke red;
#X obj 318 366 loadbang;
#X msg 318 387 stroke red;
#X obj 318 409 draw path M 135 100 h 10 m -5 -5 v 10;
#X scalar splines 92 86 -2.4623 153.103 358.414 \;;
#X obj 688 26 loadbang;
#X obj 688 96 loadbang;
#X msg 688 47 stroke blue \, stroke-width 1;
#X msg 688 117 stroke black \, stroke-width 3;
#X obj 688 166 loadbang;
#X obj 688 212 draw path M 15 250 h 10 m -5 -5 v 10;
#X msg 688 187 stroke red;
#X obj 688 236 loadbang;
#X msg 688 257 stroke red;
#X obj 688 306 loadbang;
#X msg 688 327 stroke red;
#X obj 688 376 loadbang;
#X msg 688 397 stroke red;
#X obj 688 419 draw path M 135 250 h 10 m -5 -5 v 10;
#X msg 318 167 stroke black \, stroke-width 3;
#X msg 318 97 stroke blue \, stroke-width 1;
#X text 186 74 Quadratic spline;
#X text 189 268 Cubic spline;
#X obj 318 119 draw path M 20 100 L 80 qmid 140 100;
#X obj 318 189 draw path M 20 100 Q 80 qmid 140 100;
#X obj 317 331 draw path M 75 qmid h 10 m -5 -5 v 10;
#X obj 688 279 draw path M 55 c1 h 10 m -5 -5 v 10;
#X obj 308 33 struct splines float x float y float qmid float c1 float
c2;
#X obj 687 353 draw path M 95 c2 h 10 m -5 -5 v 10;
#X obj 688 70 draw path M 20 250 L 60 c1 100 c2 140 250;
#X obj 688 137 draw path M 20 250 C 60 c1 100 c2 140 250;
#X floatatom 691 462 5 0 0 0 - - -, f 5;
#X obj 691 504 draw group;
#X msg 691 483 transform rotate \$1;
#X text 305 459 Click-drag the inner red crosses to change the y-value
of the lines and curves. Works when transformed \, too ->;
#X connect 0 0 26 0;
#X connect 1 0 25 0;
#X connect 2 0 4 0;
#X connect 4 0 3 0;
#X connect 5 0 6 0;
#X connect 6 0 31 0;
#X connect 7 0 8 0;
#X connect 8 0 9 0;
#X connect 11 0 13 0;
#X connect 12 0 14 0;
#X connect 13 0 35 0;
#X connect 14 0 36 0;
#X connect 15 0 17 0;
#X connect 17 0 16 0;
#X connect 18 0 19 0;
#X connect 19 0 32 0;
#X connect 20 0 21 0;
#X connect 21 0 34 0;
#X connect 22 0 23 0;
#X connect 23 0 24 0;
#X connect 25 0 30 0;
#X connect 26 0 29 0;
#X connect 37 0 39 0;
#X connect 39 0 38 0;