Open oggy22 opened 2 years ago
I see two ways to calculate expectations: 1) Chomsky-analyze the piece up to that point. The analysis should come up as XAYA where A is the pattern currently expanding. Look into Y to predict the next note. X and/or Y may be empty. 2) Chomsky-analyze all the combinations of the piece up to the point + random new note. Choose that note which makes "the most" sense according to the analysis.
Given a melody, or a song, calculate expectations based on the previous notes. Utilize the chomsky analysis of the piece (up to the note). Expectations can be contrasted to actual notes. A good melody has the rate of expected=actual in the goldilock zone.
If the expect=actual rate is too high the melody is simple or too boring. Kolmogorov complexity is low. if the expect=actual rate is too low, the melody is too complex and unpredictable. Kolmogorov complexity is high.