What is algorithmic composition?
Composition & FormA method of creating music using a defined set of rules or computational procedures. Algorithms can generate notes, rhythms, harmonies, or larger musical structures.
A method of creating music using a defined set of rules or computational procedures. Algorithms can generate notes, rhythms, harmonies, or larger musical structures.
Algorithmic composition uses explicit procedures to generate or organize musical material. A procedure can determine pitches, durations, harmonies, textures, section order, or relationships between performers. It may be carried out by a computer, by musicians following instructions, or through a physical process such as dice selecting among prepared measures. The defining feature is the organizing procedure rather than a particular technology or sound.
A deterministic procedure produces the same result from the same inputs and starting state. A stochastic procedure uses probability, so repeated realizations can differ while following the same constraints. Both can coexist: a system might hold the form and harmonic plan fixed while choosing individual notes from weighted alternatives. Randomness alone does not provide musical structure; the available choices, their weights, and their interaction with timing and context shape the result.
The composer also determines how the generated material enters the work. It can be selected and revised before publication, realized as a fixed score, or produced during an interactive performance. A system that generates one melody still leaves questions of phrasing, instrumentation, balance, and larger form. Describing which decisions are automated and which remain with people makes the contribution of the algorithm clearer.
is the musical state at event , such as the current pitch, and is the probability of choosing state next when the current state is . Each row sums to 1 across all possible next states. This describes a first-order Markov model whose next-state choice depends only on the current state; the states can encode more context if the designer chooses. It is one algorithmic technique, not a formula for composition in general. Probability values do not by themselves guarantee phrases, harmonic direction, or artistic quality.
Algorithmic composition is not synonymous with artificial intelligence or generative AI. Simple arithmetic rules and musical dice games qualify without either. It also differs from sound synthesis: deciding which notes occur is a compositional task, while producing their audio is a rendering task, although a work can integrate both. A system need not run indefinitely or remove human choices to count as algorithmic.