aboutsummaryrefslogtreecommitdiff
path: root/doc/help/cyclone/funbuff-help.pd
blob: 2b285305cada8969f50c5449e3fda3b2ac4aef29 (plain)
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
#N canvas 0 26 933 630 10;
#X obj 490 17 offer;
#X msg 52 81 1 10 \, 2 20 \, 3 3.33;
#X floatatom 167 175 5 0 0 0 - - -;
#X obj 166 520 print funbuff;
#X msg 99 110 4 4.4;
#X text 195 98 store x y pairs;
#X msg 120 136 4 44.4;
#X text 193 137 replace a previously stored y value;
#X text 215 173 retrieve corresponding y value;
#X msg 55 315 clear;
#X text 23 296 erase contents;
#X msg 210 228 embed \$1;
#X obj 210 208 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0
1;
#X text 279 222 with nonzero arg the contents of the object are;
#X text 278 233 saved with the patch \, this is the default behaviour
;
#X msg 223 283 goto \$1;
#X floatatom 223 263 5 0 0 0 - - -;
#X text 285 267 jump to x position;
#X msg 224 305 next;
#X text 285 307 and output y val;
#X text 285 278 or next x > num;
#X msg 248 349 min;
#X msg 248 373 max;
#X text 289 351 output smallest;
#X text 289 374 or largest stored y val;
#X msg 52 370 write;
#X text 23 353 save contents;
#X msg 40 430 read;
#X text 22 413 load contents;
#X msg 312 447 read /tmp/test.funbuff;
#X msg 312 426 write /tmp/test.funbuff;
#X text 283 408 with filename as arg no dialog appears:;
#X obj 684 243 funbuff;
#C restore;
#X obj 684 274 print funbuff2;
#X msg 646 108 bang;
#X text 686 108 print status info;
#X msg 604 83 set 1 1 2 2.2 3 3.5;
#X text 554 65 another way to store pairs:;
#X msg 696 134 delete 1 1;
#X text 772 135 delete matching pair;
#X msg 703 164 delete 2;
#X text 766 166 delete pair where x=2;
#X msg 793 208 delete 3 4;
#X text 722 191 no! we don't have it:;
#X obj 664 400 funbuff;
#C restore;
#X obj 686 426 print funbuffY;
#X obj 664 453 print funbuffX;
#X msg 622 340 1 2 \, 3 4 \, 5 6 \, 7 8;
#X msg 671 368 dump;
#X text 768 339 load some vals;
#X text 718 368 and dump them;
#X obj 166 494 funbuff /tmp/test.funbuff;
#C restore;
#X text 349 492 arg sets initial filename to load;
#N canvas 28 70 678 307 even 0;
#X obj 119 161 funbuff;
#C restore;
#X msg 43 72 set 1 2 4 5 7 8 11 12 13 14;
#X text 39 55 load some values:;
#X msg 119 97 goto 0;
#X msg 141 128 next;
#X text 174 98 goto start;
#X floatatom 119 259 5 0 0 0 - - -;
#X text 166 258 y value;
#X floatatom 141 230 5 0 0 0 - - -;
#X text 189 229 diff between current and prev x vla;
#X obj 163 194 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X text 192 194 we reached the end ...;
#X obj 505 200 funbuff;
#C restore;
#X floatatom 549 117 5 0 0 0 - - -;
#X floatatom 505 170 5 0 0 0 - - -;
#X floatatom 505 248 5 0 0 0 - - -;
#X text 405 149 then x \, and use x to retrieve y:;
#X text 509 98 set y value first:;
#X text 38 27 the other outlets make sense too:;
#X text 399 32 and again another way to load data:;
#X text 185 129 hit this a couple of times;
#X connect 0 0 6 0;
#X connect 0 1 8 0;
#X connect 0 2 10 0;
#X connect 1 0 0 0;
#X connect 3 0 0 0;
#X connect 4 0 0 0;
#X connect 12 0 15 0;
#X connect 13 0 12 1;
#X connect 14 0 12 0;
#X restore 626 533 pd even more ...;
#X obj 34 14 cnv 15 400 40 empty empty empty 20 12 0 14 -262130 -66577
0;
#X text 24 591 docs based on the MAX/MSP reference (c) cycling'74;
#X text 23 605 ___________________________________________________
;
#N canvas 153 117 494 419 META 0;
#X text 12 225 HELP_PATCH_AUTHORS Christoph Kummerer. Revised by Jonathan
Wilkes for Pd-extended 0.42 to conform to the PDDP template.;
#X text 12 195 WEBSITE http://suita.chopin.edu.pl/~czaja/miXed/externs/cyclone.html
;
#X text 12 5 KEYWORDS control storage max_compatible;
#X text 12 45 DESCRIPTION store x \, y pairs of numbers together;
#X text 12 95 INLET_1 float;
#X text 12 65 INLET_0 float list set bang delete dump embed goto next
clear write min max read write;
#X text 12 115 OUTLET_0 float;
#X text 12 135 OUTLET_1 float;
#X text 12 155 OUTLET_2 bang;
#X text 12 25 LICENSE SIBSD;
#X text 12 175 AUTHOR Krzysztof Czaja;
#X restore 816 573 pd META;
#X text 155 21 store x \, y pairs of numbers together \, see also:
;
#X obj 31 19 funbuff filename;
#C restore;
#X connect 1 0 51 0;
#X connect 2 0 51 0;
#X connect 4 0 51 0;
#X connect 6 0 51 0;
#X connect 9 0 51 0;
#X connect 11 0 51 0;
#X connect 12 0 11 0;
#X connect 15 0 51 0;
#X connect 16 0 15 0;
#X connect 18 0 51 0;
#X connect 21 0 51 0;
#X connect 22 0 51 0;
#X connect 25 0 51 0;
#X connect 27 0 51 0;
#X connect 29 0 51 0;
#X connect 30 0 51 0;
#X connect 32 0 33 0;
#X connect 34 0 32 0;
#X connect 36 0 32 0;
#X connect 38 0 32 0;
#X connect 40 0 32 0;
#X connect 42 0 32 0;
#X connect 44 0 46 0;
#X connect 44 1 45 0;
#X connect 47 0 44 0;
#X connect 48 0 44 0;
#X connect 51 0 3 0;