Hi all
I want to use [textfile] without an external textfile. This is what I came up with. Is it working on Linux/OSX? Comments/feedback will be appreciated
o-o
#N canvas 645 128 258 440 12; #X obj 3 -13 cnv 15 235 415 empty empty empty 20 12 0 14 -237175 -66577 0; #X obj 31 93 hsl 161 93 0 127 0 0 empty empty empty -2 -8 0 10 -237121 -261681 -1 4157 1; #X obj 22 7 bng 53 123 50 0 empty empty empty 17 7 0 10 -260818 -24198 -1; #N canvas 314 85 828 487 rec 0; #X obj 233 60 cnv 15 253 345 empty empty empty 20 12 0 14 -261689 -66577 0; #X obj 164 190 timer; #X obj 75 214 list prepend; #X obj 75 284 list prepend add; #X obj 75 314 list trim; #X obj 271 334 textfile; #X obj 274 155 hsl 128 15 0 127 0 0 empty empty empty -2 -8 0 10 -262144 -1 -1 0 1; #X obj 271 118 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1 -1; #X obj 75 170 t f b b; #X msg 271 230 print; #X obj 75 244 list prepend data; #X msg 271 77 read embed_Data.pd; #X msg 271 270 write embed_Data.pd; #X text 122 23 To record , first save the patch to erase my data. ; #X text 470 77 1 Read file into [textfile]; #X text 471 117 2 Reset [timer]; #X text 470 154 3 Record fader movements; #X text 471 190 4 Ad autostart when patch is loaded; #X text 470 230 5 Just tjekking; #X text 469 270 6 Save recorded data; #X text 279 421 7 If all is OK , patch will play data when reloaded ; #X msg 271 190 add start rewind , bang; #X connect 1 0 2 1; #X connect 2 0 10 0; #X connect 3 0 4 0; #X connect 4 0 5 0; #X connect 6 0 8 0; #X connect 7 0 1 0; #X connect 8 0 2 0; #X connect 8 1 1 0; #X connect 8 2 1 1; #X connect 9 0 5 0; #X connect 10 0 3 0; #X connect 11 0 5 0; #X connect 12 0 5 0; #X connect 21 0 5 0; #X restore 43 236 pd rec; #N canvas 0 0 575 505 play 0; #X obj 155 98 list prepend add; #X obj 155 128 list trim; #X obj 155 163 textfile; #X obj 63 143 r feed; #X obj 105 423 s feed; #X obj 105 397 del; #X obj 105 348 t b f; #X obj 155 282 unpack; #X obj 140 373 * 1; #X obj 72 29 r data; #X obj 198 309 outlet; #X obj 314 120 inlet; #X msg 314 143 rewind , bang; #X obj 63 114 r start; #X obj 397 78 loadbang; #X obj 397 103 del 500; #X connect 0 0 1 0; #X connect 1 0 2 0; #X connect 2 0 7 0; #X connect 3 0 2 0; #X connect 5 0 4 0; #X connect 6 0 5 0; #X connect 6 1 8 0; #X connect 7 0 6 0; #X connect 7 1 10 0; #X connect 8 0 5 1; #X connect 9 0 0 0; #X connect 11 0 12 0; #X connect 12 0 2 0; #X connect 13 0 2 0; #X connect 14 0 15 0; #X connect 15 0 12 0; #X coords 0 -1 1 1 13 14 2 100 100; #X restore 28 65 pd play; #X text 30 22 play; #X connect 2 0 4 0; #X connect 4 0 1 0; data 1250 0; data 163.333 3; data 21.3333 5; data 21.3333 8; data 20 29; data 20 39; data 20.6667 56; data 20 63; data 20.6667 76; data 20.6667 82; data 20 95; data 20 98; data 21.3333 105; data 20 106; data 20 110; data 21.3333 111; data 20 113; data 20 114; data 21.3333 115; data 165.333 113; data 24 112; data 22 106; data 21.3333 103; data 18 98; data 24 95; data 16.6667 93; data 31.3333 90; data 18 88; data 24 86; data 21.3333 79; data 20 76; data 20 66; data 21.3333 63; data 20 56; data 20 52; data 20.6667 41; data 20.6667 37; data 20 32; data 20.6667 29; data 20 26; data 40 25; data 102.667 26; data 21.3333 28; data 20 35; data 20 39; data 20.6667 53; data 20.6667 56; data 20 65; data 20.6667 69; data 20 80; data 21.3333 84; data 20 88; data 20 90; data 18 92; data 24 93; data 21.3333 96; data 20 97; data 20 101; data 21.3333 103; data 20 105; data 20 106; data 20.6667 109; data 20.6667 110; data 22 112; data 20.6667 114; data 22 115; data 41.3333 117; data 22 119; data 21.3333 121; data 20.6667 122; data 20.6667 123; data 40 124; data 40.6667 126; data 41.3333 127; start rewind , bang;
No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.408 / Virus Database: 268.13.4/475 - Release Date: 13-10-2006