LilyPond is a free music engraving program, part of the GNU Project. Code formatting on this site is currently broken; workarounds can be found on meta.

learn more… | top users | synonyms

1
vote
1answer
24 views

Lilypond: how to engrave a double bar at “Fine” when a \repeat statement follows

Under Lilypond 2.18, the following does not work as expected: g b c r-"Fine" \bar "|." \break \tempo "Trio" \repeat volta 2 { c a f f The double bar at "Fine" fails to appear. The line closes with ...
-1
votes
2answers
100 views

Lilypond incorrectly displaying natural signs in B Major

My hymn is in B-Major, so I set the key-signature accordingly \key b \major but the problem is that it causes LOTS of natural signs. Do I really need those? This hymn is for children and the naturals ...
4
votes
3answers
55 views

Partial Measures with Matching Ending Measure

In a hymn I am working on, the first measure is partial and has only an eighth note, but the Time Signature is 6:8. Someone told me that the ending measure should also be offset in reverse to make up ...
2
votes
2answers
25 views

LilyPond: Setting Vertical distance for PianoStaff

I'm trying to engrave a piano song. I have read the LilyPond manual over and over and tried several things: I want the spacing between the scores to be bigger. Minimal not working example is \new ...
1
vote
1answer
34 views

Change from staff to lyrics to chords

What I want to achieve, for example, is to start with a single staff, change to chordmode somewhere, and change to lyrics somewhere later. Like this: The only way, I found, is to use a \markup ...
3
votes
1answer
59 views

lilypond: can I combine \autochange and \change Staff?

With a PianoStaff, and having all the melody in the upper staff, if we put \autochange before the melody, the the notes will be displayed in the upper or the lower staff depending on their height. I ...
1
vote
1answer
26 views

Get time signatures to show up in a ChordNames context

I'm working off the "adding bar lines to chord names context" example, but have variable time signatures in my piece. I'd like those to show up as numeric time signatures in the same line as the ...
1
vote
2answers
72 views

In LilyPond (piano staff) how can I type two eighth notes for different hands?

In LilyPond, while writing a piano staff, how can I type two eighth notes, so that one is played with the left and the other with the right hand? Example. I want to produce this highlighted ...
4
votes
1answer
50 views

In Lilypond: Can one absorb the sharps and flats in the key, in order to ease typing?

As I understood from the tutorial, the short code \key d \major cis4 d e fis would generate . Is this the only way to type it, or is there a natural way to get the same output by ...
5
votes
1answer
69 views

How to have one voice in multiple staves with lilypond?

I want to produce a score with two staves (one with treble key, one with bass key, like a piano staff) and with a single voice navigating between the two staves. If the note is lower than the middle ...
5
votes
3answers
153 views

Lilypond generated with MuseScore does not fit the width of the page in XeTeX doc

I am using MuseScore 1.3 on Ubuntu 14.04 to write my scores. Then I save them as LilyPond files, and include them in my tex document using \lilypondfile, like this: \documentclass[a4paper]{article} ...
7
votes
2answers
90 views

Ηοw can I generate larger than the default images of chord diagrams using Lilypond?

I am trying to use Lilypond to generate (guitar) chord diagrams. \include "lilypond-book-preamble.ly" \version "2.16.2" \markup { \vspace #1 \sans \abs-fontsize #8 C } \markup { ...
2
votes
1answer
62 views

Colliding staccato marks and ties

In Lilypond 2.14.2, I've got two staccato eighth notes connected by a tie: d'8 \staccato ~ d' \staccato Unfortunately, the ends of the tie end right at the dots of the staccato, making it look a ...
3
votes
2answers
72 views

Is there a way, in Lilypond, to eliminate the instrument name from a staff from outside of the staff context?

Here is my situation. I'm using Lilypond 2.18.2. I am working on a lilypond edition of an opera, which will include a piano-vocal score, full score, and orchestral parts. I have set up my score with ...
1
vote
1answer
41 views

In Lilypond, how to abstract multiple tags into a variable or function?

Using lilypond 2.18.2. I'm trying to define flexible tags, to get around the fact that keepWithTag only lets you keep one tag at a time. I understand how to do this manually: \tag ...
3
votes
1answer
33 views

lilypond engraving lyrics to small part with voices

I try to set a sheet of music using lilypond 2.18 and i have difficulties to engrave the lyrics to a small part of the score where I use << { } \\ { } >> to get a second voice to the ...
7
votes
1answer
67 views

Lilypond staffs extend past end of music

I'm writing a piece in Lilypond in verse/refrain form, in which the verses are only a singer ("Cantor") and a cello, and the refrain has SATB parts as well. I'm trying to use an explicit line break ...
3
votes
1answer
60 views

Get segno to appear above chord-names in lilypond

Problem: the segno appears between the staff and the chord-names, pushing the chord names up, which makes them hard to read: I'd like to have the sengo appear above the chord names (so that the ...
12
votes
3answers
410 views

Odd symbol in Béla Bartók's Mikrokosmos Book 1

Today I came across an odd symbol in Béla Bartók's Microkosmos. The symbol occurs in Book 1, Score 21, Measure 8, at the end of a phrasing slur. It looks like a vertical bar that crosses only the ...
5
votes
3answers
85 views

How to specify global markup font-size or other property in Lilypond

Can I do this in Lilypond? I believe it's possible, however I could not find anything in docs about this. My question is, instead of repeating like this: g16-\markup {\tiny\underline\typewriter ...
1
vote
1answer
128 views

How do I get the bar lines in successive staves to align?

In the following, lines 2-6 have the same notes, yet the bar lines in the middle are not aligned. Is there a way to get them to align? Also, is there a way to extend the bar lines to the lyrics (here ...
3
votes
1answer
73 views

Extend measure so it occupies whole line

I am writing some exercises, for my students. Those are mostly one line examples, and this time I need a measure to extend over whole line, so one big measure with ending bar, nothing else. What do ...
9
votes
3answers
370 views

Arbitrary length full-measure rests in Lilypond

In Lilypond one can make long full-measure rests with: \compressFullBarRests R1*12 which outputs: Is there an engraver I can turn off, or some other way to remove the number from above ...
9
votes
3answers
453 views

Rendering lilypond score into html page

What would be the best way of rendering specific parts of a lilypond score, into an HTML page? I did that using lilypond-book by previously embedding <lilypondfile> tag into my html file, and it ...
3
votes
1answer
122 views

Lilypond - two voices, with overlapping beams

I have the following in my measure: What would I have to write, to have those <c e>'s connected with beam instead of 1/8 rests, and those in second voice bellow also? Edit upper voice : ...
3
votes
1answer
131 views

Markup text inside second volta bracket

I want to format text in the headings of both 1st and 2nd ending Volta brackets in Lilypond. There are several examples of formatted text in the first ending bracket, but I cannot seem to find one ...
4
votes
2answers
97 views

How do I define an Lilypond/Scheme alist as cons of two a lists?

I have pitch names defined as a alist in Lilypond as below and it works fine. \version "2.18.2" pitchname = #`( (saa . , (ly:make-pitch -1 0 NATURAL)) (raa . , ...
4
votes
1answer
126 views

Is there a single command for vertical padding in LilyPond \markup?

The documentation for \markup alignment lists two essentially different padding commands: \pad-around or \pad-markup, which adds the same amount of space all around the element, and \pad-x, which adds ...
6
votes
2answers
126 views

Separate the top matter from the staves in lilypond

How can I add extra vertical space between the top matter, i.e. the stuff in the header like title, composer..., and the first staff of the music? I'd like to leave enough room for additional, ...
6
votes
1answer
308 views

Lilypond Conga Notes

I am writing a conga part in LilyPond. I saw on LilyPond's documentation how to write conga notes: ...
8
votes
1answer
301 views

Is there a lilypond 'insert whitespace to fill line"?

I'm trying to make music-snippet images using lilypond, but I'd like each snippet to always have trailing "whitespace" so that each of these images is of the same width. I'm following the suggestions ...
7
votes
1answer
253 views

Top-aligning scores inside Lilypond \markup blocks

I'm currently trying to typeset a hymn. Below the actual score I want two things: Some additional verses The voicing for "Amen." I'd like to lay these out adjacent to each other to save space, ...
8
votes
2answers
264 views

How can I notate this slur with LilyPond?

I have a slur that starts on as multi-voice and ends on a single voice as measure 3–4 of the following: Here's what I've got so far (right hand only): \relative c' { << { c4 c c c8 c c4 ...
5
votes
1answer
162 views

Lilypond: How to control the paper size to create images

My question concerns the creation of images using lilypond. Until know I've created some music sheets and lilypond has been really great. However I have a website and I would like to post some ...
13
votes
3answers
744 views

How can I force LilyPond to repeat a chord symbol (relates to alternate endings)?

In chordmode, LilyPond chooses not to display chord symbols when they are the same as the preceding symbol, which is usually the right behavior. However, this behavior gets weird in the context of ...
6
votes
2answers
192 views

How do I parameterize text in a re-used section of Lilypond notes?

Here is a short snippet of Lilypond that I think expresses the intent of what I want to do. verseNotes = \relative c' { d^\markup { \verseText } d d d16 d d8 a r4 | cis8 cis cis cis16 cis ...
8
votes
1answer
211 views

Define custom chord voicings in lilypond

What I'd like to do is define custom, specific chord voicings in lilypond, and to be able to attach note-durations to them, along the lines of voicing= < g a c e a > % dom7, with 7th in bass ...
8
votes
4answers
399 views

Effective way to notate triplets

I was directed by America Luke to this forum site. I hope this is the correct place. I have a score with a lot of triplets. It's awkward to write always \times 2/3 {c16 d e} \times 2/3 {d e f}. ...
5
votes
1answer
468 views

LilyPond vertical spacing, alternate endings, and chords

I am typesetting a score that contains alternate endings on a volta repeat, as well as chords (using LilyPond 2.17.97). By default, the following MWE: song = { \repeat volta 2 { ...
5
votes
1answer
248 views

Multi-measure percent repeats in lilypond

I'm trying to copy a score that indicates the repeat of a 4-bar phrase that has the 4 repeat bars laid out on the sheet, with a single (4-slash) percent-repeat symbol symbol in the middle, sort of ...
4
votes
1answer
331 views

Rendering second ending closing bar when followed by another repeat in Lilypond

Using Lilypond, I'm engraving some music that consists of two parts that are repeated. The first repeated phrase contains an alternate ending. By default, Lilypond renders the MWE below: \version ...
7
votes
1answer
320 views

Can music be written using scale degree numbers instead of note letters in LilyPond?

Is it possible to refer to notes by scale degree rather than their name in LilyPond? For example instead of c d e, set the key to c and use 1 2 3. Or using movable-do solfege syllables (do, ro, re, ...
8
votes
1answer
93 views

How can I typeset a break or jump in my scores?

I am using lilypond to typeset some music. I would like to leave away some bars from the original music. Therefore, I have to jump from some bar to an other. But I want to show, that I cut something ...
5
votes
3answers
172 views

How can I transfer the old \partcombine syntax of lilypond to a version newer than 2.1.17?

I am trying to convert a Lilypond file to an actual version. The script convert-ly gets stuck at the conversion to version 2.1.17 with the following error: \partcombine can not be converted. I ...
5
votes
1answer
85 views

How can I pick LilyPond style choices at compile time?

I have LilyPond lead sheets for which I would like to be able to choose some display tweaks at compile time, primarily in order to tailor the sheet for the preferred transposition (e.g. for B-flat ...