I make downtempo music, and Moonlick is the tool I built for starting ideas: a free VST3 plugin for Windows. Pick a genre and an instrument, press Generate, and it writes a part that fits. Then drag the loop or a full song onto a track and play it with your own instruments.
What it does
- Five genres: Balearic, Downtempo, Psychill, Lounge Jazz and Organic House. Each has its own tempo, swing, syncopation and amount of space.
- Over 20 instruments, from tenor sax and nylon guitar to handpan, Rhodes, pads and an acid line. Each plays the way it usually does in that genre: a sax plays phrases, a handpan plays patterns, a pad holds chords.
- Generate gives a new rhythm and new notes. Variation keeps the rhythm and changes the notes.
- Loop or full song: a 4-bar loop, or intro, main loop, breakdown and outro.
- Follows your chords. Send chords into its MIDI input and each note moves onto the chord that’s playing.
It’s made to sit next to Scaler 3 in Ableton Live: Scaler writes the chords and the song structure, and Moonlick adds an organic riff on top. You can also drop a Scaler chord export (.mid) onto it. Only the chord progression is read, and if the export is multitrack, Moonlick finds the chord track on its own.
Is this AI?
Not generative AI in the ChatGPT sense. There’s no neural network, no API call and no tokens being spent while you use it. Generation runs locally, inside the plugin.
It is still an AI system in the older and broader sense. It learns from a dataset, models sequences statistically, searches for outputs that satisfy constraints, classifies what it hears, and is checked against an evaluation suite. Those are the same building blocks I work with in LLM systems, just at a scale where every decision can be traced and explained.
The dataset
The learned part comes from the Weimar Jazz Database (WJazzD v2.1), a research collection of carefully transcribed jazz solos from the Jazzomat Research Project at the Hochschule für Musik Franz Liszt Weimar. I used about 9,000 phrases of saxophone and trumpet solos.
The dataset choice mattered as much as the model:
- Fit. Sax and trumpet solos are melodic phrases played by a human breathing between ideas. That’s what a riff generator for lounge and downtempo music needs to learn: how a line moves, where it rests and how it ends.
- Quality. The solos are transcribed note by note, with timing and loudness, so the statistics describe real phrasing rather than quantized loops.
- Licence. The database is released under the Open Database License (ODbL 1.0). It allows derived data as long as it’s attributed and shared under the same terms. Moonlick’s derived file is, and the attribution is at the end of this post and in the repo.
A Python script analysed the phrases during development (it isn’t shipped) and extracted these features:
- Intervals: which melodic step tends to follow the previous one, as first- and second-order Markov models.
- Rhythm cells: common one-bar and two-bar onset patterns.
- Phrase shapes: contours (fall, arch, rise), phrase and rest lengths, and how much longer the last note of a phrase is held.
- Dynamics: how loud notes are by beat position and pitch height, and how chromatic notes resolve.
Everything Moonlick learned fits in a 30 KB JSON file of aggregate statistics and short onset grids. No melody from any solo is stored, so none can be reproduced. That’s a design choice with a familiar AI angle: questions about training data usually come down to what a model keeps and what it can regurgitate. Moonlick keeps only aggregate numbers.
A language model, just a very small one
A Markov interval model is a tiny language model. An LLM predicts the next token from the tokens before it. Moonlick predicts the next melodic interval from the one or two intervals before it, so its “context window” is two steps long.
Modelling intervals instead of absolute notes makes the statistics key-independent. A rising minor third means the same thing in A minor as in F minor, so one model serves every key and scale the plugin offers.
The learned model doesn’t play alone. Each instrument role has its own rule engine: lead, ostinato, handpan, arpeggio, fingerpicking, chords, pads and bass. Each genre has its own rules for space, syncopation, swing, layback and chromaticism. An Instrument character slider blends the learned phrasing with the generic rules. It’s a dial between “sounds like a jazz soloist” and “sounds like a tidy pattern.”
Why not train a neural network? The constraints pointed the other way:
- Nothing paid and no AI calls at runtime, and generation has to feel instant.
- About 9,000 phrases is a small dataset for a deep model and a good one for a statistical model.
- Every output can be explained. When a riff sounds wrong, I can trace it to a probability table or a rule and fix that, rather than retraining and hoping.
Generate, then test
Sampling from a model gives you something plausible, not something guaranteed to be right. So Moonlick checks every idea before you hear it:
- In key
- On the chords
- Loops cleanly
- Playable on the chosen instrument
If an idea fails, it’s thrown away and generated again, up to 40 times. This generate-and-verify loop is the same pattern behind a lot of reliable LLM engineering: let the model propose, and let a deterministic checker decide what ships.
The checks also make an evaluation suite. In testing, 6,600 ideas across 22 instruments, 5 genres, 5 scales and 5 note styles all passed, and about 94% passed on the first try. The first-try rate is the number I watch. A filter can hide a weak generator, but a high first-try pass rate means the model itself is producing good ideas. A second test generated 220 riffs over a 16-bar multitrack Scaler-style file, with 0 failures.
Listening to your chords
To follow another plugin, Moonlick has to understand what it’s hearing. That’s music information retrieval, a long-standing field of machine listening:
- Chord recognition by template matching. The notes being held are compared with chord templates, weighted by how long each note sounds, with a bonus when the lowest note is the root. In effect, it’s a nearest-template classifier.
- Key finding with the Krumhansl–Schmuckler algorithm. A histogram of the pitches in the music is correlated against key profiles that came from listening experiments, and the best-matching key wins.
- Finding the chord track. In a multitrack export, each track gets a “chordiness” score, and Moonlick picks the chord track and ignores the melody and bass.
- Song structure. Repeated chord blocks are grouped into parts, so a full song gets sections.
Inside the plugin, the C++ code does chord recognition in real time. Each riff note is moved onto the chord that’s playing: chord parts follow the root, melodic parts keep their shape, and no note clashes a half step against a chord tone outside the key.
What it reinforced for me
- Choose the model that fits the constraints. The interesting work was in the data, the features and the checks, not in model size.
- Treat the dataset as part of the product. Its fit, quality and licence decided what Moonlick could learn and how it could be shared.
- Verify, don’t trust. A generator with a checker and an evaluation suite beats a better generator without one.
How it was built and tested
I led Moonlick end to end:
- The product idea: a riff tool that follows Scaler 3’s chords inside Ableton rather than competing with it.
- The genres and each genre’s instruments.
- The design direction and the scope decisions.
- The engineering constraints, such as nothing paid or AI-driven at runtime and a self-contained build.
I used AI coding agents to speed up implementation, with written specs, short feedback loops and automated tests. I played every build myself before deciding what shipped.
The stack:
- JUCE 9 for the VST3 and the standalone app, with the interface running in Microsoft WebView2.
- C++ for the live MIDI engine.
- Python for the dataset analysis.
- Puppeteer driving the interface for UI tests.
Before release it passed:
- pluginval at strictness 5, including the editor tests
- a custom host test that loads the VST3 like a DAW and checks:
- MIDI goes in and comes out
- it plays in time with the host
- strong beats land on the held chord’s tones
- input chords aren’t echoed back
- every note closes on stop
- settings survive a save and reload
Get it
Moonlick is free. It needs Windows 10 or 11 (64-bit) and a VST3 host, and there’s a standalone app too. Install steps are on the GitHub page, and the source code is open there too (AGPL-3.0).
Found a bug? Report it on GitHub Issues. Include your DAW, your Windows version and what happened.
Phrasing statistics derived from the Weimar Jazz Database (Jazzomat Research Project, HfM Weimar), ODbL 1.0.