We assume that a sequence of note values appear in music with certain
probability, which can be approximated by an -gram probability, i.e.,
a conditional probability
dependent on
the history of previous note values. Similar to the -gram language
model often used in speech recognition, the probability of rhythm
is approximated by
Conditional probabilities can be obtained through statistical training
using already composed music scores.