Академический Документы
Профессиональный Документы
Культура Документы
ALGORITHMIC COMPOSER
Our last few Algorithmic Composition posts have featured OpenMusic ► 2011 (7)
tutorials. We're continuing our look at OpenMusic today by looking at ▼ 2010 (25)
chaos, using the OMChaos library. ► May (7)
▼ April (9)
Random Walks in Max and
PureData
OpenMusic and Chaos -
OMChaos library
OpenMusic Markov Chains and
omlea
OpenMusic and CSound -
om2csound library
Chaos theory is a field of mathematics where dynamic systems are very Piano Phase - Max
sensitive to initial conditions. The famous 'butterfly effect' states that OpenMusic 6.2
small differences can lead to large variations later: the small flap of a Keykit | Algorithmic
butterfly's wings may cause effects that later alter the path of a tornado. Composition Software
http://www.algorithmiccomposer.com/2010/04/algorithmic-composition-openmusic-and_25.html 1/11
28/11/2017 Algorithmic Composer: OpenMusic and Chaos - OMChaos library
Many of our previous algorithmic composition tutorials have used ► March (9)
random elements (e.g. probabilities and Markov chains). Although
► 2009 (1)
Chaos might appear random, it's important to note that it is
deterministic: if you run the algorithm again with exactly the same
input it will produce the same output.
FOLLOWERS
Today we'll start to look at using some Chaos algorithms to generate Followers (45) Next
algorithmic music.
Follow
POPULAR POSTS
Algorithmic Composition:
Markov Chains in
PureData
Algorithmic Composition:
Markov Chains in Max
MSP
2. Create a new patch in your workspace. OMChaos has 4 categories of
functions: orbitals, IFS, fractus and UTILS.
gorithmic Composition with timbres:
Klangfarbenmelodie
http://www.algorithmiccomposer.com/2010/04/algorithmic-composition-openmusic-and_25.html 2/11
28/11/2017 Algorithmic Composer: OpenMusic and Chaos - OMChaos library
Algorithmic Composition |
OpenMusic Rhythm Trees
Tutorial Part 1
LABELS
http://www.algorithmiccomposer.com/2010/04/algorithmic-composition-openmusic-and_25.html 3/11
28/11/2017 Algorithmic Composer: OpenMusic and Chaos - OMChaos library
SUBSCRIBE NOW:
Subscribe in a reader
6. Here we've used 24 values for .95 for f 3.75 for c and set the length to
be 24. Evaluating the KAOSN function will produce a series of 24
values based on these input parameters. Each time its evaluated it will
produce the same numbers. If we change the input values to f 3.75 and
c .94999, the numbers generated will start the same but slowly deviate
as the sequence grows in length: the butterfly effect, small changes in
initial conditions lead to large changes later on.
http://www.algorithmiccomposer.com/2010/04/algorithmic-composition-openmusic-and_25.html 4/11
28/11/2017 Algorithmic Composer: OpenMusic and Chaos - OMChaos library
7. We'll use this chaos function to generate pitches between MIDI note
48 and 72. The output of the kaosn function is a series of floating point
numbers between 0 and 1. To get the number in the range we want add:
http://www.algorithmiccomposer.com/2010/04/algorithmic-composition-openmusic-and_25.html 5/11
28/11/2017 Algorithmic Composer: OpenMusic and Chaos - OMChaos library
8. In this patch we'll have two voices with slightly different initial
conditions for our chaos function. They will start playing identical
notes and then slowly start to deviate. We'll append a reversed copy of
the list, so we'll have a musical palindrome. To do this we can add cons
and reverse functions. Reverse will reverse our original pitch list and
cons will add this reverse pitch list to the end of our original pitch list.
If you evaluate the cons function you'll see it's created list of lists (two
sets of parentheses), we use the flat function here to flatten the list into
a single set of parentheses:
http://www.algorithmiccomposer.com/2010/04/algorithmic-composition-openmusic-and_25.html 6/11
28/11/2017 Algorithmic Composer: OpenMusic and Chaos - OMChaos library
11. We also need to tell OpenMusic what rhythm to use for our melody.
The voice function uses Rhythm Trees as its rhythmic representation.
Rhythm trees are beyond the scope of this algorithmic composition
post, but we will create some algorithmic music with rhythm trees in a
future algorithmic composition tutorial. For now add in a repeat-n
function and a mktree function. In this example we'll create 48 32nd
notes:
http://www.algorithmiccomposer.com/2010/04/algorithmic-composition-openmusic-and_25.html 7/11
28/11/2017 Algorithmic Composer: OpenMusic and Chaos - OMChaos library
10. Your patch should now look something like this (click on the image
for a larger version):
11. To evaluate each voice press v, to play the voice press p to send it to
a MIDI port. If you haven't done this already you can set up your MIDI
outputs in OpenMusic preferences.
12. To hear both voices at the same time we need to create a list of both
voices add in a poly function.
http://www.algorithmiccomposer.com/2010/04/algorithmic-composition-openmusic-and_25.html 8/11
28/11/2017 Algorithmic Composer: OpenMusic and Chaos - OMChaos library
13. We can now hear both voices starting with the same pitches, slowly
diverging and the converging back to the same pitches.
14. We'll be looking at rhythm trees in more detail in a future post, but
for now to make the rhythms more interesting we'll use the nth-
random function to choose randomly from a list of possible rhythms:
(1/32 1/8 -1/16 -1/4 1/16) negative numbers represent rests. Repeat-n
will generate a hundred of the randomly chosen rhythms:
15. Your final patch should look like something like this (I've changed
the length of the sequence for both KAOSN functions to 50, giving us a
http://www.algorithmiccomposer.com/2010/04/algorithmic-composition-openmusic-and_25.html 9/11
28/11/2017 Algorithmic Composer: OpenMusic and Chaos - OMChaos library
melody 100 notes long when the reversed melody is added to the end).
Click on the image for a larger version.
Subscribe to the RSS feed and tune back regularly for more algorithmic
composition tutorials, posts and reviews using Common Music,
OpenMusic, PureData, MaxMSP and other algorithmic composition
software.
http://www.algorithmiccomposer.com/2010/04/algorithmic-composition-openmusic-and_25.html 10/11
28/11/2017 Algorithmic Composer: OpenMusic and Chaos - OMChaos library
NO COMMENTS:
POST A COMMENT
Search
http://www.algorithmiccomposer.com/2010/04/algorithmic-composition-openmusic-and_25.html 11/11