Questions tagged [lilypond]

GNU LilyPond is Free Software for engraving music, with a strong emphasis on very high quality output.

LilyPond is a computer program for music engraving. One of LilyPond's major goals is to produce scores that are engraved with traditional layout rules, reflecting the era when scores were engraved by hand.

LilyPond is different from conventional commercial typesetting software in that the input is code written in plain text, which LilyPond compiles into output formats such as PostScript, PDF, and MIDI. There are various front-ends available to make editing of this code easier.

LilyPond is available for several common operating systems. It is released as part of the GNU project, and under the terms of the GNU General Public License, it is Free Software.

LilyPond uses the Scheme programming language, both as part of the input syntax, and as internal mechanism to glue modules of the program together. [...]

LilyPond uses the GNU Guile implementation of Scheme, which is based on the Scheme “R5RS” standard.

— from the LilyPond documentation - Scheme tutorial.

160 questions
2
votes
1 answer

Connected "[" bar lines with Lilypond

How can I let "["-type bars connect across staves? I couldn't find anything helpful in the docs and in the snippets repo. Here's the MWE that illustrates the problem. \version "2.19.82" rightHand = \relative c'' { \bar "[|:" \repeat volta 4…
2
votes
1 answer

Lilypond repeat symbol vanishes next line uses: \bar ".|"

I am creating a chord chart where the first 8 bars are repeated using \repeat volta 2 {}; no problem. I use \bar ".|" to force bar lines on the left side. Not conventional, but, that's what I want. The next line starts with the above mentioned \bar…
john ware
  • 153
  • 1
  • 8
2
votes
1 answer

Mark key note in different colors according to voice?

I am working with 4 part vocal music. I am trying to make the key note a different color in each voice part. Based on previous answers and lilypond snippets, I have this code: %Association list of pitches to colors. #(define color-mapping (list …
2
votes
1 answer

LilyPond: pitch in parenthesis without stem (accordion notation)

For accordion music sheet notation it is common to specify the pitches in parenthesis, e.g. (E in parenthesis in the snippet below). This is my target: The pitches in parenthesis (1) are not played and should not take up additional logical time…
selyunin
  • 1,530
  • 2
  • 23
  • 30
2
votes
0 answers

Lilypond: How does one control the size of the repeat symbol( : )

My apologies. I've trimmed it down as far as I am able. Just to try to be clear, when the ChordName font size and the BarLine bar-extent are increased, the colon (repeat symbol) stays at the default size. My question is how to adjust the size of…
john ware
  • 153
  • 1
  • 8
2
votes
2 answers

Can Lilypond produce variable paper height output?

I have a large number of small scores intended for Sunday morning service leaflets. Preparing the image for insertion into the MS Word document includes removing all the vertical blank space, which is different for each piece. I currently create…
jwvh
  • 50,871
  • 7
  • 38
  • 64
2
votes
1 answer

Modifications to lillypond file

Here is my code: \begin{lilypond} \version "2.17.27" \language "english" \relative{ \time 2/4 c' c _"C.1"| c cs | c d | c ds | c e | c f | c g' | c, a' | c, as' | c, b' | } \end{lilypond} It generates this: What I need and…
user4035
  • 22,508
  • 11
  • 59
  • 94
2
votes
2 answers

Align secondary lyrics to hidden Voice

I think I'm close, but can't quite seem to get two stanzas going with one aligned to a hidden voice - so that rhythmic variations can be approximated by the lyrics. melody = \relative c' { \clef treble \key c \major \time 4/4 c4 d e f | g f…
MikeiLL
  • 6,282
  • 5
  • 37
  • 68
2
votes
1 answer

Lilypond: Spacing between notes/lyrics

When I process this code using Lilypond 2.18, the lyrics on the last line are spaced too far apart to be legible as a single word. \version "2.18.0" \include "english.ly" \relative bf' { \key df \major gf'8 [ff] ef df ef2 c8 df ef2. df8 c bf2.…
2
votes
1 answer

Lilypond: manually print a key signature (or cancellation)

My piece involves a D.S. al coda repeat across a key signature change, like: \mark \markup { \musicglyph #"scripts.segno" } \key a \minor a b c' d' % more music in a minor \key a \major a b cis' d' % more music in a major \once \override…
Hendrik
  • 569
  • 3
  • 12
2
votes
1 answer

How to use single notes in music functions?

I want to create a function in Lilypond that accepts one note as input and returns the note with some markup applied. Specifically, I want to simplify something like the following: \relative c' { d^\markup{\hspace #2 \smaller +1}-\bendAfter #+1…
mwil.me
  • 1,134
  • 1
  • 19
  • 33
2
votes
1 answer

What language mechanisms does Lilypond have for simple abbreviations, to avoid code duplication?

In lilypond, I often find myself writing things like this \version "2.14.2" { r2 c2 | gis'8 gis gis gis gis gis gis gis | } or this \version "2.14.2" { \time 3/4 \clef bass \relative es, { 8\staccato g bes
2
votes
1 answer

LilyPond: acciaccaturas and slashed stems not showing when beamed together

I have a question related to acciaccaturas and slashed stems. So the first one is: why when more than one note is input as acciaccaturas or slashed grace notes they are not automatically beamed? And why when I beam them I lose the slash? \version…
gilbertohasnofb
  • 1,984
  • 16
  • 28
2
votes
2 answers

LilyPond: Can a double barline follow a multi-measure rest?

I have a multi-measure rest at the end of a piece, and I cannot get a final "|." barline to print. The regular single barline is used instead. Minimal example: \score { \new Staff << \compressFullBarRests R1*62 \bar "|." >> } I'm…
Micah Walter
  • 908
  • 9
  • 19
2
votes
2 answers

Regular expression that takes <...> as one item in "foo bar and so on" (Goal: Simple music/lilypond parsing)

I am using the re module in Python(3) and want to substitute (re.sub(regex, replace, string)) a string in the following format "foo f ga " to "#foo #f #ga " or even "#foo # #f #ga #"…
nilshi
  • 504
  • 1
  • 6
  • 16