r/lilypond • • 6d ago

How do I change the font size for the header?

2 Upvotes

Basically what the title says. Apparently, layout-set-staff-size doesn't apply to the header, so I'm trying to reduce the font size for the title, arranger etc.

Can somebody help me with that?


r/lilypond • • 8d ago

Guitar Learning/Reference website using Lilypond

8 Upvotes

Hi everyone,

I’m kind of new to guitar, but old to software engineering. I started converting my notes to Lilypond, as I was having a hard time organizing the handwritten stuff. Lilypond is a great piece of software.

Well here is my website so far, it is a work in progress, but all the diagrams are generated from Lilypond. Any feedback is appreciated, and am currently ironing out issues.

https://www.learnthefret.com


r/lilypond • • 26d ago

How to force beam slope in cross-clef beam?

5 Upvotes

his is a question about a purely comsmetic adjustment to a beam that encompasses notes in both clefs of a piano score. Lilypond defaults to the black beam shown; I would like to force the red beam if possible.


r/lilypond • • 25d ago

My current LilyPond setup

0 Upvotes

LilyPond + VS Code + Claude - AI enabled music notation in 2026

If there's anything I can improve please let me know. Any and all comments are welcomed. Thank you


r/lilypond • • 26d ago

How to align chords with CrossStaff in use?

Post image
1 Upvotes

I can get crossStaff to place the desired stem on the treble-clef chord that crosses staves, but I don't know how to make the notes align with the bass clef chord. Can someone advise?

EDIT: here's the basic code structure as provided in a LilyPond "code snippet" for a cross-staff chord

\layout {
\context {
\PianoStaff
\consists "Span_stem_engraver"
}
}
\new PianoStaff <<
\new Staff {
<b d'>4
}

\new Staff {
\clef bass
\voiceOne
% Up to upper staff
\crossStaff { <e g>4  }
}
>>

Now, I can write the upper chord's low A as part of the bass clef chord and add a \stemUp command to get all the notes aligned, but that low A's stem will not be connected to the treble staff chord's stem.


r/lilypond • • Oct 23 '26

Discussion LilyPond, Coding, & The Future of Music Education

Thumbnail
youtu.be
10 Upvotes

r/lilypond • • Oct 19 '26

Add a catalog number to every page of the footer

6 Upvotes

I'm trying to use lilypond to engrave some music for my child's music class. They have the license to the music, but they only seem to have grimy old multi-generation photocopies of the parts. I've reproduced the part in lilypond and I've got it almost exactly identical to the original--but much, much clearer and easier to read. I'm just missing the catalog number that the supplier puts in the lower left corner of every page. I can't find a part of the header that does that. copyright goes on the first page and tagline goes on the last page. I can't find anything that goes on all pages. Suggestions? Thank you!


r/lilypond • • Oct 19 '26

[bug] Grace notes taking time in a multistaff score

4 Upvotes

I’ve got a score with harmonies and the grace notes that shouldn’t take any time, are not placed as they should be on Lilypond 2.26.

Here is the output:

With some silent grace notes of the right length on the 2nd voice for the first doubling, and the 1st voice, 5th bar on the first voice I can get this correct output.

But this is not a fix that I’m willing to make on my score.

For info, the shortcuts for scottish bagpipes are located in /usr/share/lilypond/2.26/ly/bagpipe.ly

Here is the source for the file:

\version "2.26.0"
\include "bagpipe.ly"
% #(set-global-staff-size 18)

\layout {
  indent = 0
  \context {
    \Score
    \omit BarNumber
  }
  \context {
    \Staff
    \RemoveEmptyStaves
    \override VerticalAxisGroup.remove-first = ##t
  }
}

\book {
  \paper {
    print-all-headers = ##t
  }
  \header {
    pdftitle = "Steamtrain to Mallaig"
    tagline = ##f
  }

  \score {
    \header {
      title = "Steamtrain to Mallaig"
      composer = "Mary Ann MacKinnon"
    }

    \new StaffGroup <<
    \new Staff {
      \hideKeySignature
      \time 2/4

      \repeat volta 2 {
        \dble e8 \gra e16 d \grg d c \grg a8 |
        \grg d16 c \grG c d \grg G \grd G \gre G a |
        \dble e8 \gra e16 d \grg d c \grg a8 |
        \grg d16 c \grG c d \grg G \grd G \gre G a |
      }

      \repeat volta 2 {
        % \grace { s32 }
        \grg G16 g \grf g G g \grf g G g |
        \grg G16 g \grf g G g \grf g G g |
        \grg a e \gra e a \grg f a \grg e a |
        \grg a e \gra e a \grg f a \grg e a~ |
      }
      \break
    }

    \new Staff {
      \hideKeySignature

      \repeat volta 2 {
        % \grace { s32*3 }
        A8 \grg A16 f \grg f e \grg c8 |
        \grg f16 e \gra e f \grg b \grd b \gre b c |
        A8 \grg A16 f \grg f e \grg c8 |
        \grg f16 e \gra e f \grg b \grd b \gre b c |
      }

      \hdblg g4~ g8 A16 g |
      \hdblg g4~ g8 A16 g |
      \dble e4~ e~ | e~ e~ |
    }
    >>
  }
}

r/lilypond • • Oct 14 '26

Hack Interactively show note names in Lilypond files

2 Upvotes

r/lilypond • • Oct 09 '26

Remove Version Statement From PDF

2 Upvotes

I use frescobaldi and like it quite a lot, but I can't figure out how to keep the version information (LilyPond v2.26.0) from printing at the bottom of my music pdf.
I've commented it out, erased it entirely, started with a brand-new, blank file, tried an online engraver, tried going through Visual Code Studio, tried a different version of Lilypond, tried doing it via the command line...
Can anyone help?


r/lilypond • • Oct 03 '26

Lilypond goes Wow

12 Upvotes

Posts at https://notat.io/viewtopic.php?t=1526 describe a fascinating use of Lilypond by an AI that was given PDF files of a symphony score and asked to recreate the score in Lilypond. Text entry is much more amenable to AI coding talents compared to manipulating a mouse in another notation program, possibly suggesting another dimension of use for Lilypond.


r/lilypond • • Oct 02 '26

LilyPond to MusicXML converter

15 Upvotes

Hey all,

I’m building a piano practice app and wanted it to support LilyPond files. Once that was working, adding a .ly → .musicxml converter was a pretty small extra step. I figured it might be useful on its own, since the officially supported musicxml2ly only goes in the other direction.

Find it here: https://sightread.dev/lilypond-to-musicxml

I know python-ly can export MusicXML too, but my impression is that its approach makes full LilyPond compatibility fundamentally hard, as it doesn't run a scheme interpreter. This converter instead lets LilyPond interpret the file.

I also wrote up some of the technical details because I thought the implementation was interesting. The WebAssembly build of LilyPond and the .ily extension used to extract the interpreted score are both open source.

Let me know if this is useful for you, and especially if you run into any issues!


r/lilypond • • Sep 21 '26

Question Scoop or bendBefore

4 Upvotes

I am trying to arrange a klezmer piece for clarinet and they frequently scoop into a note. I could use glissando, but I'd love to find a way to use a command similar to \bendAfter.

I've found a couple of older examples online, but they aren't working quite right for me. It seems to be a topic that comes up once every year or so on the Lilypond mailing list, but I haven't found a solution yet.

  • This Reddit post works, but the scoop line is quite long. No matter how I try to adjust the variables, I can't get it quite right.

  • I found a another post where they had some code snippets that created the effect. Unfortunately, I can't figure out how to achieve that in the current Lilypond syntax.

Thanks for any help or advice you can offer!


r/lilypond • • Sep 14 '26

Iris: a self-hosted LilyPond editor with PDF preview and collaboration

Post image
41 Upvotes

Hi everyone,

I use LilyPond and wanted a browser-based editor that brought together source editing, compilation, font management and preview, while running on my own server. I couldn’t find something that matched the workflow I had in mind, so I built Iris.

You write LilyPond source in the browser, compile it on the server, and see the resulting score beside the editor. Projects support multiple files and folders, uploaded fonts, and downloadable build outputs.

A few features that might be useful here:

- PDF/source navigation with Ctrl/Cmd-click, using a separate mapping rather than depending on LilyPond’s embedded point-and-click links.
- Collaborative editing, with shared projects, cursors and selections.
- File history and manual snapshots, so you can return to earlier versions of a score.
- LaTeX support in the same workspace, which I added because it’s the other tool I use frequently.

Iris is self-hosted and open source under GPL-3.0-or-later. It runs on Node.js and PostgreSQL, with LilyPond installed in the server environment. The repository includes screenshots, installation instructions and a user guide.

Repository: https://github.com/GioMez/Iris

I use it myself, but I’d be interested in feedback from people with different LilyPond workflows, particularly projects with included files and custom fonts.

Thank you!

EDIT: Released version 1.0.1, fixing a few early-stage quirks.


r/lilypond • • Sep 11 '26

Question partCombine gives differing results

Post image
5 Upvotes

EDIT: SOLVED! It turns out I had ClarinetI playing notes lower than ClarinetII. By correcting that, the notes now display as desired when using \partCombine.

I am arranging a piece for a small concert band. When I used \partCombine for the Flute I and Flute II parts, it looks how I'd expect. Note stems are joined together and face the same way, all nice and tidy.

BUT! When I use the same command for the Clarinet I and Clarinet II parts, I get inconsistent results. I tried playing around with \stemDown and \stemUp, but the results are not great. For example: the 8th notes in the first measure of the screenshot only get aligned together, not properly joined, they end up with stems that look like 16th notes.

Any suggestions for troubleshooting?

Hopefully I've included the relevant code snippets below.

Here are the relevant notes from clarinetI ...

d4. c8 a f c'4 bf' a

a2 g4 d'8 c bf g e c f4-. r r

And clarinetII

f4. f8 c a c,4 d c

a'2 g4 d'8 c bf g e c f4-. r r

Here is the Score setup section

flutePart = \new Staff \with {

instrumentName = "Flute I & II"

midiInstrument = "flute"

printPartCombineTexts = ##f

} \partCombine \fluteI \fluteII

clarinetPart = \new Staff \with {

instrumentName = "Clarinets I & II"

midiInstrument = "clarinet"

printPartCombineTexts = ##f

} { \transposition bf \transpose bf c' \partCombine \clarinetI \clarinetII }

\score {

<<

\flutePart

\clarinetPart

>>

\layout { }

\midi {

\tempo 4=210

}

}


r/lilypond • • Aug 28 '26

Question Using tags doing weird stuff

Post image
3 Upvotes

Hi,

I was creating a score where I needed to quote other voices. Then I discovered this:

\version "2.26.0"

Quotei = \relative f'' { f2 f4 f4 | g2 g4 g4}

Quote = \relative f'' {

f2 f2 \tag #'(test) { <>^\markup \small { "Treble" } } \cueDuringWithClef #"citaat" #UP #"treble" { R1 }

}

\addQuote "citaat" { \Quotei }

music = {

<<

\tag #'zonder \new Staff \Quote

\tag #'kwt \new Staff \keepWithTag #'test \Quote

\tag #'rwt \new Staff \removeWithTag #'test \Quote

\tag #'rwtkc \new Staff \removeWithTag #'test \killCues \Quote

>>

}

\score {

<<

\new Staff \Quote

\new Staff \keepWithTag #'test \Quote

\new Staff \removeWithTag #'test \Quote

\new Staff \removeWithTag #'test \killCues \Quote

>>

}

\score { \keepWithTag "zonder" \music }

\score { \keepWithTag "kwt" \music }

\score { \keepWithTag "rwt" \music }

\score { \keepWithTag "rwtkc" \music }

the result is this: when tags are directly in score, it works, the indirect tags are not displayed.


r/lilypond • • Aug 26 '26

Multimeasure Rests

3 Upvotes

I do many arrangements for my clarinet quartet. I create the score information using \parallelMusic, then refer to them in \bookpart \score. Using that mechanism, I cannot get multimeasure rests to compress in the four parts. It's always multiple whole rests. (I do use R1 to enter the rest.) (There's rarely a true multimeasure rest in the score). I've tried \override MultiMeasureRest.expand-limit = #1, and I've tried \compressMMRests where applicable.

Is this a side effect of using \parallelMusic? Is there a magic spell I can cast?


r/lilypond • • Aug 24 '26

I measured how much of a page OMR actually gets right before you start fixing it - Sheetly App

1 Upvotes

Disclosure: I build one of the engines below. Everything is published so you don't have to take my word for any of it.

If you've ever run a scan through an OMR tool and then spent an hour fixing it, the useful question isn't "is it accurate" but "how much is left to fix". I tried to measure that properly.

Scoring is strict F1 per note — pitch, onset and duration must all be right. That's much harsher than the pitch-only numbers apps quote, and it's the measure that actually predicts cleanup time, because a wrong duration cascades through the bar.

Three engines on identical inputs, page one of each of 31 engraved pages, then the same pages as simulated phone photos:

Clean: Sheetly 96.4% | Audiveris 5.11.0 88.4% | oemer 38.5%

Photos: 95.3% | 50.4% | 9.8%

60 systems from real IMSLP scans (OLiMPiC): 90.3% mean vs Audiveris 57.6%

Audiveris is genuinely strong on flat input and free — it beats me outright on five of the 31 clean pieces, which is in the published per-piece table. It collapses on photographs, which is what it was never built for.

The whole thing is downloadable: ground-truth MusicXML, every engine's raw output, and the scorer as a dependency-free Python file. Run `python3 score. py .` and it reprints my published table, or score your own pair of files with it. My material is CC BY.

https://www.trysheetly.com/compare/omr-benchmark


r/lilypond • • Aug 19 '26

Terrible Tuplet

Post image
12 Upvotes

How would you handle this? This result is pretty ugly. Tried moving some things around, but couldn't come up with anything better.

This is trying to replicate a historical score. In that, the first braket is at more of an angle, so it contrasts enough with the ledger line to be clear. The "3" is also somewhat off-center (moved right) to avoid the dot. Wondering if E can reproduce that.


r/lilypond • • Aug 20 '26

Treble Clef

0 Upvotes

Sorry, I didn't express myself clearly at my last post. So... How can I simulate a "Treble Clef" using Decals, since the program's system doesn't actually have one?


r/lilypond • • Aug 09 '26

Engraving the nightmare chord

11 Upvotes

Just want to share what I did for engraving this mess. By "nightmare" I mean not how it sounds but that it was difficult to engrave. Source: Chopin op. 62 no. 2 measure 76

<<
   \acciaccatura {\once \override Slur.direction = #DOWN 
                  \shape #'((0 . -0.1) (0 . -2) (0 . -2) (0.2 . -3)) Slur <b, e gs~>8\arpeggio} gs'4. 
   \\ \grace {\once \omit Stem \once \omit Flag <b, e^~ gs>8} e2*3/4 
   \\ \grace {\once \omit NoteHead \once \omit Stem \once \omit Flag <b e gs>8} as1*3/8
  >>

r/lilypond • • Aug 07 '26

O_c Note Display

1 Upvotes

I’m running v.2.0 Beta T40 on a micro o_c and have tried everything to change numerical note values to musical notes.

I want to select notes on a scale not numbers!

Can anyone point me in the right direction?

Thanks


r/lilypond • • Aug 06 '26

Question Mac OS Workflow?

3 Upvotes

MuseScore pissed me off for the last time and I’ve decided to throw my effort behind switching to Lilypond. I’m building a library of copyright free music and original compositions for a small music club.

I am a long time Emacs user so my plan is to use that to edit source files. Can anyone share their workflow or tips to help a new guy get started? Thanks!


r/lilypond • • Aug 03 '26

How to maintain reasonable spacing between systems when output is set to "crop"

Post image
3 Upvotes

I am using the LilyPond CLI to generate cropped excerpts of scores, which from my understanding so far, means that none of the usual paper-based vertical layout logic applies.

How can I maintain adequate space between systems when the output is cropped? Here is an example where music wraps to a second line. I would like to increase the padding between the systems.

I've tried setting system-system-spacing.minimum-distance within the \layout block, but it doesn't seem to do anything. I haven't been able to find other documentation to help.

The CLI documentation mentions for crop:

Note that currently this option is not well suited for multi-system output since vertical space between systems gets removed.

Is there any way around this caveat?


r/lilypond • • Jul 31 '26

Note spacing 🙃

8 Upvotes

EDIT: It was not that bad! It was like that because I left \repeat unfold{}s in the empty bit - with hideNotes so they were still taking up space wh00ps

-----

Hello, I have been lilypond-transcribing a lot of things for the last almost a year I guess on the French-language Wikisource

(incidentally if you didn't know, lilypond is integrated into the wikimedia projects and if you are looking for bits of stuff to practice on etc., the Category:Texts with missing musical scores on the english wikisource is particularly overflowing...) Anyway

I have been working on the score of le Déserteur (1769) and becoming increasingly annoyed with Lilypond's default note spacing. Example that has finally made me desperate enough to come here and hope someone has a solution:

The whole point of the tremolo repeats is to NOT take up the same amount of space as 12 more sixteenth notes.. but lilypond ...

ETC. ETC. After those \repeat tremolo 8 {e16}s there is nothing there.. all the way down..

I have tried to decipher the documentation & fiddle with common-shortest-duration and base-shortest-duration but nothing seems to work. Is there really no way to just make all the notes take up the amount of space they actually need instead of leaving huge blanks because there happen to be shorter notes around ??