diff options
Diffstat (limited to 'externals/vanilla/textfile-help.pd')
-rw-r--r-- | externals/vanilla/textfile-help.pd | 165 |
1 files changed, 56 insertions, 109 deletions
diff --git a/externals/vanilla/textfile-help.pd b/externals/vanilla/textfile-help.pd index 21207bc2..8da1dde6 100644 --- a/externals/vanilla/textfile-help.pd +++ b/externals/vanilla/textfile-help.pd @@ -1,112 +1,59 @@ -#N canvas 0 0 555 619 10; -#X obj 0 595 cnv 15 552 21 empty \$0-pddp.cnv.footer empty 20 12 0 -14 -228856 -66577 0; -#X obj 0 0 cnv 15 552 40 empty \$0-pddp.cnv.header textfile 3 12 0 -18 -204280 -1 0; -#X obj 0 429 cnv 3 550 3 empty \$0-pddp.cnv.inlets inlets 8 12 0 13 --228856 -1 0; -#N canvas 52 243 494 344 META 0; -#X text 12 125 LIBRARY internal; -#X text 12 165 WEBSITE http://crca.ucsd.edu/~msp/; -#X text 12 25 LICENSE SIBSD; -#X text 12 145 AUTHOR Miller Puckette; -#X text 12 205 HELP_PATCH_AUTHORS Updated for Pd version 0.33. Jonathan -Wilkes revised the patch to conform to the PDDP template for Pd version -0.42.; -#X text 12 45 DESCRIPTION read and write text files; -#X text 12 65 INLET_0 bang rewind clear add add2 set read write print -; -#X text 12 85 OUTLET_0 list; -#X text 12 105 OUTLET_1 bang; -#X text 12 5 KEYWORDS control storage filesystem list_op anything_op -; -#X text 12 185 RELEASE_DATE 1997; -#X restore 500 597 pd META; -#X obj 0 465 cnv 3 550 3 empty \$0-pddp.cnv.outlets outlets 8 12 0 -13 -228856 -1 0; -#X obj 0 531 cnv 3 550 3 empty \$0-pddp.cnv.argument arguments 8 12 -0 13 -228856 -1 0; -#X obj 0 558 cnv 3 550 3 empty \$0-pddp.cnv.more_info more_info 8 12 -0 13 -228856 -1 0; -#X text 98 535 (none); -#N canvas 73 482 428 109 Related_objects 0; -#X obj 1 1 cnv 15 425 20 empty \$0-pddp.cnv.subheading empty 3 12 0 -14 -204280 -1 0; -#X text 8 2 [textfile] Related Objects; -#X obj 22 43 qlist; -#X restore 102 597 pd Related_objects; -#X obj 78 438 cnv 17 3 17 empty \$0-pddp.cnv.let.0 0 5 9 0 16 -228856 --162280 0; -#X obj 78 474 cnv 17 3 17 empty \$0-pddp.cnv.let.0 0 5 9 0 16 -228856 --162280 0; -#X obj 78 498 cnv 17 3 17 empty \$0-pddp.cnv.let.1 1 5 9 0 16 -228856 --162280 0; -#X text 11 23 read and write text files; -#X obj 435 20 pddp/pddplink http://wiki.puredata.info/en/textfile -text -pdpedia: textfile; -#X obj 465 3 textfile; -#X obj 85 347 print done; -#X text 98 497 bang; -#X text 167 497 - this outlet gets a bang when you hit the end of the -sequence.; -#X text 98 473 list; -#X text 168 473 - this outlet gets the lines in sequence.; -#X text 168 437 (see the example above for messages accepted by [textfile]) -; -#X msg 101 76 rewind; -#X text 214 207 read a file; -#X msg 101 208 read textfile.txt; -#X text 152 75 go to beginning; -#X msg 101 98 bang; -#X text 152 97 output one line as a list; -#X msg 101 230 write /tmp/textfile.txt; -#X msg 101 252 write /tmp/textfile2.txt cr; -#X msg 101 274 read textfile.txt cr; -#X msg 101 120 clear; -#X text 152 119 empty the object; -#X text 208 142 add a message; -#X msg 101 186 set 2 4 6 8; -#X text 208 186 clear and then add one message; -#X msg 101 142 add cis boom bah; -#X msg 101 164 add2 bang; -#X text 208 164 add an unterminated message; -#X msg 101 296 print; -#X text 145 296 debugging printout; -#X text 248 229 write a file; -#X text 274 311 mapped to semicolons.; -#X obj 40 322 textfile; -#X text 272 251 write a file \, terminating lines with a; -#X text 273 266 carriage return (omitting semicolons).; -#X text 272 281 You can read files this way \, too \, in; -#X text 273 296 which case carriage returns are mapped; -#N canvas 94 361 428 199 About_textfile 0; -#X obj 1 1 cnv 15 425 20 empty \$0-pddp.cnv.subheading empty 3 12 0 -14 -204280 -1 0; -#X text 8 2 [textfile] Related Objects; -#X text 21 38 The textfile object reads and writes text files to and -from memory. You can read a file and output sequential lines as messages +#N canvas 12 43 1181 529 12; +#X msg 582 27 rewind; +#X obj 577 416 print done; +#X text 745 185 read a file; +#X text 801 214 write one; +#X text 97 472 see also:; +#X obj 521 365 textfile; +#X msg 584 188 read textfile.txt; +#X obj 176 473 qlist; +#X obj 145 20 textfile; +#X text 236 20 read and write text files; +#X text 34 92 The textfile object reads and writes text files to and +from memory. You can read a file and output sequential lines as lists \, or collect lines and write them out. You can use this object to generate "models" for Gem \, for instance.; -#X text 20 91 To record textual messages and save them to a file \, -first send "clear" to empty the sequence and "add" to add messages -(terminated with semicolons.) The message \, "add2" adds a list of -atoms without finishing with a semicolon in case you want to make variable-length +#X text 665 28 go to beginning; +#X msg 582 54 bang; +#X text 665 53 output one line as a list; +#X msg 584 216 write /tmp/textfile.txt; +#X msg 584 243 write /tmp/textfile2.txt cr; +#X text 593 264 write a file \, terminating lines only with carriage +return (omitting semicolons.) You can read files this way too \, in +which case carriage returns are mapped to semicolons.; +#X obj 521 438 print list; +#X msg 583 312 read textfile.txt cr; +#X msg 582 82 clear; +#X text 737 83 empty the object; +#X text 737 111 add a message; +#X text 521 464 this outlet gets the lines in sequence.; +#X text 35 246 You can also use this object simply for storing heterogeneous +sequences of lists.; +#X text 608 385 This outlet gets a bang when you hit the end of the +sequence.; +#X msg 582 162 set 2 4 6 8; +#X text 740 163 clear and then add one message; +#X msg 582 109 add cis boom bah; +#X msg 582 136 add2 bang; +#X text 734 136 add an unterminated message; +#X text 31 160 To record textual messages and save them to a file \, +first send "clear" to empty the qlist and "add" to add messages (terminated +with semicolons.) The message \, "add2" adds a list of atoms without +finishing with a semicolon in case you want to make variable-length messages.; -#X text 20 155 You can also use this object simply for storing heterogeneous -sequences of messages.; -#X restore 101 567 pd About_textfile; -#X obj 40 369 print message; -#X obj 4 597 pddp/pddplink pddp/help.pd -text help; -#X connect 21 0 42 0; -#X connect 23 0 42 0; -#X connect 25 0 42 0; -#X connect 27 0 42 0; -#X connect 28 0 42 0; -#X connect 29 0 42 0; -#X connect 30 0 42 0; -#X connect 33 0 42 0; -#X connect 35 0 42 0; -#X connect 36 0 42 0; -#X connect 38 0 42 0; -#X connect 42 0 48 0; -#X connect 42 1 15 0; +#X msg 582 339 print; +#X text 636 342 debugging printout; +#X text 901 500 updated for Pd version 0.33; +#X connect 0 0 5 0; +#X connect 5 0 17 0; +#X connect 5 1 1 0; +#X connect 6 0 5 0; +#X connect 12 0 5 0; +#X connect 14 0 5 0; +#X connect 15 0 5 0; +#X connect 18 0 5 0; +#X connect 19 0 5 0; +#X connect 25 0 5 0; +#X connect 27 0 5 0; +#X connect 28 0 5 0; +#X connect 31 0 5 0; |