lacrimosa.ai

About

This site is a record of how AI models complete Mozart's Lacrimosa. It began in November 2026 with four models, and new models are added as they are released.

How it works

Each model is given Mozart's eight bars and asked to write the rest of the movement. The music is written in LilyPond, a text format for notation. Each model is asked three times, and all three results are published.

If a file contains errors, they are sent back and the model may fix them. The file is then engraved as a score and synthesized as audio.

The full prompt and rules are at the end of this page.

Listening

The site does not rate or rank the completions. The judgment is left to the listener. Mozart's eight bars and Süssmayr's version are on the home page, rendered in the same way, for comparison.

The audio is synthesized: the tempo is fixed and the voices have no words. It lets you hear what each model wrote, but it is no substitute for a performance. For that, listen to a recording of Süssmayr's version, for example Robert Shaw, Atlanta Symphony Orchestra and Chorus, with Arleen Augér, Delores Ziegler, Jerry Hadley and Tom Krause (Telarc, 1986): YouTube Music: Lacrimosa, whole Requiem · Apple Music: Lacrimosa, whole Requiem.

Other versions

Süssmayr's was not the first attempt, and many have followed it. Joseph Eybler, one of the first composers asked to finish the Requiem, added two bars for the soprano after Mozart's eight and went no further. Süssmayr finished the movement in 1792 and ended it with a two-chord "Amen".

In the 1960s a sketch in Mozart's hand for an "Amen" fugue was found. Some scholars think he meant it to close this movement, and several later versions use it. Among the better known:

These editions are under copyright, so they are not reproduced here. The models are not given the Amen sketch, though some of them end with an Amen fugue of their own.

How the site was made

This site was made with Claude Code, Anthropic's coding tool. Claude wrote the code, transcribed the two reference scores from the printed editions, and drafted the prompt and most of the text on these pages. The site's owner made the decisions and judged by ear how the playback should sound.

Claude is also one of the models tested here. The prompt and the rules are given in full below.

The site is an independent project, not affiliated with or endorsed by Anthropic, OpenAI, Google or xAI.

Credits

The scores are engraved with LilyPond. The audio is synthesized with FluidSynth and the GeneralUser GS soundfont by S. Christian Collins, and encoded with LAME. The two reference scores are transcribed from public-domain editions, listed under Sources below. The manuscript image is from the Austrian National Library and is in the public domain.

Privacy

This site uses no cookies and no tracking.

The prompt

Sent as the first and only opening message, with no system prompt, no examples and no tools. A provider may still add instructions of its own, which cannot be seen or removed from outside: xAI's API, for one, counted about 1,250 input tokens for a one-line test prompt.

Below, in LilyPond notation, are the first eight bars of the Lacrimosa from Mozart's Requiem in D minor, K. 626, exactly as Mozart left them when he died in 1791: the two violin parts and the viola in bars 1-2, and the four voices (soprano, alto, tenor, bass) with the bass line (cello, bass and organ) in bars 3-8. He wrote nothing more of this movement.

Complete the Lacrimosa. Continue from bar 9 to the end of the movement in Mozart's style, setting the whole text:

Lacrimosa dies illa,
qua resurget ex favilla
judicandus homo reus.
Huic ergo parce, Deus,
pie Jesu Domine,
dona eis requiem. Amen.

The Requiem is scored for four-part choir (soprano, alto, tenor, bass), two basset horns in F, two bassoons, two trumpets in D, timpani, three trombones (alto, tenor, bass), violins I and II, viola, and cello, double bass and organ. You may complete the orchestration of Mozart's eight bars, but do not change any of his notes.

Reply with one complete LilyPond file containing the whole movement from bar 1. It must compile with LilyPond 2.24 or later without any other files. Put the Latin text under the vocal parts as lyrics, and give every staff an instrument name. Put the file in a single code block.

Your score will be published as written. For the audio recording it is played back at a fixed tempo of dotted quarter = 46, whatever tempo the score indicates, and the sound of each staff is chosen from its instrument name; other MIDI settings in the file are ignored. Transposing instruments may be written either at concert pitch or at written pitch with \transposition; both play back correctly.

Everything you produce for this request, including any reasoning before your reply, counts toward a single, limited output budget. If the budget runs out before your reply is complete, the result is lost. So use your reasoning to plan the piece (form, harmony, text setting, orchestration), and write the full score only once, in your reply, rather than drafting it in full while reasoning.

```lilypond
\version "2.24.0"

global = {
  \key d \minor
  \time 12/8
}

violinI = {
  r8 cis''8(\p d''8) r8 a''8( bes''8) r8 d''8( cis''8) r8 c'''!8( bes''8) |
  r8 a''8( d'''8) r8 bes''8( g''8) r8 e''8( f''8) r8 a''8( cis''8) |
  R1.*6
}

violinII = {
  f'4\p r8 a'4 r8 g'4 r8 cis''4 r8 |
  d''4 r8 e'4 r8 d'4 r8 g'4 r8 |
  R1.*6
}

viola = {
  d'4\p r8 f'4 r8 e'4 r8 g'4 r8 |
  f'4 r8 g4 r8 a4 r8 a4 r8 |
  R1.*6
}

soprano = {
  R1.*2 |
  a'4.\p ~ a'8( f''8) d''8 d''4. cis''8 r8 r8 |
  a'4. ~ a'8( f''8) d''8 d''4. cis''8 r8 r8 |
  d'8 r8 r8 e'8 r8 r8 f'8 r8 r8 g'8 r8 r8 |
  a'8 r8 r8 b'8 r8 r8 c''8 r8 r8 d''8 r8 r8 |
  ees''4.\cresc e''4. f''4. fis''4. |
  g''4. gis''4. a''4. a'8\! r8 r8
}

alto = {
  R1.*2 |
  f'4.\p ~ f'8( d'8) a'8 g'4. g'8 r8 r8 |
  f'4. ~ f'8( d'8) a'8 g'4. g'8 r8 r8 |
  a8 r8 r8 cis'8 r8 r8 d'8 r8 r8 e'8 r8 r8 |
  f'8 r8 r8 b8 r8 r8 e'8 r8 r8 g'8 r8 r8 |
  g'4.\cresc g'4. f'4. a'4. |
  g'4. d''4. d''4. cis''8\! r8 r8
}

tenor = {
  R1.*2 |
  d'4.\p ~ d'8( a8) f8 bes4. a8 r8 r8 |
  a4. ~ a4 f8 bes4. a8 r8 r8 |
  f8 r8 r8 a8 r8 r8 a8 r8 r8 c'8 r8 r8 |
  c'8 r8 r8 gis8 r8 r8 a8 r8 r8 b8 r8 r8 |
  c'4.\cresc c'4. c'4. ees'4. |
  d'4. f'4. f'4. e'8\! r8 r8
}

bass = {
  R1.*2 |
  d4.\p ~ d4 d8 e4. a,8 r8 r8 |
  d4. ~ d4 d8 e4. a,8 r8 r8 |
  d8 r8 r8 a,8 r8 r8 d8 r8 r8 c8 r8 r8 |
  f8 r8 r8 e8 r8 r8 a,8 r8 r8 g,8 r8 r8 |
  c4.\cresc bes4. a4. c'4. |
  b4. bes4. a4. a8\! r8 r8
}

continuo = {
  R1.*2 |
  d4\p r8 f4 r8 e4 r8 a,4 r8 |
  d4 r8 f4 r8 e4 r8 a,4 r8 |
  d4 r8 a,4 r8 d4 r8 c4 r8 |
  f4 r8 e4 r8 a,4 r8 g,4 r8 |
  c4\cresc r8 bes4 r8 a4 r8 c'4 r8 |
  b4 r8 bes4 r8 a4 r8 a,4\! r8
}

sopranoLyrics = \lyricmode {
  La -- cri -- mo -- sa di -- es il -- la,
  qua re -- sur -- get ex fa -- vil -- la
  ju -- di -- can -- dus ho -- mo re -- us.
}
altoLyrics = \sopranoLyrics
tenorLyrics = \sopranoLyrics
bassLyrics = \sopranoLyrics

\header {
  title = "Lacrimosa"
  subtitle = "Requiem K. 626 — bars 1–8 as left by Mozart"
  composer = "W. A. Mozart"
  tagline = ##f
}

\score {
  <<
    \new StaffGroup <<
      \new Staff \with { instrumentName = "Violino I" }
        { \global \violinI }
      \new Staff \with { instrumentName = "Violino II" }
        { \global \violinII }
      \new Staff \with { instrumentName = "Viola" }
        { \global \clef alto \viola }
    >>
    \new ChoirStaff <<
      \new Staff \with { instrumentName = "Soprano" }
        { \global \new Voice = "s" \soprano }
      \new Lyrics \lyricsto "s" \sopranoLyrics
      \new Staff \with { instrumentName = "Alto" }
        { \global \new Voice = "a" \alto }
      \new Lyrics \lyricsto "a" \altoLyrics
      \new Staff \with { instrumentName = "Tenore" }
        { \global \clef "treble_8" \new Voice = "t" \tenor }
      \new Lyrics \lyricsto "t" \tenorLyrics
      \new Staff \with { instrumentName = "Basso" }
        { \global \clef bass \new Voice = "b" \bass }
      \new Lyrics \lyricsto "b" \bassLyrics
    >>
    \new Staff \with {
      instrumentName = \markup \center-column { "Violoncello," "Basso," "Organo" }
     
    } { \global \clef bass \continuo }
  >>
  \layout { }
}
```

The fix prompt

Sent back in the same conversation, with LilyPond's error messages in place of {errors}, if the file does not compile or a bar's durations do not add up.

Your file has errors. LilyPond 2.26 reported the following (a failed bar check means the durations in a bar do not add up to the time signature):

{errors}

Reply with the corrected complete LilyPond file, the whole movement from bar 1, in a single code block. Fix what is needed for it to compile without errors or failed bar checks; keep the music as it is.

The protocol

Frozen 2026-11-22. Every sample published under version 1 was made exactly this way. A change to anything here means a new protocol version, shown on the site next to each entry. Checksums of the frozen files are in v1.json; the scripts refuse to run if a file no longer matches.

Input

Generation (scripts/generate.py)

Attempts and fix rounds

An attempt starts a fresh conversation with the prompt. The LilyPond file is the first code block marked lilypond (or ly) in the reply; failing that, the first code block containing \version or \score. It succeeds if LilyPond 2.26 compiles it without errors and without failed bar checks (other warnings are allowed). A failed bar check means a bar's durations do not add up to the time signature; left in, it shifts every later note of that part against the others. (Bar-check rule added 2026-11-22, before publication, after a draft whose voices were shifted by a miscounted rest.)

If the file does not compile, or has failed bar checks, LilyPond's messages are sent back in the same conversation with fix-prompt.txt, and the model replies with a corrected complete file. Up to 2 fix rounds per attempt. The aim is to test the music, not knowledge of LilyPond's pitfalls; the corrections are the model's own, and its output is never edited. (Added 2026-11-22, before any sample was published, after a draft failed twice on a variable named drums, which clashes with a LilyPond command.)

An attempt fails if the model refuses, runs out of output budget, gives no LilyPond code, or still has errors or failed bar checks after the fix rounds. Then a new attempt starts from scratch. After 3 failed attempts the sample is published as failed. Every raw response is kept, and the number of attempts and fix rounds is published with each sample.

A network or server error (no complete response) is not an attempt. It is recorded and the request is repeated after a pause; after 3 such errors the run stops without publishing the sample, and the next scheduled run tries again.

Score and audio (scripts/render_sample.py)

The same renderer is used for every model output and for both references.

Each sample's lacrimosa.render.json records which instrument every staff got and the exact tool versions used.

Safety

LilyPond runs any program code a .ly file contains, so model-written files are treated as untrusted: they are compiled with no API keys in the environment, in a sandbox with no network where one is available, and never with the repository's credentials on disk.

Publication

Every sample is published: no selection, no editing. Published samples are never regenerated.

Sources

All notes in this repository's reference scores are transcribed from these public-domain editions, downloaded from IMSLP. The PDFs themselves are not committed (see .gitignore); download them again from the links below and check the SHA-256.

Local file Edition IMSLP file SHA-256
andre-1829-mozart-fragments.pdf Partitur der Nummern Dies irae, Tuba mirum, Rex tremendae, Recordare, Confutatis, Lacrymosa, Domine Jesu und Hostias von W. A. Mozart's Requiem, wie solche Mozart eigenhändig geschrieben …, ed. Johann Anton André, Offenbach: André, 1829 (plate 5246). Prints only what Mozart wrote. Lacrimosa: printed pp. 33–34 (PDF pp. 55–56). IMSLP #963895 PMLP2751-mozart_requiem_andre_partitur_des_dies_irae,_tuba_mirum,_rex_tremendae_etc.pdf 60cf062eb611a8eb916708d4b0379b762a6ac01c8ddc2760086c7c55928e1b81
breitkopf-1877-AMA-serie24-KV626.pdf Wolfgang Amadeus Mozarts Werke, Serie 24 (Supplement) No. 1, Requiem, ed. Johannes Brahms, Leipzig: Breitkopf & Härtel, 1877. Full score of the Süssmayr completion; each part is marked (M.) Mozart or (S.) Süssmayr. Lacrimosa: printed pp. 51–56 (PDF pp. 53–58). IMSLP #89746 PMLP02751-Mozart_Werke_Breitkopf_Serie_24_01_KV626.pdf dd0a39d4ee3863c3039343a2da15a7924ddc0e889d360b4b36f8cd3c6b454ad0

Transcription notes

Image

assets/lacrymosa-autograph.jpg (home page) and assets/og-image.jpg (link preview, the same page on a plain background): Mozart's autograph of the Lacrimosa, bars 1–5, Austrian National Library, Mus.Hs. 17561b, fol. 33r. The note at top right ("Letztes Mozarts Manuscript …") was added after Mozart's death by Georg Nikolaus Nissen. Public domain, from Wikimedia Commons (1280-pixel version, downloaded 2026-11-23).