r/algorithmicmusic • • 1d ago

Machine learning mayhem

Thumbnail reddit.com
1 Upvotes

r/algorithmicmusic • • 1d ago

My algorithmic music themed lunch

Post image
2 Upvotes

r/algorithmicmusic • • 2d ago

AB − BA as an evolving score

2 Upvotes

I’m making Artizen, a 50×50 matrix experiment that uses arithmetic as an evolving score.

A round computes AB, then BA, then their difference. Completed matrix-entry values steer the sound through a signed nonlinear mapping into a pentatonic scale, with legato transitions and quiet underlying tones. The grids show the same calculation: cyan for positive values, magenta for negative values.

The implementation uses Python, browser graphics and Web Audio, developed with a coding assistant. This clip excerpts one saved round; the live system continues into later calculations.

Creator’s live experiment: https://www.youtube.com/@art-izen/live

I’m interested in how other people make dense numerical changes audible while keeping the sound comfortable to follow.


r/algorithmicmusic • • 3d ago

Phrasing App

1 Upvotes

I've created an app which modifies quantized MIDI to express musical phrasing. It implements this in two separate operations, as follows.

First, calculate a moving average of the pitch of notes, expressed as semitones above a floor, within a preset window of beats. Second, calculate a moving average of the note onset density, again within a preset window.

Then, for each midi event, modify the note's velocity based on how closely the two slopes coincide - the closer they are, the greater the modification. The direction of the modification follows the direction of slope of the difference between the two slopes.

Finally, where the slope of the moving note density moving average is increasing, generate increasing tempo events; where it's decreasing, generate decreasing tempo events.

It occurred to me that including note duration in the pitch moving average calculation may increase the musicality of the output. If and when this is implemented I'll add a comment in the project's GitHub repository.

The app accepts several user inputs, which control sensitivity to changes in pitch and note onset density. At this point, it works best with piano music, since in most piano sample libraries tone quality and loudness are both controlled by note velocity. A version for virtual string and wind instruments, where volume and tone quality are controlled by a MIDI modulation code, is planned for a future upgrade.

The overall effect is fairly modest - the output sounds more natural than a quantized piece with a constant velocity, but not like a concert pianist.

If you're using a PDF-to-MIDI converter for your input file, you can expect to do some substantial initial cleanup before submitting it to the app. I've tried several of these, and they're all pretty glitchy.

The app is free and open source. I used ChatGPT Codex to generate the Python code. It runs as a browser-based app on my GitHub test site at https://shenrichs.github.io/phrasemaker-test


r/algorithmicmusic • • 16d ago

duetto: a pretrained music transformer steered note by note into a real-time jazz partner

6 Upvotes

I've been building duetto, which plays jazz standards with you on a MIDI keyboard as a small band: a solo, comping and a walking bass. It comps while you play and takes a solo when you stop.

https://youtu.be/8zIAzVY8O6w

The notes all come from a pretrained transformer (the Anticipatory Music Transformer), used as it is. The "algorithm" is in how it's steered: before each note, rules mask what can't be played and push the model toward the chord's tones or the next note of a phrase quoted from the Weimar Jazz Database. In the video, about 61% of the solo notes are quoted phrases or the theme; the rest is the model on its own.

The code is on GitHub (RiccardoCataldi/duetto, free for noncommercial use). I'd love to hear what you think about the balance between rules and model.


r/algorithmicmusic • • 18d ago

Hello everyone! 👋

Post image
0 Upvotes

🌍 DO YOU WANT TO BE PART OF A MUSIC COMMUNITY? 🎶

Are you looking for a group where independent artists support each other, share their music, discover new talent and grow together?

Join our community! 🤝

Here, we believe in teamwork, respect and mutual support. Everyone deserves a chance to be heard!

🎵 Share your music.

❤️ Support other artists.

🚀 Grow together.

Together We Grow! 🌟


r/algorithmicmusic • • 18d ago

A piece released on bandcamp (csound + csmusgenm nothing to do with AI)

3 Upvotes

Hello everyone. A piece generated by CsMusgen and Csound. Free codes to download it at:

https://band.codes/luiginegrettilanner/bells-on-sunday

The URL of the bandcamp release is:

https://luiginegrettilanner.bandcamp.com/album/bells-on-sunday

I hope you find my piece interesting. Any feedback is highly appreciated.


r/algorithmicmusic • • 19d ago

A rhythmic glitch made from binary code

Thumbnail youtube.com
2 Upvotes

r/algorithmicmusic • • 20d ago

An algorithmic harmonic sequencer with a programming language

Thumbnail antoniovazquezaraujo.github.io
5 Upvotes
Carmen

Hi. I am working at this open source proyect. It is a sort of sequencer but with a high level harmonic concepts. Please, take a look. Thanks


r/algorithmicmusic • • 20d ago

A small band that never plays the same tune twice. I’d love a musician’s ear on it.

0 Upvotes

I'm not a musician, but love music and have a curious mind.

I'm making a puzzle game, and I wanted it to have music. Not a loop of three tracks you learn by heart and come to hate. A band, playing in the corner of the shop. Somewhere along the way the band grew bigger than the game. So now it has a page of its own.

Six or so players: lute and harp, recorder, a hurdy-gurdy that hums over its own drone, a plucked bass, and a drummer who decides everything.

They hold no recordings. They have only the tunes, written in ABC the way folk players trade them, and single notes from public-domain samples. Each time a tune comes round, the drummer chooses its dance. It might be a branle, a pavane, a jig, or a horo in nine. The rest fall in behind. The lead passes from hand to hand. A second player shadows the melody, sparer, ornamented their own way. Trills gather at the cadences, and the recorder breathes at the ends of phrases. When a tune ends, one voice carries a thread across into the next. The music never stops.

About half the repertoire is old: Tourdion, Belle qui tiens ma vie, Greensleeves, Si Bheag Si Mhor, Üsküdar. The other half is new. I wrote those on a composing workbench I built. A language model drafts a tune from a brief, I listen, I keep or strike, and I revise until it sits right. Every one was chosen by ear. None was written by hand.

You can ask for a tune now, next, or last, and set the evening's mood: hearth, supper, or revel.

Hear the troupe →

I'm asking for honesty, not praise:

  • Where do the ornaments sound mechanical?
  • Which dances sit wrong on their tunes?
  • Do the joins between tunes feel like a band turning, or a machine changing tracks?

Free. No ads. Account only game portability.


r/algorithmicmusic • • 21d ago

A piano stream created with my forthcoming composition language

8 Upvotes

Since more than a year I'm working on a new algorithmic composition language. It has now a real-time engine which can play sound fonts and play compositions directly to a stream. So I set up a server with icecast2 which runs one of my compositions: http://ov-0cc378.infomaniak.ch:8000/kanon_eternal_piano.mp3.

The language and environment are in the lineage of Common Music, Nyquist and (partially) OpusModus, but with exclusive focus on symbolic algorithmic music (i.e. not sound design/generation). In contrast to the Lisp/SAL based environmens, my language is statically typed with proper modularization in the School of Prof. Wirth. I'm currently finishing the toolchain and documentation. My plan is to open-source and publish it in December.


r/algorithmicmusic • • 28d ago

Bangaz (for Ableton drums)

1 Upvotes

Rhythmic drummer with encoder knobs to make little variations to each algorithm

https://maxforlive.com/library/device/14131/bangaz-pro


r/algorithmicmusic • • 28d ago

Auricle - an algorithmic MIDI generator with a Composition Planner, parameter automation, and MIDI Learn

1 Upvotes

Title: I’m building Auricle — an algorithmic MIDI generator with a Composition Planner, parameter automation, and MIDI Learn

Hey everyone!

I’ve been working on Auricle, a standalone algorithmic MIDI application for building evolving drum, bass, melody, chord, and pad parts.

The idea is to give you control over both the generation process and how the music develops: choose algorithms, connect instruments, build sections, and automate the details. It sends MIDI to synthesizers, drum machines, or instruments in your DAW, which provide the sound.

Here’s what’s currently in it:

  • Five musical block types: DRUM, BASS, MELODY, CHORD, and PAD. Each has its own generator and musical controls, with independent SEQ and LIVE modes for prepared patterns or ongoing generation.
  • 22 generation algorithms: Euclidean and Bresenham rhythms, polyrhythms, Markov chains, random and interval walks, scale walkers, arpeggiators, Fibonacci and Recamán sequences, cellular automata, L-systems, logistic chaos, Turing machines, orbital sequences, geometry collisions, and more. Parameters remain editable, so you can explore how each algorithm behaves.
  • Composition Planner: arrange sections such as Intro, Verse, Build, Drop, Break, and Outro. Set section lengths, macro curves, instrument activity, density, velocity, register offsets, and performance techniques to give generated material a larger structure.
  • Detailed parameter automation: assign section values, draw time curves, or map parameters to Energy and Tension through configurable response curves. Automation follows each parameter’s actual range and units. Changes can follow musical boundaries such as steps, beats, bars, cycles, or sections.
  • Configurable influence rules: when automation, macros, and modulation affect the same parameter, you can choose priorities, weighted blending, or manual control. Visual indicators show assigned and active influences, while controls distinguish the manual setting from the effective value.
  • MIDI Learn: map physical controller knobs and faders to supported controls, with visual feedback as values change.
  • MIDI Expression: automate CC messages, Pitch Bend, channel Aftertouch, and polyphonic Aftertouch alongside the generated notes.
  • Harmony and chord-transition editor: build progressions using the application’s scale library, choose triads or seventh chords, set durations and inversions, and select smooth or fixed transitions. Suggestions show common tones with the preceding chord. The shared harmonic plan supplies CHORD/PAD voicings and can anchor BASS/MELODY to chord tones.
  • Coordinated Drum Kits: individual voices can work together through shared kit logic, Groove Map controls, metric-aware probabilities, phrase variations, fills, and syncopation. Voices also have their own generation and articulation settings.
  • Ratchet, Flam, and Strum: add repeated drum hits, grace notes, and staggered chord attacks. These parameters can also be controlled from Composition, including through custom Energy/Tension assignments.
  • Relations and instrument dialogue: connect musical streams between instruments and create call-and-response relationships. Drum activity can influence bass movement, while chord material can guide melodic parts.
  • Motifs and transformations: capture material as motifs, develop variations, retain anchors, and recall earlier variants. Mutation chains and process layers add rotation, reversal, transposition, probability changes, timing variation, memory, delay, and feedback to musical streams.
  • Piano roll of the performed result: see actual outgoing note events, including ratchets, flam grace notes, strum offsets, durations, and velocity. It has a configurable fixed-length view and Freeze for inspecting a passage.
  • Algorithm and block presets: 84 factory starting points, plus user presets with JSON import/export and a parameter comparison before loading. Presets save authored settings while retaining the destination’s MIDI routing and project assignments.

There’s also seeded generation, MIDI Clock output and transport messages, Undo/Redo, session recovery, interface themes, and English/Russian help. The application is built for Windows, macOS, and Linux.

GitHub / downloads: https://github.com/kynjo/auricle-algo/releases/tag/v2.0.1

It’s an ongoing project, and I’d love feedback from people working with generative sequencing, hardware MIDI setups, and experimental composition.

What would help you turn an interesting generated pattern into a complete piece?


r/algorithmicmusic • • 29d ago

New ambient algorithmic composition using my virtual wall of test equipment

Thumbnail youtu.be
3 Upvotes

A new algorithmic composition using my virtual wall of test equipment and combinational logic you can try here: https://hearme.studio/testwall/

This piece uses the Phase.app run in the HP 2621A terminal (see preset 12) that algorithmically generates 12-bit digits that represent a simple tonal melody, two variations and a bass part that are of different lengths creating polymetric melodic phasing. The digits are passed to the D-to-A converters and then to the frequency inputs of the HP3310 oscillators. Voice 1 plays the standard 16-step loop, Voice 2 plays a 15-step version transposed up an octave, and Voice 3 plays an inverted 17-step version. Because these loops are different lengths, they drift out of sync by a 16th note each repetition, creating constantly shifting harmonic combinations before eventually realigning.

The melody logic is based on a D Dorian scale centered around D4. The core melody is built using a random walk, jumping up or down by a maximum of two scale degrees per note, with a 15% probability of dropping a note to create a rest. Voice 4, generates a bass pulse transposed down an octave. It alternates between the root and fifth, holding each note for random durations of 4, 6, or 8 sixteenth notes. The seed for the melody is controlled by the Walsh Generator which generates repeated patterns of 12 bit numbers. The seed changes every 8 bars.

The "performance" of the piece primarily involved bringing the core parts in at the beginning and out at the end, and pushing the BBD delay feedback into self-oscillation a couple of times in the middle of the piece. All the other changes where the doubled parts enter and exit use the Clock Toggles so they enter/exit in 8, 16, 12 or 32 bar intervals.

The purpose for building my virtual wall of test equipment was to experiment with some ideas I had for using combinational logic (think TTL logic gates) to generate music with my real wall of test equipment. Other pieces I've created on this set up use only virtual TTL circuits like shift registers, counters and gates; no programmatic elements are used. For this piece I created a virtual computer with a terminal display (the HP2621A, which I actually have in my test wall) that runs small apps that are comparable to computer apps used in the early days of computer music.


r/algorithmicmusic • • Oct 26 '26

New release

3 Upvotes

Hey everyone!

Sharing a fresh release from the Antenna Non Grata label:

Pan Siateczko – I Missed Train That Left Before I Was Born.

A solid dose of uncompromising, underground electronic music for fans of weirder sounds, dusty textures, and left-field production. The title alone sets the mood, and the music delivers. Worth a spin on Bandcamp:

https://antennanongrata.bandcamp.com/album/pan-siateczko-i-missed-train-that-left-before-i-was-born


r/algorithmicmusic • • Oct 24 '26

Field network

1 Upvotes

I've been looking at using markov matrices to creating interesting structures within the beat;

https://youtu.be/T9qCZDAL34A


r/algorithmicmusic • • Oct 24 '26

I made a music transformer play a second piano with me, live

7 Upvotes

so I've been building this thing where I play my midi keyboard and a music transformer plays a second piano along with me: https://github.com/RiccardoCataldi/duetto

the model runs on a jetson, my laptop does the midi and the sound, and they just send each other lines of text over ssh, one per note. the model plays about a second ahead, so when I change chord half its notes are wrong and I have to throw them away and ask for new ones. also fluidsynth doesn't have a delay so I faked the echoes with extra midi notes lol

it works but the timing is the tricky part. how do you guys schedule notes coming from a model against a live clock without it sounding off?


r/algorithmicmusic • • Oct 21 '26

I built a rule-based MIDI composition engine in Python: one JSON file in, multi-track MIDI out

13 Upvotes

I wrote these two songs with the rule-based MIDI composition engine

https://youtu.be/PgwJsWXm-Ew

https://youtu.be/dEhyCWyddKg

I’ve been building Forma Composition, a Python engine that generates multi-track MIDI from a single JSON file. It’s rule-based and seeded, not a neural net, so the same file and seed always give the same MIDI.

Repo: https://github.com/ConnectedReasoning/FormaComposition

It runs from the command line:

python forma/main.py compositions/piece_name.json

Caveats

  • The code is as is. It started as a hand-written legacy script, and I extended it over the past year with big support from Claude
  • It’s a work in progress. Some files are large, some comments are historical notes, and I’m cleaning things up over the next few weeks.
  • Output is MIDI only. I assign instruments in Logic with Arturia synths. any DAW should work

How a piece is built

You write one JSON file with:

  • key, mode, tempo range, and a short motif (diatonic scale steps plus rhythm)
  • sections, each with a Roman-numeral progression (tensions like V7(9,13) work), melody behavior, bass style, groove, swing, drums and a dynamic arc
  • optional extra voices with counterpoint species settings

Then run python main.py piece.json. The engine runs in this order:

  1. Validate (Pydantic) and lint, which warns about settings that won’t be heard.
  2. For each section, generate bass, then melody, then counterpoint/peer voices, then harmony, then drums. Each voice leaves a snapshot (register, contour, density, last transform) that later voices and the next section can read.
  3. Write a type 1 MIDI file: melody, counterpoint, harmony, bass, drums, plus a chord-symbol marker track.

I recommend setting up a Python virtual environment first, then installing the requirements from the repo.

The theory side

  • Motifs develop through 12 transforms (inversion, retrograde, augmentation, diminution, sequence and others). You can script the order, or let the engine pick with form-aware weighting: statement early, development in the middle, return near the end.
  • Counterpoint supports species 1–5 and free. Parallel fifths and octaves, hidden fifths and octaves, and strong-beat dissonance are hard-forbidden. Voice crossing and parallel motion are penalized.
  • Harmony works in all 7 modes, with per-chord lengths, voicings (closed, open, drop2), and key/mode changes per section.
  • Drums lock to the bass onsets and follow section density and swing.
  • Song form lets you define verse and chorus once, with an exact_repeat option for identical repeats.
  • rhythm_extract.py turns a rhythm you play in your DAW into a JSON pattern you can paste into a section.

Limits

  • Output is MIDI only. I assign instruments in Logic with Arturia synths.
  • Sections aren’t fully isolated. Melody openings and transform choice depend on earlier sections, so one edit can ripple forward unless you pin a transform_sequence.
  • The rules keep the voice leading clean, but they don’t make a piece memorable. That part is still my ear and the JSON choices.

I'm interested in your feedback

(updated to include repo and guidelines for building)


r/algorithmicmusic • • Oct 15 '26

Lost

3 Upvotes

2026-10-15 - Release: Lost --- New algorithms, new DAW, some patience, much impatience. Lower the volume.


r/algorithmicmusic • • Oct 13 '26

Free standalone: Ratio9 — a Mac synth with AI preset creation and built-in audio analysis

Thumbnail gallery
0 Upvotes

Ratio9’s standalone version is free for Apple silicon Macs running macOS 12 or later. I’m Max, its developer; version 1.2.1 is now available.

Ratio9 lets a compatible AI assistant create presets by controlling the instrument itself. It can select wavetables, shape LFOs, connect modulation, set effects and macros, audition notes, and save the patch. You can then play it and keep shaping it with the same controls.

The built-in spectrum and spectrogram give the connected assistant fresh measurements of the sound as it revises the preset. The idea is to combine parameter exploration with feedback from the resulting audio. You choose the sound-design goal and decide which results are worth keeping.

AI is optional. Connect an installed client that supports local stdio MCP, or use the synth entirely by hand. The instrument includes three wavetable oscillators, six LFOs, eight macros, two filters, a sampler and multiband effects.

The pictures show the main interface at INIT and a separate growl preset in the live spectrum/spectrogram view.

I’d be interested in what you would want to generate first: evolving textures, rhythmic modulation, or variations of a sound you already like.

The complete standalone synth is free. Optional VST3 + AU plug-ins are $79.99 USD once for two Macs. You bring your own AI account and compatible client. This is an alpha release; complex patches can cause CPU spikes or dropouts.

Download and setup: https://ratio9synth.com/download


r/algorithmicmusic • • Oct 10 '26

Musicom

Thumbnail github.com
2 Upvotes

r/algorithmicmusic • • Oct 08 '26

New release: Macchinario

5 Upvotes

Algorithmic composition, combined with patience, can be rewarding. Then again, now I have to see if I can be patient enough to create some reasonably decent visualization ...


r/algorithmicmusic • • Oct 07 '26

Block Chords generator

Thumbnail sivabenepoivediamo.github.io
3 Upvotes

Hi, Davide here.
I built a very simple block chord generator with some scale and basic shapes presets. It follows some simple rules: notes that belong to the base chord shape use its inversion which has them as the top voice; other scale degrees are harmonized with descending thirds along the scale. voices making a tritone with the melody are corrected by a scale step. notes outside the scale and the base shape are harmonized as a chromatic alteration of the nearest in-scale chord, optionally transposed.
Let me know what I can improve!


r/algorithmicmusic • • Oct 06 '26

EvoMusArt 2027: International Conference on Artificial Intelligence in Music, Sound, Art and Design (EvoMusArt 2027)

Post image
0 Upvotes

The 16th International Conference on Artificial Intelligence in Music, Sound, Art and Design (EvoMusArt 2027) is accepting paper submissions.

When: 31 March – 2 April 2027
Where: Mainz, Germany
Paper Submission deadline: 1 November 2026

EvoMUSART focuses on AI and computational approaches to creativity, covering a broad range of topics, with a particular emphasis on research exploring how AI systems generate, support, evaluate, interpret, and collaborate in creative processes.

Accepted papers will be presented at the conference and published in a dedicated LNCS volume.

More information/submission details: https://www.evostar.org/2027/evomusart/

If you are working at the intersection of AI and creative practice, this may be relevant to your research. Please share with others who might be interested.


r/algorithmicmusic • • Oct 06 '26

Pratt polynomials for algorithmic music

Thumbnail github.com
7 Upvotes