aboutsummaryrefslogtreecommitdiff
path: root/s-lsystem-help.pd
diff options
context:
space:
mode:
authorN.N. <chr15m@users.sourceforge.net>2007-11-17 13:58:45 +0000
committerN.N. <chr15m@users.sourceforge.net>2007-11-17 13:58:45 +0000
commit3980b38b7d9efb6f1d322ef0785feaed1f06a806 (patch)
tree56f40e8053708927921138e95b9adc2b427a5340 /s-lsystem-help.pd
parentcf335a829cb3917e17a4d3074ecb193b6b9d7287 (diff)
This commit was generated by cvs2svn to compensate for changes in r9017,HEADsvn2git-headabstractions/s-abstractions
which included commits to RCS files with non-trunk default branches. svn path=/trunk/abstractions/s-abstractions/; revision=9018
Diffstat (limited to 's-lsystem-help.pd')
-rw-r--r--s-lsystem-help.pd23
1 files changed, 23 insertions, 0 deletions
diff --git a/s-lsystem-help.pd b/s-lsystem-help.pd
new file mode 100644
index 0000000..e374f8f
--- /dev/null
+++ b/s-lsystem-help.pd
@@ -0,0 +1,23 @@
+#N canvas 658 155 450 330 10;
+#X obj 13 293 print;
+#X msg 42 227 3 2 1;
+#X msg 13 170 clear \, rule 1 2 3 2 \, rule 2 3 3 1 \, rule 3 2 1;
+#X msg 42 195 1;
+#X floatatom 85 252 5 0 0 0 - - -;
+#X obj 13 270 s-lsystem 2;
+#X text 127 254 Iterations - watch out! Don't go above 5;
+#X text 12 8 s-lsystem is a Lindenmayer System implemented in Pd. See
+Wikipedia for exactly what a Lindenmayer System is. Basically you can
+set up rules (using the 'rule' message with a list) and then send source
+data into the abstraction. The list elements of the source data will
+be replaced by their corresponding rules (the first element of the
+rule list corresponds to the element that will be replaced). e.g. in
+this example \, 1 will be replaced by '2 3 2' because there is a 'rule
+1 2 3 2'. The 'clear' message will clear all rules out. The argument
+specifies the number of replacement iterations. Requires s-ireplace.
+;
+#X connect 1 0 5 0;
+#X connect 2 0 5 0;
+#X connect 3 0 5 0;
+#X connect 4 0 5 1;
+#X connect 5 0 0 0;