Jump to content

lsystem - extension idea

Recommended Posts

;;; a little extension for lsystems, i needed all generations, not only the final one. i think for in-time-processes it's more interesting, because you will hear/see the way of "growing/developing"

;;; perhaps JANUSZ could extended the original OPMO-function. keep attention about stack-overflow if you have LARGE DEPth :-)

;;; function
(defun all-gen-lsystem (ls &key depth )
  (loop repeat (1+ depth)
    for i from 0 to depth
    collect (rewrite-lsystem ls :depth i)))

;;; setup

(defclass sieve_1 (l-system)
  ((axiom :initform '(1))
   (depth :initform 10)))

(defmethod l-productions ((ls sieve_1))
  (choose-production ls
                     (1 (--> 2 1))
                     (2 (--> 4))
                     (4 (--> 2 6))
                     (6 (--> 1))))

;;; example

; new => all gen
(all-gen-lsystem 'sieve_1 :depth 3)
=> ((1) (2 1) (4 2 1) (2 6 4 2 1))

; original => only last gen
(rewrite-lsystem 'sieve_1 :depth 3)
=> (2 6 4 2 1) 


Link to post
Share on other sites

If you want more control over the L-system generation, have a look at the original documentation of the system L-Lisp, from which Janusz derived the Opusmodus functionality: 


Erstad, K. A. (2002) L-systems, twining plants, Lisp. Master’s thesis thesis. University of Bergen. [online]. Available from: http://www.vcn.bc.ca/~griffink/lisp_lsystems.pdf
Link to post
Share on other sites

thank you, torsten! 🙂 

(at the moment, I'm thinking about what the GAP is between visual visual l-systems (images, you see the whole "gestalt") and acoustic ones (which more has to do with the PROCESS in time, musical grammar...). the handling / perception / .... is a completely different one)

Link to post
Share on other sites

the GAP is between visual L-systems and acoustic ones


Yes, of course, there is a completely different way of perception at play. If you come up with a good answer to that, I would be interested.


BTW, if you want some other examples of compositional applications, you might want to have a look at ”Cells” (1993/94) by Hanspeter Kyburz, discussed in the following two publications.



Supper, M. (2001) A Few Remarks on Algorithmic Composition. Computer Music Journal. 25 (1), 48–53.


Holz, E. (2012) Das Wachstumprinzip von L-Systemen in der Musik von Hanspeter Kyburz. Master’s thesis. Hochschule für Musik Hanns Eisler.  Available from: http://www.eresholz.de/de/text/Eres Holz_Ausschnitt aus der Masterarbeit.pdf(Accessed 20 September 2016).
Link to post
Share on other sites

thanks, torsten!

i know hanspeter kyburz (i almost studied with him 😀 - and because of him i started working with algorithms) and i know some of his works (CELLS / PARTS / ....). if you have the article of ERES HOLZ as pdf, would be nice (the link seems to be dead)...



only some short thoughts - not on an scientific research level 😉


isn't it - in general - a question about complexity and information? 

and complexity/information changes when you are changing/crossing the MEDIA. that means: from algorithms/code/mathematics to sound/music or visuals... also the complexity itself changes, it's like  transforming... "the complexities" are different - the manifestation of it. so it's quite simple - and you feel so important and intelligent and "arty" 😉 - when you TAKE a really advanced mathematical/algorithmic grammar/process as a TOOL, ...but in accoustic perception the result could be quite "noise", because the musical complexity is different and depends - in my opinion - a lot on "how you map these things", on which musical  parameters and objects, in which dimensions...


of course, it's also interesting to use such things - like algorithms -  in a way of "creative misunderstanding" (as i think ferneyhough once mentioned in different context), but we should be aware of the GAPS:  algorithmic complexity - effective complexity.


what do you think?






HEINZ VON FöRSTER had some really good thoughts on such things - in an abstract way... here is an article....



and an article from DAVID GALANTER...

Galanter_2003_What is Generative Art Complexity theory as a context for art theory.pdf

Link to post
Share on other sites

if you have the article of ERES HOLZ as pdf, would be nice (the link seems to be dead)...


See attached.


> isn't it - in general - a question about complexity and information? 


I think it is also a question of memory -- we can only perceive a form if we can remember the form parts (Schönberg talks about comprehensibility/Fasslichkeit) which then allows us to compare etc. Obviously, that is more easy in a visual form, where you can see the whole picture together and move between parts at your own pace.





 Holz_2012_Das Wachstumprinzip von L-Systemen in der Musik von Hanspeter Kyburz.pdf

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Similar Topics

    • By dadek
      I'm continually receiving the following error on start up:
      Opusmodus Extension Initialization(5)
      > Error: Undefined function setup-ins called with arguments ("add" "addflt" "addsnd" "anoi" "arith" "arith1" "arith2" "autoc" "backandforth" "badd" "bandedwg" "bell" "bigbird" "bird" "bowl" "btest" "canter" "cellon" "circular-scanned" "cnv" ...) .
      > While executing: (:internal ccl::with-compilation-unit-body ccl::load-from-stream), in process Opusmodus Extension Initialization(5).
      > Type cmd-/ to continue, cmd-. to abort, cmd-\ for a list of available restarts.
      > If continued: Retry applying setup-ins to ("add" "addflt" "addsnd" "anoi" "arith" "arith1" "arith2" "autoc" "backandforth" "badd" "bandedwg" "bell" "bigbird" "bird" "bowl" "btest" "canter" "cellon" "circular-scanned" "cnv" ...).
      > Type :? for other options.
      1 > .
      This was since upgrading to 2.0.  Is there something I need to correct in my installation?  Thank you.
    • By PatrickMimran
      I would like to know what the more efficient way , when creating a lot of  custom function to be included in the Extension folder:
      to group all the function in the same file
      or to distribute them over several files .  Or one function by file or it doesn't matter 
      Thank you   Patrick
    • By JulioHerrlein
      In my Dissertation, I worked a way to convert every chord and set in a modulo 12 rhythm,
      so the entire catalog of FORTE are converted to rhythms, following the steps of Babitt:

      As a hardcore serialist, Babbitt was interested in converting 12-tone rows to rhythms, in a kind of 12-tone rhythm theory.
      Below, Wuorinen show one example of a typical Babbitt idea:

      For the sake of explaining my idea of function, it's important to have in mind that for Babbitt, the order of the
       row is very important and lead to different results in the pitch to rhythm conversion. Take a look in the example

      In the preceeding figure, the order of the C major triad generate different rhythms. In the example (0 4 7) have a
      different result from (4 0 7) or (7 0 4).
      In the system I developed in my Dissertation, the order does NOT matter, since (0 4 7), (7 0 4) or (4 0 7) will result
       in exactly the same rhythm, as you can see below:

      In my system, the transposition equals rotation (as well as in Babbitt)

      And every chord symbol can be transformed in a rhythm:

      Even voicings can be converted in longer Rhythms (the more spread the voicing, the longer the rhythm):

      So I did every FORTE SET in the catalog, in this way:
      Below, you can see the example of the rhythm of the major triad (Forte number 3-11b).
      In the 1st bar there is the prime form (0 4 7).
      In each subsequent bar there is a rotation of the first set by 16th note increments.
      HERE IS THE POINT, for the sake of the new function !
      The note C (that I call Rhythmic Fundamental, the "root" of the rhythm) is being displaced, as
       you can see in the circled notes.
      THE SET WRAP AROUND ITSELF, always forming 12 time-points (always twelve 16th notes),
      in a different way from Babbit, where the order of the sets generates longer rhythms.
      THIS WAY IS MORE INTERESTING For Popular and Minimalist Repetition Music, as
       well as 12 tone music.
      In the bottom staff, there are the complementary rhythm of the 3-11b set, i.e., the 9-11a
       set. In the catalog, every set is presented alongside its complementary set and every set is
      presented in 3/4 (16th notes) and in 12-8 (with the 8th note as the base value for the increments
       and rotations).

      So the function needed would be the one that mirror exacty this kind of conversion, not the tradicional time-point-system conversion,
      so I could use my catolog inside Opusmodus, connecting the diferent sets, like this:

      Or even using portions of the Rhythmic Sets, by truncating some of them, like this:

      In the preceeding example, only parts of the 2 sets are used (9 time points out of 12 in the 
      first and 8 time points out of 12 in the second).
      So, I hope someone could help me to find a way of implementing this.
      Maybe Janusz or Stephane could find interesting to develop this kind of idea inside
       the software.
      All the best !
      Julio Herrlein
  • Create New...