Skip to content

Instantly share code, notes, and snippets.

@fiee
Created August 22, 2009 11:48
Show Gist options
  • Save fiee/172759 to your computer and use it in GitHub Desktop.
Save fiee/172759 to your computer and use it in GitHub Desktop.
sample lead sheet in GNU LilyPond
%{
LilyPond-Musterdokument für ein Liederblatt
diverse Anpassungen sind auskommentiert
%}
\version "2.12.0"
#(ly:set-option (quote no-point-and-click))
%#(set-global-staff-size 18)
\header{
% title = \markup{\override #'(font-name . "DelitschAntiqua") ""}
title = ""
poet = ""
% composer = "M: "
% instrument = "2 voc + git"
source = ""
maintainer = "Henning Hraban Ramm"
maintainerWeb = "http://angerweit.tikon.ch/lieder/"
lastupdated = "2009-08-22"
tagline = ""
copyright = ""
}
\paper {
%#(define fonts (make-pango-font-tree "TeX Gyre Schola" "TeX Gyre Adventor" "Courier New" (/ 18 20)))
indent = 0\cm
%line-width = 123\mm
ragged-bottom = ##t
ragged-last-bottom = ##t
}
global = {
\clef treble
\key a \minor
\time 4/4
}
akkorde = \chordmode {
}
dynamics = \relative c {
r4\mp
}
oberstimme = \relative c'' {
%\voiceOne
\repeat volta 2 {
c d e
}
\alternative {
{ f }
{ g }
}
\bar "|."
}
%{
unterstimme = \relative c' {
%\voiceTwo
\repeat volta 2 {
}
\alternative {
{ }
{ }
}
}
%}
text = \lyricmode {
%\set stanza = "1. "
la la la la
}
% Papier-Ausgabe
\score {
<<
%\override Score . TitleText #'font-name = #"DelitschAntiqua"
%\override Score . LyricText #'font-name = #"DelitschAntiqua"
%\override Score . LyricText #'font-shape = #'regular
%\override Score . LyricText #'font-size = #12 % default: 12/20 * staff-size
%\override Score . StanzaNumber #'font-name = #"Gentium"
\override Score . BarNumber #'break-visibility = #all-invisible
\context ChordNames {
\germanChords
\set chordChanges = ##t
\akkorde
}
\context Staff = Oben <<
\global
\context Voice = "eins" \oberstimme
>>
\lyricsto "eins" \new Lyrics { \text }
%{
\context Staff = Unten <<
\global
\context Voice = "zwei" \unterstimme
>>
%}
>>
\layout { }
}
\markup{}
\markup {
\fill-line {
\hspace #0.1 % Abstand vom linken Rand
\column {
\line { "1."
\column {
""
""
}
}
\hspace #0.2 % Abstand zwischen Strophen
\line { "2."
\column {
""
""
}
}
}
\hspace #0.1 % Abstand zwischen Spalten
\column {
\line { "3."
\column {
""
""
}
}
\hspace #0.2 % Abstand zwischen Strophen
\line { "4."
\column {
""
""
}
}
}
\hspace #0.1 % Abstand zum rechten Rand
}
}
% MIDI
\score {
\unfoldRepeats {
<<
\context Staff = chords <<
\set Staff.midiInstrument = "fx 4 (atmosphere)"
\context Voice = vchords {
\transpose c c, << \dynamics \akkorde >>
}
>>
\context Staff = ober <<
\set Staff.midiInstrument = "violin"
\context Voice = vober \oberstimme
>>
%{
\context Staff = unter <<
\set Staff.midiInstrument = "viola"
\context Voice = vunter \unterstimme
>>
%}
>>
}
\midi{
\context { \Score
tempoWholesPerMinute = #(ly:make-moment 120 4)
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment