A music generation engine automatically generates musical compositions by
accessing musical sections and corresponding properties including
similarity factors that provide a quantified indication of the similarity
of musical sections to one another (e.g., a percentage of similarity). A
sequential relationship of the musical sections is then determined
according to an algorithmic process that uses the similarity factors to
assess the desirability of the sequential relationship. The
algorithmically created musical composition may then be stored, such as
by rendering the composition as an audio file or by storing a library
file that refers to the musical sections. The created musical composition
may include layers respectively having different audio elements such that
the created musical composition has a first dimension along a timeline
and a second dimension that provides a depth based upon the presence of
different audio elements. The presence and absence of audio elements
along the timeline can be based upon the value of an intensity parameter,
which may be an intensity envelope that is predetermined or automatically
generated based upon user specifications.