Import and export

Import

File ▸ Import… (Ctrl+I) or Import in the toolbar. The result opens as a new, unsaved score, as LilyPond text. Save it to keep it. If the score you have open has unsaved changes, Euterpes asks first.

You bring in File types Notes
MusicXML .musicxml, .xml, .mxl (compressed) Read directly.
MIDI .mid, .midi Notated by quantising to a grid: chords, rests, ties across bar lines.
LilyPond .ly, .ily The file's own text, unchanged. It must be UTF-8.
LaTeX .tex, .lytex The LilyPond inside the document. If it holds several pieces, Euterpes asks Which one?
A scan or picture of printed music .pdf, .png, .jpg, .jpeg, .tif, .tiff, .svg Read by Audiveris.
A recording .wav, .mp3, .flac, .ogg One voice written down; see Recordings.

An exported file can carry the score text for reopening: see A copy of the score in every file. Separate annotations are not included in that copy.

Scans and Audiveris (experimental)

Printed music is read by Audiveris, a free program (AGPL) that comes with Euterpes, with the data it reads English words with: there is nothing to install, and nothing is uploaded. (Run from the source code, python tools/fetch_engines.py fetches both; an Audiveris installed on the computer is used otherwise.)

A window shows how far the reading is. Continue in the background moves it to the bottom bar, where you can stop it, and where Open waits for you when it is done: your open score is never replaced unasked. Several pages are read side by side. A page takes some seconds; an orchestral score of a few pages about a minute or two.

From a PDF that holds its words as text, the title, subtitle, composer and catalogue number are read too, and a dashed cresc. or dim. line that was read as tenuto marks is put back. A part named for a guitar is given a treble clef with a small 8, as guitar music sounds an octave below what is written.

A PDF with a page that Audiveris stops on, or one it cannot use, is read a page at a time: a page that fails is drawn again at another size, and the pages that were read are joined, so one bad page no longer loses the piece. Staccato dots that stand alone are taken for specks and dropped, and a fermata under a note stays a fermata.

Recognition is never perfect, least of all on full orchestral pages. Each bar is held to its time signature, so a misread value spoils its own bar and no other: what runs over the bar is left out and what is missing is a rest. Read the result against the page, fix what is wrong in the text (see Writing music), and play it to hear errors.

Recordings (experimental)

Euterpes listens to the recording, as the tuner listens to the microphone, and writes down the one voice it hears: each note's pitch, where it starts and how long it lasts. The tempo is found from where the notes fall, and the key from the notes; the bars are in 3/4 when the long and loud notes fall every third beat, else in 4/4, counted from the first note (a piece that begins with an upbeat needs its bars moved). A note struck again is told apart from a held one by its attack. It works best on one instrument or one singer at a time; chords and several instruments at once come out as a single line. The work happens in the background, on this computer. MP3, FLAC and Ogg are decoded by miniaudio, which ships with the program (MIT).

Record into notation

You can also play a piece in. See Recording into notation.

Export

Click Export in the toolbar, or open File ▸ Export. Euterpes writes the file only where you choose.

Menu entry You get
Export as PDF The score, engraved by Euterpes' own engraver, on the paper chosen in Options.
Export as a PNG picture The same, as a picture.
Export as a JPEG picture The same, as a JPEG picture.
Export as an SVG picture The same, as a scalable drawing.
Export as MIDI The performance as a Standard MIDI File, with the score's tempo marks and time signatures, so another program (or Euterpes, importing it back) finds the metre and the written lengths.
Export as WAV The performance as 16-bit audio.
Export as MP3 The performance as mono 192 kbit/s, 44.1 kHz MP3.
Export as MusicXML The score for other notation programs.
Save a copy as LilyPond The text as it is.

When LilyPond is installed, there are also Export as PDF/PNG/SVG with LilyPond and a print preview. See LilyPond engraving.

The regular PDF, PNG, JPEG and SVG exports include visible annotations. LilyPond exports and preview do not; Euterpes warns before leaving annotations out. Other formats and the embedded score copy do not preserve annotations. Keep the score's .annotations.json sidecar to edit them again. On Android, the warning also distinguishes visible annotations from editable ones; it can be disabled in export options.

Audio

WAV and MP3 are rendered in the background, with a progress note, using the built-in synthesiser or the soundfont you chose. MP3 is encoded by LAME through lameenc, which ships with the program (LGPL, listed in THIRD_PARTY_NOTICES.md); if it is missing, the menu entry says so.

MusicXML

The export holds notes, ties, chords, tuplets, grace notes, voices, piano staves, keys, clefs, metres, tempo, dynamics, hairpins, articulations, slurs, lyrics, words at notes, the sustain pedal, bar lines, repeats with their volta brackets, the staves' names and every header field. Words set under the music (\markup paragraphs) and pictures have no place in MusicXML. Read back by Euterpes, the notes and marks come back as written: a dynamic or hairpin on a spacer rest (s, as pianists write them between the notes) comes back on a spacer, and grace notes keep theirs. Repeats come back as \repeat volta with their \alternative endings, and play as written. From another program, a mark that stands where no note starts is set on a spacer rest.

MIDI holds the notes, the tempo, the metre, the key, the title, each staff's instrument and sound (midiInstrument) and the lyrics; not slurs, clefs, tuplets, grace notes or how notes are spelled.

What each format holds

Before writing a format that cannot hold all of your score, Euterpes lists what it would lose, for this score: the words under the music for MusicXML, the slurs and clefs for MIDI, everything written for a recording. Press Export to go on, or Cancel. Tick Do not tell me again to stop the list; Options ▸ General ▸ Say what a format cannot hold before exporting to it brings it back.

A copy of the score in every file

Each file Euterpes exports also carries your score's LilyPond text, where the format keeps private data and other programs ignore it: an attachment named score.ly in a PDF (PDF readers can save it), a text chunk in PNG, comments in JPEG, MusicXML and SVG, an extra track in MIDI, a chunk in WAV and a tag in MP3. Import such a file and you get your score back exactly, comments and all, even through a chain of formats (a MIDI exported, opened, exported as MP3 and opened again).

On Android, PDF exports do not carry the embedded score text. The embedded copy on either platform does not contain annotations.

The copy carries a fingerprint of the rest of the file. If another program changes the file, the copy no longer matches and Euterpes reads the file the ordinary way, so an edit made elsewhere is never undone. Anyone you send the file to receives the copy too; turn it off in Options ▸ General ▸ Keep a copy of the score inside exported files, or with --no-copy on the command line.

From scripts

The same exports, and imports, work without a window: see Command line.