Questions tagged [lilypond]

For questions about usage of LilyPond, the free music engraving program. Code formatting on this site is not intended for LilyPond; workarounds can be found on meta. Questions may also necessitate the notation and/or engraving tags.

Filter by
Sorted by
Tagged with
3
votes
2answers
180 views

Reducing staff numbers in LilyPond

I have a choral piece where some of it is 4-part divisi SATB, and some of it is unison (true unison, not octaves). I would love to notate this in LilyPond with the two (women's & men's) staves ...
3
votes
1answer
221 views

How to specify optional repeats/volta

Is there a widely-accepted and succinct way to indicate that a repeat and/or volta is optional, or to indicate that a section should be repeated n times where n is up to the player (within bounds)? I ...
2
votes
3answers
1k views

Time signature inconsistent

I'm trying to write the first measure of the Moonlight in Lilypond From my very basic knowledge the first measure is 4 x 3 x 1/8 = 3/2 long, but the special symbol (alla breve) seams to be a 2/2. ...
2
votes
2answers
406 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 ...
2
votes
2answers
686 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
1answer
176 views

Errors with slashed grace notes in LilyPond

Here's a strange issue with typesetting (in LilyPond) a work that begins with slashed grace notes (acciaccatura). First of all, I get the following error message in my console when I run lilypond (...
2
votes
1answer
102 views

Dotted half rest not working in 3/4 time in LilyPond

I can write the following in the violinOne part in LilyPond 2.18.2 and it produces a quarter note rest in a pickup measure followed by a measure with a half note rest and then a quarter note rest: \...
2
votes
2answers
311 views

Lilypond – how can I write lyrics to rests in multiple stanzas?

could someone help me with my problem, please? I have got this Lilypond 2.18.2 code: \version "2.18.2" \language "deutsch" global = { \time 4/4 \set Timing.beamExceptions = #'() \set Timing....
2
votes
2answers
98 views

Adding \new Lyrics to music throws off alignment in lilypond

The following code causes an overflow, where the music goes off the side of the page: It seems that lilypond decides where the line breaks go before considering how lyrics will change spacing. How ...
2
votes
1answer
866 views

How to set a simple song in lilypond with refrain

I am fiddling now a whole day around with trying to set a correct Lilypond notation. While I found with trial and error, that I could display all tones and vocals, I am not able in getting the correct ...
2
votes
2answers
654 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

Stop Lilypond from placing beam around second voice

I have two voices in the right-hand staff. I'm not sure why Lilypond is doing what it is (see freehand circle) but I would like it to stop. The beam should ideally be somewhere near the red line, with ...
2
votes
1answer
133 views

Lilypond: Indicate alternate endings

Using Lilypond, I would like to indicate alternate endings to the piece I am engraving; an "Optional 'Screen Gems' Ending" which is 2 measures long or another "Low Fat" ending (not my terms; they are ...
2
votes
1answer
40 views

Changing direction of notes

Here, the last chord has a line that goes down. How do I get the last chord to be directed upwards, like this?
2
votes
2answers
101 views

What's the proper usage for << >> and { }

In the lilypond files, when you define a score, there are times to use << >> and times to use { } but this is very confusing to me. Sometimes examples use both, sometimes one or the other....
2
votes
1answer
128 views

LilyPond: Subdivided beam grouping for compound time signatures

I'm trying to write a 12/8 drum score in Lilypond, with a lot of 32nd note phrasing, and the default beam grouping looks a bit ugly to me: (Here's the above example in LilyBin: http://lilybin.com/...
2
votes
1answer
177 views

Lilypond - apply a repeating rhythmic pattern to all notes

Assuming I have a pattern like this: \relative c' { c4 d e f8 g d4 e f g8 a e4 f g a8 b f4 g a b8 c } How can a define the rhythmic pattern to be applied to all notes so I only had to input ...
2
votes
1answer
215 views

LilyPond piano score: switching between alternating and simultaneous chords

I have piece of piano music that has two parts. In one part, chords are alternating between hands but I don't want to express staves precisely to leave it for a player. In the second part, the hands ...
2
votes
3answers
125 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. ...
2
votes
1answer
34 views

LilyPond – omit first page-number when numbering formatted by markup

I use this snippet to reformat the LilyPond page numbering: pagenumcol = \markup { \column { \vspace #0.5 \fromproperty #'page:page-number-string } } copyrightcol = \markup { \fill-...
2
votes
3answers
43 views

Consistent use of LIlypond Transpose Function

From the current lilypond doucmentation: http://lilypond.org/doc/v2.18/Documentation/notation/changing-multiple-pitches I see the following explanation for the function \transpose: \transpose ...
2
votes
1answer
41 views

Is there a way to get two songs on a single page using lilypond-book?

I am currently using Frescobaldi to edit my lilypond files. I have several short songs (a half-page or less) that I would like to combine into a set with more than one song on each page. Currently, ...
2
votes
1answer
72 views

How can I transpose a quote in Lilypond?

I'm transcribing a piece that has a section where one instrument doubles another an octave lower. I'd expect something like this short example to work: oboe = \relative c' { \clef treble | c g a ...
2
votes
1answer
226 views

LilyPond does not create MIDI file

I am a new user here. I have just installed LilyPond on Windows and I am having trouble creating MIDI files together with my scores. I am employing Frescobaldi as an editor, but the problem persists ...
2
votes
1answer
66 views

Lilypond v2.19 - How do I add a title to the second page of the same score?

I want to add a title to the second page of the same score. How would that be possible? Here is a template: http://www.lilybin.com/3hii6e/1 Any help would be appreciated. Thanks!
2
votes
3answers
94 views

How to keep the version number in an include file?

Recently I upgraded to lilypond 2.19.80, and now lilypond tells me: warning: no \version statement found, please add \version "2.19.80" Now, I have that version number in a special include file ...
2
votes
1answer
239 views

Vertical score positioning in LilyPond

I'm writing a drum sheet template for LilyPond and I'd like to place a drum key box to the left of the header. Here is what I've done so far: LilyBin link for fiddling with my markup: http://lilybin....
2
votes
1answer
375 views

Typeset a slur from a chord's middle note

I'm trying to typeset a piano piece, where the following two chords challenge my Lilypond skills: I'm sorry for the bad quality of the printed score (which is actually the reason why I'm ...
2
votes
2answers
284 views

Dotted slur and two lyric stanzas with different amount of syllables

I have the following problem with two lyric stanzas for one voice, that have different syllables. The following example works with using an underscore at the end. \version "2.18.2" \paper { ragged-...
2
votes
1answer
122 views

How to pass `ly:music` to a `markup-command`

I am attempting to create a lilypond markup command which will display a guitar chord fingering above the chord on a stave. The code I have so far follows: #(define-markup-command (...
2
votes
2answers
360 views

Unmatched pairs for lilypond ties and slurs

In lilypond, ties and slurs are expected to come in matched pairs. I keep coming across situations where a tie or a slur aren't matched. For example: As demonstrated in the MWE below, it is possible ...
2
votes
2answers
163 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 ...
2
votes
2answers
194 views

Fret diagrams for chord backing in Lilypond

I have created the following Lilypond code: % one octave above middle c song = { \relative c'' { \time 4/4 \tempo 4 = 66 c c d e f1 f4 f c d e1 | \break e4 e f e d e ...
2
votes
1answer
67 views

Two Voices on One Staff Renders with Two Staffs

In my piece I want to have two voices on one staff, with lyrics, like in the docs. But lilypond tries to create two staves like on a ChoirStaff. \version "2.19.80" \language "english" signature = { ...
2
votes
1answer
99 views

One staff with two sections and two voices

In my piece, I want a single score in order to be able to output a single midi file. The entire piece is polyphonic with two voices. The structure should look like this: chorus in two voices (with ...
2
votes
1answer
70 views

Lilypond does not propperly render Chords when used with --png

I'm truing to compile a lilypond score with the --png option. For some reason the chords do not get compiled properly when using this option. Running lilypond without the --png option works fine. The ...
2
votes
1answer
199 views

How can I make Lilypond start lyrics on the very first note?

With Lilypond, I'm trying to notate a song with lyrics - this song has lyrics sung from the very first note of the piece. But Lilypond always shifts the words over one note each (see image). I can't ...
2
votes
1answer
106 views

Lilypond: How to Change the Vertical Position of Raised Suffixes in Chord Names?

The Problem In Lilypond, the raised suffixes in chord names – such as the “sus4” in “Csus4” – don’t seem to be proportionally changed with chord name font size changes. For example: \score { \new ...
2
votes
2answers
105 views

Staff in Staff group starts after the start of the piece

I would like to have a piece that starts with one staff and later has two. I've tried something like this MusicA = #(define-music-function (parser location inTab) (boolean?) #{ a4 b4 c2 #}) MusicB = ...
2
votes
1answer
215 views

Writing a duplet in Lilypond

How can one write a duplet consisting of two quarter notes equal to a dotted-quarter note in 6/8 time? Like this: I tried \tuplet 2/1. but the . is not accepted. And if I write this: \tuplet 2/3 {&...
2
votes
2answers
102 views

Extra note in lilypond mensural layout with petrucci-f4

I'm trying to set some 16th century music. The mensural style overrides do a pretty good job of matching the original notation, but an extra c' appears at the beginning of the staff when I call \clef ...
2
votes
1answer
251 views

How to center chord names in Lilypond

By default, Lilypond seems to use left alignment for chord names, like this: Is there a way to center the chord names above the notes to which they refer? The "/G" being so far to the right of the "C"...
2
votes
1answer
190 views

How can I force LilyPond to repeat a clef on every line of the score?

I'd like LilyPond to print the clef not only at the beginning of the score, but whenever the line breaks, at the beginning of the new line. Is this possible at all, and, how so?
2
votes
1answer
232 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 ...
2
votes
1answer
192 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 bit ...
2
votes
1answer
33 views

Second ending is shifting note values for remainder of song

I am currently working on a Christmas setlist for bagpipes. The second ending doesn't seem to count the note from the previous measure and as a result, it shifts the high a eight note to the next ...
2
votes
1answer
75 views

Lilypond Swing Feeling

How to properly write sheet music in swing-feeling with lilypond? Just for clarification: in MuseScore, this can be achieved as explained here. I'm a bit confused as I did not find anything useful ...
2
votes
1answer
101 views

How to add rest above a note in Lilypond

I'm trying to typeset the following snippet. My first idea was to add two voices here but then I would not be able to make a slur between them. Is it possible without using manual placement of notes?
2
votes
1answer
62 views

Lilypond: Avoid clash between group and instrument names

I'm absolutely new to lilypond and I find it extremely powerful. However, since it's my first time I'm using it I have a simple question. Suppose I'm writing something for two group of instruments (...
2
votes
2answers
206 views

How to show an empty chord in an anacrusus

I'm using Lilypond 2.19.55. I have an anacrusis. The staff and lyrics are fine. How do I define an empty place for a chord? If I don't, lilypond complains. If I use f4, it complains at the c:7 because ...