Final CompositionSong Structure Determined By AlgorithmsPercussion : Context - Free GrammarThis grammar is context - free because the outcome of each random decision made is not affected by or affects other decisions made. S-> 0AABB0ACBBCADEBBAA A -> PercI | PercJ | PercK B -> PercL | PercM | PercF | PercH C -> PercA | PercG | PercE D -> PercC | PercD E -> PercG The grammar allows like rhythms to be grouped together and chosen between, to maintain a stylistic control, but is still gives an algorithmic construction. Instrumental Melodies : Stochastic MethodCumulative Probabilities determine which melody to be played. While it is possible to have give preferable melodies higher probabilities for construction, randomness and chance still make the ultimate decision in this algorithm. Source CodeNext Slide |