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
203 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
269 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
423 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
758 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
2answers
37 views

How to split multi-voice lilypond scores to multiple midi outputs (e.g. for choir practice)

After spending long enough learning lilypond and writing scores for multiple voices, I've often run into the problem of generating individual voice midi/mp3 files from the score. I was surprised to ...
2
votes
2answers
101 views

Lilypond v2.19 - How do I overlap noteheads?

I would like to have the notes overlap each other, so that only the stems are turned upward. Here is the lilybin link http://lilybin.com/fr648f/1
2
votes
1answer
114 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
415 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
1answer
1k 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
109 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
2answers
37 views

Lilypond - Convert number to markup

I would like to create a shorthand for a compound markup command, say MVE #(define-markup-command (shorthand layout props text) (number-or-markup?) (interpret-markup layout props #{ \markup \bold \...
2
votes
1answer
61 views

Use of fractional time signatures in Lilypond

I am trying to recreate this time signature of 2 and a half over 4 in lilypond. I cannot figure out how to get the fraction in there, and for this project, I am required to keep as many engraving ...
2
votes
3answers
50 views

Correct way to hide/suppress the sustainOff symbol?

In Lilypond, I'm engraving a chunk of piano music which uses the Ped. symbol, but does not use the corresponding * to end the pedalling. Here's a chunk of code which gets the right visual result: \...
2
votes
1answer
42 views

How to turn off lilypond automatic staff width

So if I engrave music with LilyPond, and I write a few bars, the staves may initially stop in the middle of page (horizontally speaking). I write some more, and eventually, it reach the edge of the ...
2
votes
1answer
96 views

How do I get this in Lilypond? [closed]

Can you please help me on how to get this notation in Lilypond please? Thank you.
2
votes
1answer
120 views

Vertical space between stanzas

I have some songs with several stanzas. I would like to control the vertical space between the first and second stanza and the second and third stanza, .... individually. How is that possible by ...
2
votes
1answer
58 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
320 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
43 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
1answer
215 views

Lilypond - Repeat with Partial Mesaure at the End

This demonstrates the problem: \relative c' {c4 d e f d e \repeat volta 2 { f g a, b c d } \alternative { {e2} {e2~e2} }} (And here's a picture: I need the first ending to be half a measure, ...
2
votes
2answers
105 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
158 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
228 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
2answers
428 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
664 views

How to define a Lilypond function to return set of notes given a pitch?

I'm working on a song with a repetitive rhythm that changes pitch. As this would normally involve a large amount of repeated typing, I would like to define a Lily pond function to do this for me. I'm ...
2
votes
3answers
128 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
52 views

New to Lilypond, I want a guitar chord box above each bar of the staff , does anyone have a template?

I am new to Lilypond, I want to print blank guitar chord box(es) above each of the 32 bars of the blank staff , does anyone have a template?
2
votes
1answer
67 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
96 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
51 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
2answers
240 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
91 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
400 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
87 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
111 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
427 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
345 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
145 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
167 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
1answer
60 views

How to separate introduction from main theme with Lilypond

I'm trying to reproduce a music sheet with Lilypond, and it has an introduction separate from the main theme, but still on the same "line / staff / group of staves", just like so : And I don't know ...
2
votes
1answer
48 views

Can't make my (phrasing) slur end where I want it to with LilyPond

I am trying to write a phrasing slur on a << {} \\ {} >> construction, and it seems like the slur doesn't end where it should. My code is as follows : %%%%%%%%%% %% VERSION %%%%%%%%%% \...
2
votes
2answers
238 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
75 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
105 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
73 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
230 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
136 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
115 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
233 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 {&...

1
3 4
5
6 7