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
3
votes
2 answers

Run shell script from Vim with currently open file as argument

I've just started using Vim. Here is a shell script which I use frequenty from within BBedit. #!/bin/sh filename=$(basename "${BB_DOC_PATH##*/}" .ly) directory=${BB_DOC_PATH%/*}/ cd…
cg433n
  • 729
  • 1
  • 6
  • 10
3
votes
2 answers

How to place a rest between to notes in different voices

I have this basic three-voices snippet. \score { << \new Staff { \key a \major \time 3/8 \clef "G_8" { << { e'4 r16 cis'' } \\ { a,4. } \\ { r8
Catonif
  • 33
  • 1
  • 6
3
votes
1 answer

Beaming to rests in the staff in Lilypond

How do I beam from a series of notes to a rest at the same vertical position as a rest in a way that looks appealing? Relevent snippet: \version "2.20.0" \new Staff { c'16[ c' \override Rest.staff-position = #1 r ] } What it looks like.
nat
  • 31
  • 1
3
votes
1 answer

Importing Lilypond file into a local music21 corpus

I'm hoping to run a corpus study on some local Lilypond (.ly) files, but I'm having trouble importing them into a local music21 corpus. I can only assume the answer is on the music21.converter page, but I somehow can't seem to untangle it. As…
3
votes
1 answer

In LiliyPond, how do you alter a music expression?

I have a situation where I have a recurring piece of music with only slight variations. I want to lay down a base piece as a variable. Then reuse it multiple times, each time altering it by replacing a few notes or measures. Here's a simplified…
joegomain
  • 536
  • 1
  • 5
  • 22
3
votes
0 answers

How can I control custom placement of note heads (left side, right side of stem) for chords in Lilypond

How can I explicitly control placement of note heads in a chord, as to the left or to the right of the stem, in Lilypond? I am using version 2.22.0. My application is engraving music for the Steirische Harmonika, or "button box" accordion. Roughly…
BobGaebler
  • 31
  • 2
3
votes
1 answer

How to hide measure numbers in Lilypond?

In Lilypond, by default measure numbers are printed in each new line. How to hide these numbers? Thanks
Jean-Francois T.
  • 11,549
  • 7
  • 68
  • 107
3
votes
0 answers

How to run Lilypond programatically from Python instead of calling the Lilypond executable to generate sheet music?

Python has a library called Lilypond which can be used to generate sheet music from a text based input. The documentation shows that the normal use is to create the text file, and then from a command line execute the lilypond executable with the…
Matthew Moisen
  • 16,701
  • 27
  • 128
  • 231
3
votes
1 answer

How to display chord names above staff

I'm a newbie in Lilypond and am trying to write a sheet music with chord names and a bass line. I'd like to show the chord names above the staff; however, they are actually shown below the staff. I'm writing baseChords before baseMelody, but it…
IanHacker
  • 541
  • 9
  • 27
3
votes
1 answer

Create MIDI files from Lilypond snippet

This is not a duplicate question on how to create a MIDI file from Lilypond. I have done that many times. I have created some lilypond snippets, and I want to extract MIDI from them. Normally I would do that in the \score block like this: \score { …
iep
  • 601
  • 1
  • 8
  • 23
3
votes
1 answer

What does the Lilypond "<< ... >>" construct do?

What does the << ... >> construct do? When is it appropriate? What it is called? It is used extensively in the documentation but I haven't found a definition. Thanks
Christopher Helck
  • 1,130
  • 2
  • 8
  • 23
3
votes
1 answer

Annotating score with lilypond

I'm using lilypond (2.12.3-1, on mac) and latex to write a short summary on music theory. Therefore I need to annotate a simple scale like in this example picture (I don't need the red squares): The only thing I found were the analysis brackets…
Masala
  • 401
  • 8
  • 14
3
votes
2 answers

How to get lilypond to generate glissando in midi output

My lilypond snippet generates a score, containing a glissando (slide from one pitch to another) correctly. It generates a midi file, but it doesn't sound like a slide from one pitch to another. It sounds like 2 distinct pitches. My instrument is set…
john ware
  • 153
  • 1
  • 8
3
votes
1 answer

Lilypond macro that outputs a \score block

I have the following Lilypond source file consisting of a few blocks of the following form: global = \relative { ... } Soprano = \relative { ... } Alto = \relative { ... } % ditto Tenor, Bass \score { \new StaffGroup << \new Staff << \clef "G"…
Circonflexe
  • 351
  • 1
  • 9
3
votes
0 answers

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 used. For example: \sequence a g 1 sharp should…
scaramouche
  • 461
  • 2
  • 12
1 2
3
10 11