This project represents a research into the Hierarchical Temporal Memory model in application to music composition.