What Libretto is
Libretto sets a chapter of a novel to music. It reads the chapter, works out how long it takes to read, and divides it into scenes. It then recognises the character of each scene (calm, suspense, action, tenderness…) and composes an orchestral soundtrack exactly as long as the reading. Each scene plays with its own recipe, and every character and place has a theme that returns whenever it appears, in the other chapters of the book too.
Libretto runs on the Symphonic Orchestrator engine. Everything that plugin does with the music (listening, editing, exporting to your DAW, balancing libraries) is here as well, in the Listen and edit, Export, Balance and Advanced tabs.
- Text formats:
.txt,.md,.docxand.epubbooks. - Analysis: with an AI (Claude, OpenAI, OpenRouter, a local model in LM Studio, or any chat by copy and paste) or without AI.
- Result: the music as MIDI and WAV, plus a map that says at which second of the music each paragraph starts.
Installing and first launch
Run the installer and choose its language. It installs these items; all of them except the plugin can be unticked:
- the VST3 plugin;
- the standalone application (
Libretto.exe); - the Libretto Medidor plugin, for balancing your DAW libraries;
- the Libretto Analisis plugin, which goes on the Stereo Out and measures each part as it reaches the mix;
- the Libretto Master plugin, the last one on the Stereo Out, which takes the music to release loudness;
- the Tutti Orchestra sampler.
You don't need a DAW to write and listen: the standalone application is enough.
Download the sounds
The sound bank is downloaded once. In the Listen and edit tab, press Download sounds:
- it is about 510 MB, and the installation needs about 1.2 GB of free disk space;
- it keeps downloading if you switch tabs, and the bank loads by itself when it finishes;
- the bank is "DB Soft Orquesta", with 65 public-domain (CC0) instruments you can use in commercial work;
- it is installed in
%LOCALAPPDATA%\Tutti\Bancos, which the three DB Soft plugins share.
Language
The selector in the top right corner changes the interface language when you reopen the window. The language also changes the analysis: with the interface in English, the AI is asked in English, which is the right choice for a novel written in English.
The window

There are five tabs:
- Chapter: where you start.
- Listen and edit: the music, with the pianoroll and the orchestra.
- Export, Balance and Advanced, which holds Base melody, Structure and Recipes.
The header is the Orchestrator's:
- Undo, which says what it will undo;
- A/B, to compare with the previous generation;
- Project…, to save and load the project and for the license;
- the language.
Drop a .txt, .md, .docx or .epub file on the window and it opens in the Chapter tab.
First steps: music for a chapter
- Open the chapter. In 1. The chapter, press Open chapter… and choose the file. You will see the title, how many paragraphs and words it has, and how long it takes to read. Choose the speed under Reading.
- Analyse it. In 2. The analysis, choose a Route. If you have no AI account, choose External chat (copy and paste) and follow these steps; for an instant result, choose No AI. Then press Analyse.
- Check the scenes in 3. The scenes. If something is off, use Edit the scenes.
- Press Generate the music in 4. The music. The status line confirms the length, for example "Music of 3:04 for 3:02 of reading".
- Listen in Listen and edit, with Play the orchestra. Above the pianoroll you see the paragraph that matches each moment.
- Export it with Export. A folder is created with the MIDI, the WAV and the paragraph map.
1. The chapter
Open chapter… accepts .txt, .md, .docx and .epub.
- Encoding of .txt files: they are read as UTF-8, or as old Windows text if they aren't, so accents, quotes and dashes arrive intact.
- .docx files: the text of each paragraph of the Word document is taken.
- .epub files: a book opens at its first chapter and adds a selector to switch chapters (see Books).
How it finds paragraphs, scenes and the title
- Paragraphs: if the text separates paragraphs with blank lines, a blank line separates paragraphs; if not, each line is a paragraph.
- Scene breaks: a line made only of symbols, such as
***,* * *,#,---,~~~or§, marks a scene break. It doesn't count as a paragraph, but the analysis takes it into account and the reading adds a pause. - Title: the first block, if it starts with
#, or with "Chapter", "Prologue" or "Epilogue" (or their Spanish equivalents), or if it is just a number. The title doesn't count as a paragraph either.
Reading
The reading speed decides how long the music lasts.
| Option | Words per minute |
|---|---|
| Silent | 230 (the default) |
| Audiobook | 150 |
| Slow | 180 |
| Fast | 300 |
Each paragraph gets a short pause added, and each marked scene break two seconds. If you change the speed, the analysis is kept, but you have to press Generate the music again.
2. The analysis
The analysis divides the chapter into scenes. For each scene it gives a summary, its tension, mood and agitation, the pace of the action, the mode (major or minor), the musical recipe that suits it best, who carries it and where it happens. It also marks each scene's key moments and says whether the chapter ends closed or open (see How it becomes music).
The routes
| Route | What it is | You need |
|---|---|---|
| Claude (Anthropic) | Anthropic's model, over the internet. | An API key |
| OpenAI | OpenAI's models, over the internet. | An API key |
| OpenRouter | Many different models with a single key. | An API key |
| LM Studio (local) | A model running on your own computer. The text never leaves it. | LM Studio open, with a model loaded and the server started |
| External chat (copy and paste) | You take the text to any chat (ChatGPT, Claude.ai…) and bring the answer back. No network, no keys. | Nothing |
| No AI | Scenes from the text's scene breaks, and emotion from a word list. Basic, but always available. | Nothing |
- Model: the model to use. Models asks the server for its list. Claude has a default; with OpenAI and OpenRouter, choose one.
- Server: the server address. If it is empty, each route uses its own. Use it for LM Studio on another computer or port.
- Key: your API key. It is stored encrypted on your computer, one per route, and never inside the project: a project gets shared, and the key would go with it.
- Paragraphs: Whole, or cut to 600 or 300 characters. Cutting helps with local models that have a short context, or when the server says the chapter is too long.
- Analyse and Cancel: a long chapter can take a couple of minutes. If it doesn't fit in one request, it is analysed in parts that are stitched together at the end.
With an external chat, step by step
- Under Route, choose External chat (copy and paste).
- Press Copy the prompt. The full text goes to the clipboard: the instructions and the chapter, with numbered paragraphs.
- Paste it into the chat of your choice and send it.
- Copy the chat's entire answer.
- Back in Libretto, press Paste the answer.
The answer doesn't need to be clean. The JSON can be inside a code block, have text around it, or contain small mistakes. Anything it fixes is reported under the chapter's tone.
Some models refuse to analyse violent scenes. When that happens, the message says so: try another route, for example the external chat with a different chat.
3. The scenes
The chapter's overall tone appears above the table. The table has one row per scene:
| Column | Contents |
|---|---|
| No. | The scene number. |
| Paragraphs | Which paragraphs it covers. |
| Reading | How long it takes to read. |
| Recipe | The music that will play (see the recipes). |
| Music | Bars, tempo and dynamics, once there is music (for example "18 b. at 73 p"). |
| Tension | A bar, from green (rest) to red (climax). |
| Pace | slow, medium or fast. |
| Mode | major or minor. |
| What happens | The summary, atmosphere, characters and place. |
While the music plays, the scene you are hearing is highlighted in gold.
Editing the scenes

Press Edit the scenes or double-click a row. Changes apply right away; when you finish, press Done and generate the music again.
- Starts at: the paragraph where the scene starts. The previous scene ends just before it.
- What happens: the summary.
- Recipe: one of the twelve, or By the emotion, which picks one from the tension, mood and agitation.
- Tension (from rest to climax), Mood (from sad or threatening to joyful) and Agitation (from calm to agitated).
- Pace and Mode: the mode can be By the mood, major or minor.
- Characters: up to three, the main one first, separated by commas. Each one has its own theme.
- Place and Atmosphere.
- Join with the next one: the next scene becomes part of this one.
- Start a new scene here: splits the scene before the paragraph selected in Its paragraphs. The new scene copies the recipe and everything else; then you adjust it.
The scenes always cover the whole chapter, with no gaps.
4. The music
- Recipe: Each scene's own, or All as… one recipe for the whole chapter.
- Tonic: The recipe's, or a fixed note for the whole chapter.
- A theme per character: every character and place has a theme drawn from its name, which returns whenever it appears, in this chapter and in the rest of the book. When unticked, every scene uses the chapter's theme.
- Generate the music: composes. Each time you get a different theme, and you can undo it and compare with A/B.
- Export: writes the chapter's folder (see below). With with the audio (WAV) ticked, it also writes the music as audio.
- Open the folder: opens it in Explorer.
What is exported
The folder is Documents\Libretto\<chapter title>; for a book, Documents\Libretto\<book>\<chapter>.
| File | What it is |
|---|---|
musica.wav | The music as audio, if "with the audio (WAV)" is ticked. |
musica.mid | MIDI with one track per instrument, plus each scene's tempo, meter and key signature, and a "Chords" track with the piece's chords. |
mapa.csv and mapa.json | For each paragraph: its scene, the second at which it starts in the reading and in the music, and its first words. Use them to sync the music with an e-reader or an audiobook. |
analisis.json | The scene analysis. |
prompt.txt | The analysis prompt. |
How it becomes music
Each scene is a section of the piece, with its own recipe. The recipe sets the tempo range, the meter, the scale, the loudest dynamic and how the theme is presented. Within that frame, tension and agitation push the tempo and intensity, and the chapter's tensest scene goes up a tone as its climax. How the music passes from one scene to the next, and how the chapter ends, is explained below.
| Recipe | For | Tempo | Character |
|---|---|---|---|
| Love | tenderness, intimacy, reunion, sweet nostalgia | 60–92 | major, lyrical |
| Sadness | grief, loss, loneliness, farewell | 50–80 | minor, slow and broad |
| Suspense | threat, mystery, tense waiting, investigation | 60–90 | Phrygian, with a pedal and minor seconds, in fragments |
| Mid action | chase, escape, hurry, argument | 96–124 | minor, in motifs over a pedal |
| High action | fight, battle, chaos, imminent danger | 120–150 | Phrygian, loud; in 7/8 only at very high tension (otherwise in 4/4 and at 132 at most) |
| Hero | courage, great deed, triumph | 108–128 | Mixolydian, bright |
| Villain | antagonist, cruelty, dark power, betrayal | 84–110 | harmonic minor |
| Fantasy | magic, wonder, dream, childhood | 66–96 | Lydian in 3/4 |
| Grandeur | revelation, the sacred, vast landscapes | 60–84 | major, open fifths |
| Comedy | humour, mix-ups, mischief, lightness | 108–140 | Lydian, staccato |
| Inspiring | hope, overcoming, luminous calm | 72–100 | major, lyrical |
| Epic | great battle, destiny, culminating moment | 84–112 | minor, loud |
Scenes, transitions and moments
- Whole phrases: each scene lasts whole four-bar phrases (two-bar ones if it is short). So that the music still lasts as long as the reading, the tempo is adjusted within the recipe's range, by 8 % at most. If the tempo jumps more than that from one scene to the next, it is brought to a simple ratio with the previous one (4/3, 3/2, double…) so the change doesn't sound abrupt.
- Transitions: how one scene passes to the next depends on how the tension changes. Level, they are linked by a common note. Going down, the last bar keeps only the background, the bass and the melody (with a pp timpani roll if the scene was tense), and the new scene takes a bar to breathe before it moves. Going up, two beats without bass or rhythmic motor before the new scene comes in.
- Building in blocks: in long, tense scenes the first eight bars have no rhythmic motor (the percussion carries on), and in the last eight the melody goes up an octave if it fits (except in sadness). The highest point of the piece falls in the middle of the tensest scene.
- Moments: the analysis can mark up to two per scene, at their paragraph: a scare, a revelation, a twist, a calm, an outburst of rage or the climax. In tension and action scenes the music places them on the first beat from that paragraph: the scare goes silent for a beat and strikes, the twist changes key and the calm stops the motor. The revelation waits until its paragraph has been read: in the pause, a cymbal and a new layer of horns. At the climax, the culminating paragraph, the music withdraws while it is read (only a very soft low note remains) and when it ends the whole theme returns, louder. If the analysis marks no climax, the tensest scene (0.85 or more) takes its first twist or revelation as the climax.
- Dialogue: a paragraph that starts with a dash or quotation marks is a line of dialogue. Under the dialogue, in calm scenes, the theme holds long notes and the percussion stops, and the motion plays softer in any scene, so the voice can be heard.
- Rage has no recipe of its own: the scene carries on with the previous scene's music (or with mid action) and starts with a twist and a hit.
- The ending: if the chapter ends closed, the music ends on the tonic with a ritardando; if it ends open, in suspense, it ends on the dominant, without ritardando, while the background fades out.
How each scene evolves
Besides its recipe, the analysis gives each scene how it changes while it lasts and, if needed, a second recipe. The music follows it (Charles Rosen, Music and Sentiment):
- Evolution: steady; grows (starts with fewer instruments and the dynamics rise towards the end); fades (it thins out); static (the dynamics barely move, no moments); or bursts (held back until the outburst and full orchestra after it).
- Transitions: besides continuing, settling or rising, two similar scenes elide (the second comes in on the cadence of the first, with no pause) and two very different ones contrast. Before a change of key, the last chord is the dominant of the new one.
- The key plan: the key rises towards the tensest scene and relaxes after it; the first and last scenes are in the chapter's key.
- Two characters: in a long scene with two, in the first half they alternate (the protagonist firm and staccato, the other legato and softer) and in the second they sound together, one as melody and the other as counterpoint.
- The ambivalent scene: with a second recipe (love with suspense, for instance), the melody and harmony come from the main one and the background and movement from the second. In scenes of eight bars or more, the first half alternates a forte bar with the main recipe's harmony and a subito piano bar with the second's; in the second half they sound together.
- The same recipe again: if a scene repeats the previous scene's recipe, without a change of key, it starts from somewhere else: another chord, the melody on another instrument and, for the first two bars, a low unison of strings and horns (or a single woodwind if there is little tension) instead of the usual background.
- The turn, besides changing key, drops to a subito pp for two bars and changes mode (love goes to minor).
- The villain and tragic sadness open with the tonic alone in octaves, forte, and answer piano with the dominant with the minor ninth (Mozart's and Beethoven's C minor style).
- Suspense's obsessions: with high tension, a tolling note on the harp in a limping rhythm (3+3+2); in a static scene, a high pp trill that never changes; in a growing one, a note that repeats sooner each time (impatience); and anger, off-beat accents for two bars.
Character and place themes
Each name generates a two-bar theme, always the same one ("Martha" sounds the same in chapter 1 and chapter 20). The four characters and two places that take up most of the chapter get themes. In each scene, the protagonist carries the melody and the other characters take turns with it. The place plays as a countermelody, slow and soft. A theme isn't repeated literally: each time it appears it is transformed (transposed, inverted, augmented, in sequence…) to suit the scene's character, and in a long scene it comes back to its original form at the end.
Books (.epub)
When you open an .epub, the Chapter selector appears. Parts of the book without text (cover, credits, contents) don't count as chapters, and a chapter split across several files is joined back together.
- When you switch chapters, you analyse the new one. If that chapter was already exported, its analysis comes back without calling the AI again.
- The characters and places of the chapters already analysed are passed to the next chapter's analysis, so the AI names them the same way and they keep the same theme throughout the book.
- Whole book… analyses, sets to music and exports every chapter, one after another, each in its own folder.
- The first press tells you how many AI calls it will make. The second (Start) sets it going, and Stop the book halts it.
- At the end it writes
personajes.txt, listing the chapters in which each character and place appears. - It doesn't work with the external chat, since each chapter would need copying and pasting.
DRM-protected .epub files can't be read. Use an unprotected copy of a book of your own.
Listen and edit

This is the Orchestrate tab of Symphonic Orchestrator:
- the report;
- each instrument's pianoroll, with Play, Pause and Stop;
- Play the orchestra;
- the choice of instruments;
- the sound bank and Download sounds;
- the buttons for taking the music to your DAW.
What is specific to Libretto:
- The reading strip, above the pianoroll: it shows the paragraph that matches the playhead ("¶ 1/12 · scene 1 — …"). Move the playhead on the bar ruler to travel through the chapter.
- When a chapter already has music, Generate and Create variations recompose it with its recipes and a new theme, rather than orchestrating a loose melody.
- For Cubase: if you drag the music out, untick "Ignore Master Track Events on Merge" in Cubase so that each scene's tempo changes come through.
Export, Balance and Advanced
These work as in the Orchestrator, and its manual covers them in detail:
- Export: how the MIDI is written for your libraries (long and short notes, keyswitches, vibrato, ranges, percussion).
- Balance: evens out the loudness of your DAW libraries with the Libretto Medidor plugin, places them on the stage and makes the melody heard.
- The analyser and the master: Libretto Analisis and Libretto Master, on the Stereo Out.
- Advanced: Base melody, Structure and Recipes.

The recipes under Advanced › Recipes are the Orchestrator's orchestration recipes (instruments, mix, structure). They have nothing to do with the twelve scene recipes (Love, Suspense…).

License and demo mode
Without a license, Libretto runs in demo mode. You can open, analyse, compose and listen, but the music isn't exported (no MIDI, no audio), and the sound drops out for a moment every 30 seconds. To activate it, go to Project… › License… (or the button on the demo strip), paste the key from your purchase and press Activate. With the license active, Release this computer removes it from this machine so you can activate it on another.
Questions and common problems
"Unsupported format"
Only .txt, .md, .docx and .epub open. From other formats, save the text as .docx or .txt.
The scenes are split in the wrong places
Mark the scene breaks in the text with a * * * line before analysing, or fix them in Edit the scenes.
LM Studio doesn't connect
Open LM Studio, load a model and start the local server (Developer tab). If it runs on another computer or port, type its address in Server.
"The chapter is too long for one request"
Choose a cut option under Paragraphs, or use a model with a longer context.
The music isn't as long as the reading
Check the speed under Reading. If you change it, press Generate the music again.
Nothing plays
In Listen and edit, check that a bank is loaded; if not, press Download sounds.