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

7
votes
2answers
75 views

Lyrics for additional verses in LilyPond?

Is there a way in LilyPond to simply list the lyrics corresponding to additional verses after the end of the music, with one paragraph per verse? (N.B. This exact question has been asked before, in ...
1
vote
1answer
135 views

How to translate from Scientific Pitch Notation to Lilypond absolute octaves in a concrete key?

That's the general question. More concretely, here c' is linked to C4 (middle C). Now, what is the Lilypond absolute representation for G5 in G major key?
1
vote
1answer
45 views

Typeset whole note as full measure in 6/8 time in Lilypond

I'm trying to copy a song from a book in which they were using a whole note to represent a full measure in 6/8 time. If I try to use the whole note duration in Lilypond (1), it lasts 8/8 and ...
4
votes
0answers
60 views

Lilypond function to interpolate two notes

I want to define a Lilypond function that will interpolate two notes. The function should take as inputs: the first note, the last note, the step (in semitones), and whether flats or sharps should be ...
4
votes
1answer
39 views

use Lilypond to transpose pattern around circle of fifths

I want to provide a pattern (e.g., the C major arpeggio, C E G) and have Lilypond automatically show it transposed (as one score) in all 12 scales. Here's my current attempt: music = { c' e' g' s } ...
2
votes
2answers
205 views

Two MIDI files generated by Lilypond output the same audio

When generating the MIDI files for the two Lilypond files below, and then generating the WAV audio files with Timidity (timidity --output-24bit -A120 f.midi -Ow -o f.wav), I can hear no differences ...
2
votes
1answer
55 views

lilypond : tuplet vs. times

Reading some examples of lilypond codes, I sometimes see \tuplet and sometimes \times for engraving nuplets. In the documentation, the french (using \times) and the english version (that uses \tuplet) ...
6
votes
2answers
156 views

Is there a standard notation for “Happy Birthday” with two names (twins)?

When singing the well-known Happy Birthday song, is there a standard or official way of having two names? The measure has to be elongated, and there's a question of which note to sing the first name ...
2
votes
1answer
39 views

Have tie extend past end of music in lilypond

I'm writing out a short snippet of music and would like to have a tie that extends past the end; How do I do this in lilypond? Here's what I get now: I'd like to indicate the tie back to the ...
1
vote
2answers
43 views

Is there a way to input guitar tabulature by entering fret and string numbers instead of note letters in LilyPond?

I want to use LilyPond to write guitar tabulature, but it would be quicker for me to be able to input fret numbers and string numbers instead of note letters. How can I do this?
1
vote
1answer
40 views

Lilypond: multi-bar melisma with extender line in `\lyricmode` context

For reasons, I'm setting the lyrics of a song with \lyricmode instead of \lyricsto. However, I'm having trouble getting a long melisma to work in this mode. Something like this: is easy to achieve ...
3
votes
1answer
28 views

Lilypond “elevation” of rests after two voice passage

After I resolve a two voice passage that involves using \set associatedVoice, rests for the remainder of the piece are higher on the staff than before: The eighth rest at the beginning is lower on ...
2
votes
2answers
35 views

Lilypond “\set associatedVoice” trouble with stanzas

I'm transcribing a song in which two verses have slightly differing notes. I decided to use \set associatedVoice to achieve this. It partly works but I'm having trouble getting the final words of the ...
1
vote
2answers
60 views

How do I put musical symbols in text fields using Lilypond?

I am writing a score using Lilypond and I want the title of a staff to be "Concert D flat major". How would I replace the word "flat" with the corresponding marking? Here is an example of what I have ...
2
votes
2answers
253 views

Lilypond chord mode not rendering minor modifier in alternate chord

I'm engraving some music using Lilypond and have been requested to engrave an alternate chord name next to a chord. For some reason I can't get the output I expected. What is wrong here (with either ...
2
votes
3answers
63 views

Lilypond templating or content management system?

I'm looking for a Lilypond templating or content management system that would allow for real, actual separation of music data from presentation. Even better would be separation of music and lyrics. ...
3
votes
1answer
80 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 ...
0
votes
2answers
150 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 ...
5
votes
3answers
135 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 ...
4
votes
2answers
43 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
43 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 ...
1
vote
2answers
143 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
68 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
95 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 notes will be displayed in the upper or the lower staff depending on their height. I would ...
1
vote
1answer
33 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 ...
6
votes
1answer
116 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 ...
7
votes
2answers
120 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
85 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 ...
6
votes
2answers
160 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
2answers
69 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
43 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
82 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
77 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 ...
5
votes
3answers
111 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 ...
4
votes
1answer
107 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 ...
6
votes
3answers
167 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} ...
3
votes
1answer
140 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 : ...
9
votes
3answers
661 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
190 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 ...
2
votes
1answer
160 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 ...
4
votes
2answers
114 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
194 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
227 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
419 views

Lilypond Conga Notes

I am writing a conga part in LilyPond. I saw on LilyPond's documentation how to write conga notes: ...
12
votes
3answers
458 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 ...
7
votes
1answer
318 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, ...
5
votes
1answer
194 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 ...
8
votes
1answer
259 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 ...
9
votes
2answers
326 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
590 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 { ...