Skip to content

Instantly share code, notes, and snippets.

@fiee
Last active April 3, 2016 06:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fiee/8171f1228cd560788e88 to your computer and use it in GitHub Desktop.
Save fiee/8171f1228cd560788e88 to your computer and use it in GitHub Desktop.
lead sheet template
%\version "2.18.0"
\include "../global.ly"
\include "articulate.ly" % for better MIDI
\header{
title = ""
poet = ""
%composer = "M: "
%arranger = "arr."
%instrument = "2 voc + git"
source = ""
%maintainer = "Henning Hraban Ramm"
%maintainerWeb = ""
lastupdated = "2016-04-03"
}
global = {
\clef treble
\key a \minor
\time 4/4
}
akkorde = \chordmode {
}
dynamics = \relative c {
r4\mp
}
oberstimme = \relative c'' {
\bar "|."
}
%{
unterstimme = \relative c' {
}
%}
textI = \lyricmode {
%\set stanza = "1. "
la la la la
}
% PDF output
\score {
<<
\context ChordNames {
\akkorde
}
\context Staff = Oben <<
\global
\context Voice = "eins" \oberstimme
>>
\lyricsto "eins" \new Lyrics { \textI }
%{
\context Staff = Unten <<
\global
\context Voice = "zwei" \unterstimme
>>
%}
>>
\layout { }
}
\markup{ \vspace #2.0 }
\markup {
\fill-line {
\hspace #0.1 % Abstand vom linken Rand
\column {
\line {
"1."
\column {
""
%"‿"
}
}
\vspace #1.0 % Abstand zwischen Strophen
\line {
"2."
\column {
""
}
}
}
\hspace #0.5 % Abstand zwischen Spalten
\column {
\line {
"3."
\column {
""
}
}
\vspace #1.0 % Abstand zwischen Strophen
\line {
"4."
\column {
""
}
}
}
\hspace #0.1 % Abstand zum rechten Rand
}
}
% MIDI
\score {
\unfoldRepeats {
<<
\set Score.midiReverbLevel = #0.5
\set Score.midiChorusLevel = #0.5
\context Staff = "chords" <<
\set Staff.midiInstrument = #"fx 4 (atmosphere)"
\context Voice = "vchords" {
\transpose c c, << \dynamics \akkorde >>
}
>>
\context Staff = ober <<
\articulate
%\set Staff.midiInstrument = #"violin"
\context Voice = "vober" \oberstimme
>>
%{
\context Staff = unter << \articulate
\set Staff.midiInstrument = #"viola"
% see http://www.lilypond.org/doc/v2.18/Documentation/internals/midi_005fcontrol_005ffunction_005fperformer
%\set Staff.midiPanPosition = #RIGHT
%\set Staff.midiBalance = #LEFT
\context Voice = vunter \unterstimme
>>
%}
\lyricsto "vober" \new Lyrics { \textI }
>>
}
\midi {
\tempo 4 = 120
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment