Hey,
Im quite new to Supercollider and trying to wrap my head around L-Systems.
The normal \A -> AB, \B -> A with Axiom of “A” is already working, but now I would like to implement a key modulation in my Program.
I think for this instance I have to create a Sublist inside the noteDictonary for \C, so “A” could be gradually replaced by “C” after looking up the List from A.
Can someone explain to me how these proto/parent variables ared used? Or am I on the wrong path?
(
var dict = IdentityDictionary[
\A -> "AB",
\B -> "A",
];
var word = "A";
var string_temp = "";
var iter = 10;
//noteDictionary
var dictnotes = IdentityDictionary[
\A -> [64, 71, 72, 67, 74],
\B -> [71, 69, 76, 72, 78],
\C -> [72, 78, 79, 88, 74],
];
var notes=[];
//Iteration
iter.do({
word.asArray.do({|i|
string_temp = string_temp ++ dict[i.asSymbol];
});
word = string_temp;
string_temp = "";
});
word.postln;
word.do({|i| notes = notes ++ dictnotes[i.asSymbol];});
notes.postln;
)
thanks alot