Algorithmic music begins with a rule: divide a cycle, distribute a number of hits, choose from a set of notes, or allow an event to happen with a particular probability. The rule produces musical material that you can hear, edit, and perform.
This does not mean handing every creative decision to a machine. A useful algorithm is closer to a musical constraint. You choose the inputs, listen to the output, and decide what deserves to become part of the piece.
Rules, Systems, And Musical Choices
An algorithm is simply a repeatable procedure. In music, it might be as small as “play every third step” or as involved as a system that changes harmony, density, register, and orchestration over time.
Most practical systems combine three layers:
- Rules define what the system may do.
- Parameters let you shape the result without rewriting the rule.
- Selection turns generated material into an intentional composition.
A fully deterministic rule produces the same result from the same inputs. A probabilistic rule can produce different results each time. Both are algorithmic; randomness is an option, not a requirement.
Start With Polyrhythm
A polyrhythm places different numbers of evenly spaced pulses inside the same span of time. A 3:2 pattern fits three attacks over the same cycle as two attacks. The rule is simple, but the composite rhythm creates movement that neither pulse contains alone.
Open the polyrhythm generator and metronome and begin with 3:2. Listen to both streams, mute one, and tap the missing part. Then compare 4:3 or 5:4. The visual lanes show where each pulse lands and where the streams meet again.
Polyrhythm is a useful introduction to algorithmic thinking because the relationship is audible, visible, and exact. You choose two pulse counts; the shared cycle determines the pattern.
Build Euclidean Rhythms
A Euclidean rhythm spreads a chosen number of hits as evenly as possible across a fixed number of steps. For example, E(3, 8) distributes three hits around an eight-step cycle. Rotation changes where the pattern begins without changing the spacing between its hits.
Use the Euclidean rhythm generator to change the steps, hits, and rotation independently. Try three hits over eight steps, five over twelve, and five over sixteen. Its random rhythm generator mode keeps the same controls but replaces even spacing with seeded hit positions, making every variation repeatable and shareable. Export either result as MIDI when you want to develop it in a DAW or hardware sequencer.
This system is especially useful for percussion because one compact rule can produce many balanced patterns. Layer two different cycles and the interaction becomes richer without requiring a long programmed sequence.
Add Probability Without Losing The Groove
Probability lets a system vary while keeping its underlying structure. A 70% event has a seven-in-ten chance of playing each time the sequencer reaches it. Probability can control whether a hit occurs, which note is chosen, how loud it is, or when a sound changes.
Start conservatively. Keep the main pulse fixed and apply probability to quieter notes, fills, or ornaments. If every event is uncertain, the listener may no longer hear the rule that holds the music together.
Useful probability strategies include:
- keep downbeats at 100% and vary offbeats;
- choose from a small pitch set rather than the full chromatic scale;
- use weighted choices so important notes occur more often;
- change density slowly across sections;
- constrain random values to a playable register or useful parameter range.
Turn A Musical Idea Into Parameters
The best parameters have a clear audible effect. Before building a complex system, decide which musical qualities should remain stable and which should move.
| Musical goal | Fixed rule | Parameters to change |
|---|---|---|
| Cross-rhythm | Two pulses share one cycle | Pulse counts, tempo, accents |
| Distributed beat | Hits are spaced across a step cycle | Steps, hits, rotation |
| Evolving percussion | Core pulse stays recognizable | Probability, velocity, density |
| Generative melody | Notes come from a limited pitch set | Range, direction, rhythm, repetition |
| Changing texture | A process controls sound over time | Filter, envelope, pan, effect depth |
Change one parameter at a time while learning a system. Once you can predict what the control will do, combine changes deliberately.
A Practical DAW Workflow
- Generate or play one short rhythm until its rule is easy to hear.
- Record or export several variations rather than committing to the first result.
- Keep the strongest two or four bars and edit them as musical material.
- Add a stable reference layer such as a kick, bass note, or chord pulse.
- Automate one parameter over a longer phrase to create development.
- Freeze the system when the result serves the track.
Algorithmic composition is not valuable because it produces endless output. It is valuable because a small, understandable system can reveal patterns you may not have entered note by note—and because you can still shape those patterns with musical judgment.
Choose A System To Explore
Use the polyrhythm generator when you want to hear simultaneous pulse streams and practice their coordination. Use the Euclidean rhythm generator when you want one evenly distributed or seeded random step pattern that can be rotated, layered, shared, and exported.
Begin with the smallest rule that creates a result you can hear clearly. Complexity is most useful after the musical relationship already makes sense.