Algorithmic Art and Music Composition
Algorithmic Art and Music Composition
Algorithmic Art and Music Composition
Ch 8.4
1
Generative and algorithmic art
2
The role of the algorithm
3
Algorithms for music composition
! Approaches
! Integrated tools and languages that will cover all possible
composing desiderata;
! Personalized micro-programs written in small languages
4
Algorithmic processes
! Mathematical models
! Markov processes
! Stochastic processes
! Fractals
5
Algorithmic processes
6
Stochastic - Probabilities
! Approach
! Stochastic music programme “deduced” a score from a list of
note densities and probabilistic weights defined by the composer.
! Aims
! Development of a mathematical language for describing and
manipulating music.
! First to conceive of a composing program as a utility capable of
generating many pieces, rather than achieving one specific
compositional goal.
8
Stochastic - Markov Chains
Advantage
• Captures note-by-note
structure of input in short term
Disadvantage
• Lacks long term structure
9
Markov processes
! Markov chain
! Without step 3 and output x(t)
10
Example Markov chain
11
Disadvantages of stochastic processes
12
Knowledge based systems
! Advantages
! have explicit reasoning;
! can explain their choice of actions.
! Disadvantages
! Knowledge elicitation is difficult and time consuming,
! depend on the ability of the ”expert”
! become too complicated if we try to add all the ”exceptions to the
rule and their preconditions,
13
Grammars
14
KBS 2 - Grammars – methods
so possible sequence =
S => A => aA => aaA => aaaA => aaaaA => aaaaa
Tree representation of grammar
15
Grammars – natural language example
16
Grammars: problems
17
Evolutionary methods
! Algorithm GeneticAlg
! Initialize population
! while not finished evolving
! Calculate fitness of each individual
! Select preferred individuals to be parents
! for N != populationSize
! Breed new individuals
! (cross over + mutation)
! Build next generation
! Render output
18
Evolutionary methods
! Fitness function
! Use of an objective fitness function.
! Use of a human as a fitness function. è Interactive GA
! Mutation ensures new individuals are introduced into the population
! Reproduction operator (cross-over) mixes 'good' solutions of 2
parents
! Drawback
! Subjectivity
! Efficiency, the ”fitness bottleneck, boredom effects
19
Learning systems
! Learning systems,
! do not have a priori knowledge (e.g. production rules,
constraints) of the domain,
! but instead learn its features by examples.
! Stored information
! subsymbolic/distributive (Artificial Neural Networks, ANN)
! symbolic (Machine Learning, ML).
20
Artificial Neural Networks – training
21
Learning systems: Subsymbolic
22
‘Extramusical’ approaches
Rhythmic mappings
Harmonic mappings 23
Extramusical
! Rationale
! Structures in certain mathematical systems seen to model
musical structures/ compositional or performance processes.
! Advantages
! No need for explicit formalisation of musical ‘rules’
! Encourages exploration of ‘new’ music rather than attempts to
recreate existing music
! Disadvantages
! Arguably difficult for listeners to engage with as no cultural
reference.
! Relies heavily on selecting good mappings (ie defining which
musical parameters are controlled)
24
References
25