Musical Ngrams Round II

Tags:

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?

Continue reading Musical Ngrams Round II...