| lindenmayer.addRule("b", "a Tt+1 N c Tt+1 N") ==>
"b" is replaced with "a Tt-1 N c Tt+1 N"
The note event is created not with symbols in the rules, but rather with
parameters derived from the turtle state. I.e. the turtle starts out at
time 0, dur 1, key 60, velocity 60, etc., then Tt+1 advances the turtle to
time 1, Tk+3 transposes the turtle to key 63, etc. So the first note above
is t61 k60, the second note is t62 k60.
In other words the Lindenmayer system rules recursively generate a long
string of commands for moving the turtle around. Once the system is
generated, it is interpreted; the turtle reads the string one command at a
time and interprets each command, "drawing" a score in the process, moving
back and forth in time and up and down in pitch, etc.
Original Message:
-----------------
From: Oeyvind Brandtsegg obrandts@online.no
Date: Thu, 15 Jul 2004 20:26:21 +0200 (CEST)
To: gogins@pipeline.com
Subject: Re: Lindenmayer question
hi Michael,
thanks for the answer, but I'm sorry, I do not understand.
I have not defined any rule for what d should be replaced with,
so I thought that way it would simply disappear.
But c is replaced with d a,
and I thought that this woluld create a small amount of d's scattered
around in each iteration.
Just to check if my understanding of syntax is correct:
lindenmayer.addRule("b", "a Tt+1 N c Tt+1 N")
does mean that "b" should be replaced with "a" "c" right ?
and that a note event should be created with the parameters of "a" (after
Tt+1),
and another note event should be created with the parameters of "c" (after
another Tt+1)
When I set "a" to contain Tk=60 and "c" to contain Tk=65 (in the axiom),
these parameters will still be assigned to those letters after several
iterations, no ?
(unless the rules have rewritten Tk)
thanks for your patience and help
Oeyvind
> From: gogins@pipeline.com
> Sent: 2004-07-14 22:42:53 CEST
> To: obrandts@online.no
> Subject: RE: Lindenmayer question
>
> d is replaced with itself.
>
> Original Message:
> -----------------
> From: Oeyvind Brandtsegg obrandts@online.no
> Date: Wed, 14 Jul 2004 20:35:19 +0200 (CEST)
> To: gogins@pipeline.com, csound@lists.bath.ac.uk
> Subject: Lindenmayer question
>
>
> I've been playing around, trying to figure out how to use the Lindenmayer
> systems.
> Attached is a very simple example, that does not work as I wanted to.
>
> From my understanding of Lindenmayer systems (do correct me, I'm
learning),
> if:
>
> Axiom: abcd
> Rules:
> a -> b
> b -> a c
> c -> d a
> d -> nothing (deleted)
>
> I'd expect this to eveolve like this
>
> 1st iteration:
> b a c d a
> 2nd iteration
> a c b d a b
> 3rd iteration
> b d a a c b a c
> 4th iteration
> a c b b d a a c b d a
> and so on
>
> Maybe my understanding of the system is wrong,
> or maybe I have coded it incorrectly in my example.
>
> Any help appreciated
>
> best
> Oeyvind
>
>
> --------------------------------------------------------------------
> mail2web - Check your email from the web at
> http://mail2web.com/ .
>
>
--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web.com/ .
--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web.com/ . |