Weighted Graph “Music”

Code: synch-weighted-randomized

 

This piece was constructed in 4-bar increments by running the above code and importing the generated phrases (MIDI file) into my DAW (Apple Logic).  I then gave the patterns “better” patches, used layers and added a drum track for continuity.

The code uses randomly generated weighted graphs to build up a melody and bassline, given certain command-line parameters.

For this piece, the parameters varied between staccato and legato phrases.  Here are examples,

Staccato:

Legato:

Here is another that I generated in phrases of 8 with slightly different command-line parameters, but without changing patches or adding anything:

Comments

*