Commit 52dca0f9 authored by Miller Puckette's avatar Miller Puckette
Browse files

set up git repository

parents
#N canvas 268 28 1030 744 12;
#X text 204 19 ARRAYS;
#N canvas 0 0 450 300 graph1 0;
#X array array99 100 float 0;
#X coords 0 1 99 -1 400 300 1;
#X restore 614 49 graph;
#X msg 179 325 \; array99 resize \$1;
#X floatatom 179 292 0 0 0;
#X floatatom 21 260 0 0 0;
#X obj 21 294 / 100;
#X msg 21 324 \; array99 const \$1;
#X text 22 233 You can send messages to an array object:;
#X msg 341 325 \; array99 print;
#X text 64 262 <-- set to a constant value;
#X text 221 291 resize;
#X text 342 286 print size;
#X text 22 487 read a text file;
#X text 23 558 write a text file;
#X text 271 559 write a WAV format soundfile;
#X obj 104 714 tabread;
#X obj 255 714 tabwrite;
#X text 20 665 Objects are provided for reading and writing the contents
of arrays via control messages:;
#X obj 602 654 tabread4~;
#X obj 602 679 tabwrite~;
#X obj 695 654 tabreceive~;
#X text 593 601 ...and audio signals:;
#X obj 695 630 tabsend~;
#X msg 381 400 \; array99 normalize;
#X msg 382 442 \; array99 normalize 0.5;
#X text 375 378 normalize to 1 or otherwise;
#X obj 266 537 soundfiler;
#X obj 812 631 tabosc4~;
#X msg 19 402 \; array99 sinesum 64 0.2 0.2 0.2 0.2;
#X msg 19 444 \; array99 cosinesum 64 0.2 0.2 0.2 0.2;
#X text 23 378 Fourier synthesis (resizes table);
#X text 257 484 read a soundfile;
#X text 735 698 last updated for release 0.34;
#X obj 175 715 tabread4;
#X obj 602 628 tabread~;
#X msg 267 511 read ../sound/voice2.wav array99;
#X text 19 47 Arrays in Pd provide a unified way to deal with lists
of numbers \, treating them as either audio samples or for "control"
uses. To make one \, select "array" on the "new" menu. Dialogs appear
to help you choose the name \, number of elements \, and various flags.
;
#X text 17 134 You can also change the array size using the "resize"
message shown below. Arrays live in graphs and graphs may hold more
than one array--however \, graphs containing more than one array won't
know how to readjust themselves automatically when the arrays are resized.
;
#X msg 15 507 \; array99 read 15.file.txt;
#X obj 26 581 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X obj 26 600 savepanel;
#X msg 26 623 \; array99 write \$1;
#X obj 270 577 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X obj 270 596 savepanel;
#X obj 270 642 soundfiler;
#X msg 270 619 write \$1 array99;
#X connect 3 0 2 0;
#X connect 4 0 5 0;
#X connect 5 0 6 0;
#X connect 35 0 26 0;
#X connect 39 0 40 0;
#X connect 40 0 41 0;
#X connect 42 0 43 0;
#X connect 43 0 45 0;
#X connect 45 0 44 0;
#N canvas 19 83 830 601 12;
#X graph graph1 0 -1 5 1 569 304 769 154;
#X array array99 5 float;
#X array array98 7 float;
#X pop;
#X text 135 18 MORE ON ARRAYS;
#X msg 17 229 \; array99 rename george;
#X msg 221 229 \; george rename array99;
#X msg 317 166 \; array99 3 -0.5 0.5;
#X text 17 207 renaming an array:;
#X text 16 276 setting the bounds rectangle:;
#X msg 18 296 \; array99 bounds 0 -2 10 2;
#X msg 245 294 \; array99 bounds 0 -1 5 1;
#X msg 19 395 \; array99 xticks 0 1 1;
#X msg 212 394 \; array99 yticks 0 0.1 5;
#X text 15 342 adding x and y labels: give a point to put a tick \, the interval between ticks \, and the number of ticks overall per large tick.;
#X msg 15 472 \; array99 xlabel -1.1 0 1 2 3 4 5;
#X text 12 436 adding labels. Give a y value and a bunch of x values or vice versa:;
#X msg 17 166 \; array98 0 -1 1 -1 1 -1 1 -1 1 -1;
#X msg 305 472 \; array99 ylabel 5.15 -1 0 1;
#X text 556 575 last updated for release 0.33;
#X text 10 39 Arrays have methods to set their values explicitly \; to set their "bounds" rectangles \, to rename them (but if you have two with the same name this won't necessarily do what you want) and to add markings. To set values by message \, send a list whise first element gives the index to start at. The second example sets two values starting at index three. Indices count up from zero.;
#X text 11 522 You can also change x and y range and size in the "properties" dialog. Note that information about size and ranges is saved \, but ticks \, labels \, and the actual data are lost between Pd sessions.;
#N canvas 47 52 517 445 12;
#X floatatom 108 89 0 0 0;
#X floatatom 72 89 0 0 0;
#X obj 36 62 notein;
#X floatatom 36 88 0 0 0;
#X floatatom 228 91 0 0 0;
#X floatatom 192 91 0 0 0;
#X floatatom 156 90 0 0 0;
#X obj 156 64 ctlin;
#X floatatom 319 90 0 0 0;
#X floatatom 283 89 0 0 0;
#X obj 283 63 bendin;
#X floatatom 329 128 0 0 0;
#X floatatom 285 127 0 0 0;
#X obj 285 157 bendout;
#X text 23 18 Pd offers input and output objects for MIDI:;
#X text 358 154 ... ad nauseam.;
#X text 254 417 updated for Pd version 0.34;
#X obj 39 321 midiout;
#X obj 244 368 sysexin;
#X msg 39 291 240 \, 45 \, 93 \, 3 \, 65 \, 1 \, 2 \, 3 \, 4 \, 247
;
#X text 32 252 You can format your own SYSEX messages as shown:;
#X text 28 366 and receive SYSEX via:;
#X connect 2 0 3 0;
#X connect 2 1 1 0;
#X connect 2 2 0 0;
#X connect 7 0 6 0;
#X connect 7 1 5 0;
#X connect 7 2 4 0;
#X connect 10 0 9 0;
#X connect 10 1 8 0;
#X connect 11 0 13 1;
#X connect 12 0 13 0;
#X connect 19 0 17 0;
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
#N canvas 47 52 758 482 12;
#X text 465 442 updated for Pd version 0.26;
#X text 35 28 You can use "qlist" or "textfile" objects for sequencing.
Qlist is simpler to use than the (more versatile) textfile.;
#X obj 345 144 r receive1;
#X obj 441 146 r receive2;
#X msg 205 88 clear \, add receive1 1 \, add 1000 receive1 0 \, add
receive2 2 \, add 1000 receive2 0 \, add receive1 3 \, bang;
#X obj 205 129 qlist;
#X floatatom 345 170 0 0 0 0 - - -;
#X floatatom 441 171 0 0 0 0 - - -;
#X text 48 202 The "add" messages add lines to the qlist \, so that
it contains:;
#X text 155 238 receive1 1;
#X text 154 259 1000 receive1 0;
#X text 155 279 receive2 2;
#X text 153 299 1000 receive2 0;
#X text 155 317 receive1 3;
#X text 16 391 If you have more than 5 lines or so wou will probably
want to store them as a separate file and have qlist read it. You can
also write files \, set tempo \, and single step... see the help patch
for details.;
#X text 22 341 and the "bang" instructs qlist to play the sequence
by sending messages to "receive" objects. Messages starting with numbers
request that amount of delay.;
#X connect 2 0 6 0;
#X connect 3 0 7 0;
#X connect 4 0 5 0;
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment