Ever been to the park and heard a tribe drumming in the distance? This is a drum circle. Upon closer inspection, each drummer has a single instrument (or maybe a set of bongos). Each drummer keeps a steady beat in common and in syncopation with his or her fellow drummers.
Recently I was enjoying Steve Reich's "Octet" (Eight Lines) and became curious if I could mimic the simple, staccato phrases with which he starts off his piece.
What are "ngrams"? And how do they relate to music? Well ngrams are basically groups of tokens. These groups are of a certain given size - say phrases of three words. If we consider notes as tokens we get musical ngrams! We can count the number of occurrences of each ngram phrase, and thus know how many times a given phrase is repeated. How often does Bach repeat himself, for instance?
What do the fittest barycentric chords of an evolutionary generic algorithm sound like? Bary- what? Genetic what?
Today I decided to revisit the Bach Choral Harmony data set and look at chord progression transitions.
In order to do this I wrote a small program that tallies the movement from one chord to another, and then outputs a Graphviz dot file that can be turned into an image.