A Java implementation of a variable-order Markov model for Cycling '74 Max.
This implementation is based on Francois Pachet's Continuator . It allows you to train models of note sequences and then play them back. There is a comprehensive help file and an implementation of the Continuator included.
For more information on using Markov models in music, see  and .
 Pachet, F. (2003). The continuator: Musical interaction with style. Journal of New Music Research, 32(3), 333–341.
 Ames, C. (1989). The Markov Process as a Compositional Model: A Survey and Tutorial. Leonardo, 22(2), 175–187.
 Schulze, W., & van der Merwe, B. (2011). Music Generation with Markov Models. Multimedia, IEEE 18(3), 78–85.