The variable order Markov model (VMM) can be seen as an efficient way of implementing high-order Markov models. VMMs have been used frequently in the context of generative music. As depicted in the diagram above, VMMs learn patterns from musical data (in this case a sequence of notes) in order to generate new, similar patterns.