Skip to content
Snippets Groups Projects
Commit c0511a29 authored by Ivica Bukvic's avatar Ivica Bukvic
Browse files

*updated preset docs and cleaned typos

parent e73f3972
No related branches found
No related tags found
No related merge requests found
...@@ -55,11 +55,11 @@ to conform to the PDDP template for Pd version 0.42.; ...@@ -55,11 +55,11 @@ to conform to the PDDP template for Pd version 0.42.;
0; 0;
#X msg 447 139 store \$1; #X msg 447 139 store \$1;
#X msg 447 80 recall \$1; #X msg 447 80 recall \$1;
#X floatatom 447 115 5 0 0 0 - - -; #X floatatom 447 115 5 0 0 0 - - -, f 5;
#X msg 395 82 purge; #X msg 395 82 purge;
#X msg 386 60 reset; #X msg 386 60 reset;
#X msg 447 190 clear \$1; #X msg 447 190 clear \$1;
#X floatatom 447 166 5 0 0 0 - - -; #X floatatom 447 166 5 0 0 0 - - -, f 5;
#X obj 386 217 preset_hub another %hidden% %node% 1 32 %preset% 0 99 #X obj 386 217 preset_hub another %hidden% %node% 1 32 %preset% 0 99
%preset% 1 65 %preset% 2 123 %preset% 3 0 %node% 2 39 2 %preset% 0 %preset% 1 65 %preset% 2 123 %preset% 3 0 %node% 2 39 2 %preset% 0
19 %preset% 1 0.23 %preset% 2 999 %preset% 3 0.01; 19 %preset% 1 0.23 %preset% 2 999 %preset% 3 0.01;
...@@ -74,9 +74,9 @@ to conform to the PDDP template for Pd version 0.42.; ...@@ -74,9 +74,9 @@ to conform to the PDDP template for Pd version 0.42.;
#X msg 241 111 list 1 2 3 4; #X msg 241 111 list 1 2 3 4;
#N canvas 778 51 404 229 sub 0; #N canvas 778 51 404 229 sub 0;
#X obj 237 69 preset_node test; #X obj 237 69 preset_node test;
#X floatatom 237 92 5 0 0 0 - - -; #X floatatom 237 92 5 0 0 0 - - -, f 5;
#X obj 113 69 preset_node another; #X obj 113 69 preset_node another;
#X floatatom 113 91 5 0 0 0 - - -; #X floatatom 113 91 5 0 0 0 - - -, f 5;
#X text 111 41 a preset in a subpatch; #X text 111 41 a preset in a subpatch;
#X connect 0 0 1 0; #X connect 0 0 1 0;
#X connect 2 0 3 0; #X connect 2 0 3 0;
...@@ -88,11 +88,11 @@ to conform to the PDDP template for Pd version 0.42.; ...@@ -88,11 +88,11 @@ to conform to the PDDP template for Pd version 0.42.;
#X text 98 436 store; #X text 98 436 store;
#X obj 381 305 cnv 15 44 27 empty empty empty 20 12 0 14 -204280 -66577 #X obj 381 305 cnv 15 44 27 empty empty empty 20 12 0 14 -204280 -66577
0; 0;
#X floatatom 386 310 5 0 0 0 - - -; #X floatatom 386 310 5 0 0 0 - - -, f 5;
#X obj 80 52 hradio 15 1 0 4 empty empty empty 0 -8 0 10 -262144 -1 #X obj 80 52 hradio 15 1 0 4 empty empty empty 0 -8 0 10 -262144 -1
-1 0; -1 0;
#X floatatom 80 102 5 0 0 0 - - -; #X floatatom 80 102 5 0 0 0 - - -, f 5;
#X floatatom 80 151 5 0 0 0 - - -; #X floatatom 80 151 5 0 0 0 - - -, f 5;
#X obj 447 58 hradio 15 1 0 4 empty empty empty 0 -8 0 10 -262144 -1 #X obj 447 58 hradio 15 1 0 4 empty empty empty 0 -8 0 10 -262144 -1
-1 0; -1 0;
#X obj 98 930 pddp/pddplink preset_node-help.pd; #X obj 98 930 pddp/pddplink preset_node-help.pd;
...@@ -103,13 +103,13 @@ of that patch's children (i.e. \, subpatches and abstractions).; ...@@ -103,13 +103,13 @@ of that patch's children (i.e. \, subpatches and abstractions).;
#X text 98 356 clear; #X text 98 356 clear;
#X text 168 356 - clears preset n for all nodes; #X text 168 356 - clears preset n for all nodes;
#X obj 483 4 preset_hub %hidden% %node% 2 10 1 %node% 2 90 37 %node% #X obj 483 4 preset_hub %hidden% %node% 2 10 1 %node% 2 90 37 %node%
3 10 3 37; 3 10 3 37 %node% 3 10 3 36;
#X obj 189 271 preset_node test; #X obj 189 271 preset_node test;
#X floatatom 189 299 5 0 0 0 - - -; #X floatatom 189 299 5 0 0 0 - - -, f 5;
#X msg 198 211 purge; #X msg 198 211 purge;
#X msg 189 189 reset; #X msg 189 189 reset;
#X msg 249 210 clearall \$1; #X msg 249 210 clearall \$1;
#X floatatom 249 189 5 0 0 0 - - -; #X floatatom 249 189 5 0 0 0 - - -, f 5;
#X msg 232 244 set another; #X msg 232 244 set another;
#X msg 311 244 set test; #X msg 311 244 set test;
#X text 171 712 - OPTIONAL scope for this preset (defaults to null #X text 171 712 - OPTIONAL scope for this preset (defaults to null
...@@ -127,10 +127,6 @@ changes to the preset will not trigger "patch dirty" message; ...@@ -127,10 +127,6 @@ changes to the preset will not trigger "patch dirty" message;
that renders preset_hub invisible to GUI operations; that renders preset_hub invisible to GUI operations;
#X text 98 519 write; #X text 98 519 write;
#X text 98 539 readpreset; #X text 98 539 readpreset;
#X text 168 519 - write all presets to a file named in the second argument
;
#X text 168 499 - reads all presets from a file named in the second
argument;
#X text 168 539 - read one preset (optional 3rd argumemnt \, otherwise #X text 168 539 - read one preset (optional 3rd argumemnt \, otherwise
preset 0) from a file named in the second argument; preset 0) from a file named in the second argument;
#X text 98 569 writepreset; #X text 98 569 writepreset;
...@@ -167,12 +163,12 @@ same canvas as the abstraction:; ...@@ -167,12 +163,12 @@ same canvas as the abstraction:;
-1 0; -1 0;
#X msg 19 159 recall \$1; #X msg 19 159 recall \$1;
#X obj 85 139 hradio 15 1 0 4 empty empty empty 0 -8 0 10 -262144 -1 #X obj 85 139 hradio 15 1 0 4 empty empty empty 0 -8 0 10 -262144 -1
-1 0; -1 3;
#X msg 85 159 store \$1; #X msg 85 159 store \$1;
#X obj 10 238 preset_node another; #X obj 10 238 preset_node another;
#X floatatom 10 260 5 0 0 0 - - -; #X floatatom 10 260 5 0 0 0 - - -, f 5;
#X obj 135 238 preset_node another; #X obj 135 238 preset_node another;
#X symbolatom 135 260 10 0 0 0 - - -; #X symbolatom 135 260 10 0 0 0 - - -, f 10;
#X text 263 24 First \, click on read to read all presets stored in #X text 263 24 First \, click on read to read all presets stored in
a separate file. Try recalling presets 0 and 1 Note how storing a new a separate file. Try recalling presets 0 and 1 Note how storing a new
preset does not make the patch dirty due to use of the "file" flag. preset does not make the patch dirty due to use of the "file" flag.
...@@ -239,10 +235,10 @@ with the rest of pd-l2ork \, \$1 with no argument given reverts to ...@@ -239,10 +235,10 @@ with the rest of pd-l2ork \, \$1 with no argument given reverts to
1 444 %preset% 2 333 %preset% 3 222 %preset% 4 111 %preset% 5 0; 1 444 %preset% 2 333 %preset% 3 222 %preset% 4 111 %preset% 5 0;
#X msg 39 63 store \$1; #X msg 39 63 store \$1;
#X msg 106 63 recall \$1; #X msg 106 63 recall \$1;
#X floatatom 39 42 5 0 0 0 - - -; #X floatatom 39 42 5 0 0 0 - - -, f 5;
#X floatatom 106 41 5 0 0 0 - - -; #X floatatom 106 41 5 0 0 0 - - -, f 5;
#X obj 38 135 preset_node \$1; #X obj 38 135 preset_node \$1;
#X floatatom 38 157 5 0 0 0 - - -; #X floatatom 38 157 5 0 0 0 - - -, f 5;
#X text 142 39 <-- recall presets 0-5; #X text 142 39 <-- recall presets 0-5;
#X text 73 155 <-- note how the value changes with each recall; #X text 73 155 <-- note how the value changes with each recall;
#X text 34 191 Notice how the hub and node are paired even no optional #X text 34 191 Notice how the hub and node are paired even no optional
...@@ -274,6 +270,10 @@ or not (1 or 0).; ...@@ -274,6 +270,10 @@ or not (1 or 0).;
#X text 168 456 - sort all presets chronologically and assign them #X text 168 456 - sort all presets chronologically and assign them
new preset numbers one after another starting with a value n or 0 if new preset numbers one after another starting with a value n or 0 if
no value provided; no value provided;
#X text 168 499 - reads all presets from a file named in the first
argument;
#X text 168 519 - write all presets to a file named in the first argument
;
#X connect 14 0 20 0; #X connect 14 0 20 0;
#X connect 15 0 14 0; #X connect 15 0 14 0;
#X connect 16 0 14 0; #X connect 16 0 14 0;
......
#hub %node% 2 86 7 %preset% 0 0 %preset% 1 1 %node% 2 86 9 %preset% 0 zero %preset% 1 one %node% 2 86 11 #hub %node% 1 7 %preset% 0 0 %preset% 1 1 %preset% 2 2 %preset% 3 3 %node% 1 9 %preset% 0 zero %preset% 1 one %preset% 2 two %preset% 3 BOO!
#hubpreset 1 %node% 2 86 7 %preset% 1 1 %node% 2 86 9 %preset% 1 one %node% 2 86 11 #hubpreset 1 %node% 1 7 %preset% 1 1 %node% 1 9 %preset% 1 one
...@@ -47,29 +47,29 @@ nlah 1 %preset% 2 1 2 3 4 %node% 2 50 0 %preset% 0 0 %preset% 1 1 %preset% ...@@ -47,29 +47,29 @@ nlah 1 %preset% 2 1 2 3 4 %node% 2 50 0 %preset% 0 0 %preset% 1 1 %preset%
2 2; 2 2;
#X msg 78 74 store \$1; #X msg 78 74 store \$1;
#X msg 78 124 recall \$1; #X msg 78 124 recall \$1;
#X floatatom 78 50 5 0 0 0 - - -; #X floatatom 78 50 5 0 0 0 - - -, f 5;
#X floatatom 78 100 5 0 0 0 - - -; #X floatatom 78 100 5 0 0 0 - - -, f 5;
#X msg 28 73 purge; #X msg 28 73 purge;
#X msg 18 51 reset; #X msg 18 51 reset;
#X msg 79 174 clear \$1; #X msg 79 174 clear \$1;
#X floatatom 79 150 5 0 0 0 - - -; #X floatatom 79 150 5 0 0 0 - - -, f 5;
#X obj 18 231 print hub_test_says; #X obj 18 231 print hub_test_says;
#X obj 186 267 preset_node test; #X obj 186 267 preset_node test;
#X floatatom 186 295 5 0 0 0 - - -; #X floatatom 186 295 5 0 0 0 - - -, f 5;
#X msg 195 213 purge; #X msg 195 213 purge;
#X msg 143 190 reset; #X msg 143 190 reset;
#X msg 246 212 clearall \$1; #X msg 246 212 clearall \$1;
#X floatatom 246 191 5 0 0 0 - - -; #X floatatom 246 191 5 0 0 0 - - -, f 5;
#X obj 377 50 cnv 15 156 279 empty empty empty 20 12 0 14 -233017 -66577 #X obj 377 50 cnv 15 156 279 empty empty empty 20 12 0 14 -233017 -66577
0; 0;
#X msg 448 83 store \$1; #X msg 448 83 store \$1;
#X msg 448 134 recall \$1; #X msg 448 134 recall \$1;
#X floatatom 448 59 5 0 0 0 - - -; #X floatatom 448 59 5 0 0 0 - - -, f 5;
#X floatatom 448 110 5 0 0 0 - - -; #X floatatom 448 110 5 0 0 0 - - -, f 5;
#X msg 396 82 purge; #X msg 396 82 purge;
#X msg 387 60 reset; #X msg 387 60 reset;
#X msg 448 184 clear \$1; #X msg 448 184 clear \$1;
#X floatatom 448 160 5 0 0 0 - - -; #X floatatom 448 160 5 0 0 0 - - -, f 5;
#X obj 387 217 preset_hub another %hidden% %node% 1 43 %preset% 0 -5.1 #X obj 387 217 preset_hub another %hidden% %node% 1 43 %preset% 0 -5.1
%preset% 1 22 %preset% 2 1.001 %node% 2 50 2 %preset% 0 41 %preset% %preset% 1 22 %preset% 2 1.001 %node% 2 50 2 %preset% 0 41 %preset%
1 101 %preset% 2 7.13; 1 101 %preset% 2 7.13;
...@@ -84,9 +84,9 @@ nlah 1 %preset% 2 1 2 3 4 %node% 2 50 0 %preset% 0 0 %preset% 1 1 %preset% ...@@ -84,9 +84,9 @@ nlah 1 %preset% 2 1 2 3 4 %node% 2 50 0 %preset% 0 0 %preset% 1 1 %preset%
#X msg 238 115 list 1 2 3 4; #X msg 238 115 list 1 2 3 4;
#N canvas 523 458 404 229 sub 0; #N canvas 523 458 404 229 sub 0;
#X obj 237 69 preset_node test; #X obj 237 69 preset_node test;
#X floatatom 237 92 5 0 0 0 - - -; #X floatatom 237 92 5 0 0 0 - - -, f 5;
#X obj 113 69 preset_node another; #X obj 113 69 preset_node another;
#X floatatom 113 91 5 0 0 0 - - -; #X floatatom 113 91 5 0 0 0 - - -, f 5;
#X text 111 41 a preset in a subpatch; #X text 111 41 a preset in a subpatch;
#X connect 0 0 1 0; #X connect 0 0 1 0;
#X connect 2 0 3 0; #X connect 2 0 3 0;
...@@ -131,13 +131,14 @@ same canvas as the abstraction:; ...@@ -131,13 +131,14 @@ same canvas as the abstraction:;
0; 0;
#X msg 213 406 store \$1; #X msg 213 406 store \$1;
#X obj 213 382 hradio 15 1 0 2 empty empty empty 0 -8 0 10 -262144 #X obj 213 382 hradio 15 1 0 2 empty empty empty 0 -8 0 10 -262144
-1 -1 0; -1 -1 1;
#X msg 275 406 recall \$1; #X msg 275 406 recall \$1;
#X msg 92 382 set some_scope; #X msg 92 382 set some_scope;
#X obj 58 407 preset_node some_scope; #X obj 58 407 preset_node some_scope;
#X obj 213 433 preset_hub %hidden% %node% 2 60 17 %preset% 0 50 %preset% #X obj 213 433 preset_hub %hidden% %node% 2 60 17 %preset% 0 50 %preset%
1 100 %node% 2 60 19 %preset% 0 50 %preset% 1 100; 1 100 %node% 2 60 19 %preset% 0 50 %preset% 1 100 %node% 1 19 %preset%
#X floatatom 58 435 5 0 0 0 - - -; 0 1 %preset% 1 5;
#X floatatom 58 435 5 0 0 0 - - -, f 5;
#X text 19 275 Setting node scope via "set" message allows for dynamic #X text 19 275 Setting node scope via "set" message allows for dynamic
scope switching. If you wish to set it to the default (also known as scope switching. If you wish to set it to the default (also known as
null or "") scope \, you should use empty "set" message. Notice in null or "") scope \, you should use empty "set" message. Notice in
...@@ -171,17 +172,13 @@ hub); ...@@ -171,17 +172,13 @@ hub);
#X msg 308 242 set test; #X msg 308 242 set test;
#X obj 381 293 cnv 15 44 27 empty empty empty 20 12 0 14 -204280 -66577 #X obj 381 293 cnv 15 44 27 empty empty empty 20 12 0 14 -204280 -66577
0; 0;
#X floatatom 387 298 5 0 0 0 - - -; #X floatatom 387 298 5 0 0 0 - - -, f 5;
#X text 169 765 - OPTIONAL scope for this preset (defaults to null #X text 169 765 - OPTIONAL scope for this preset (defaults to null
or ""); or "");
#X text 96 543 read; #X text 96 543 read;
#X text 96 573 write; #X text 96 573 write;
#X text 96 603 readpreset; #X text 96 603 readpreset;
#X text 96 643 writepreset; #X text 96 643 writepreset;
#X text 166 543 - reads all presets from a file named in the second
argument (forwarded to hub);
#X text 166 573 - write all presets to a file named in the second argument
(forwarded to hub);
#X text 166 603 - read one preset (optional 3rd argumemnt \, otherwise #X text 166 603 - read one preset (optional 3rd argumemnt \, otherwise
preset 0) from a file named in the second argument (forwarded to hub) preset 0) from a file named in the second argument (forwarded to hub)
; ;
...@@ -208,6 +205,10 @@ messages when supplied no argument default to null (empty string) or ...@@ -208,6 +205,10 @@ messages when supplied no argument default to null (empty string) or
#X text 166 496 - sort all presets chronologically and assign them #X text 166 496 - sort all presets chronologically and assign them
new preset numbers one after another starting with a value n or 0 if new preset numbers one after another starting with a value n or 0 if
no value provided (forwarded to hub); no value provided (forwarded to hub);
#X text 166 573 - write all presets to a file named in the first argument
(forwarded to hub);
#X text 166 543 - reads all presets from a file named in the first
argument (forwarded to hub);
#X connect 15 0 24 0; #X connect 15 0 24 0;
#X connect 16 0 15 0; #X connect 16 0 15 0;
#X connect 17 0 15 0; #X connect 17 0 15 0;
...@@ -239,4 +240,4 @@ no value provided (forwarded to hub); ...@@ -239,4 +240,4 @@ no value provided (forwarded to hub);
#X connect 49 0 45 0; #X connect 49 0 45 0;
#X connect 69 0 25 0; #X connect 69 0 25 0;
#X connect 70 0 25 0; #X connect 70 0 25 0;
#X connect 84 0 25 0; #X connect 82 0 25 0;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment