Created
April 18, 2014 21:17
-
-
Save dominicus/11064809 to your computer and use it in GitHub Desktop.
Mutopia template for keyboard solo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%%-------------------------------------------------------------------- | |
% The Mutopia Project | |
% LilyPond template for keyboard solo piece | |
%%-------------------------------------------------------------------- | |
\version "2.18.0" | |
%--------------------------------------------------------------------- | |
%--Paper-size setting must be commented out or deleted upon submission. | |
%--LilyPond engraves to paper size A4 by default. | |
%--Uncomment the setting below to validate your typesetting | |
%--in "letter" sizing. | |
%--Mutopia publishes both A4 and letter-sized versions. | |
%--------------------------------------------------------------------- | |
% #(set-default-paper-size "letter") | |
%--Default staff size is 20 | |
#(set-global-staff-size 20) | |
\paper { | |
top-margin = 8\mm %-minimum top-margin: 8mm | |
top-markup-spacing.basic-distance = #6 %-dist. from bottom of top margin to the first markup/title | |
markup-system-spacing.basic-distance = #5 %-dist. from header/title to first system | |
top-system-spacing.basic-distance = #12 %-dist. from top margin to system in pages with no titles | |
last-bottom-spacing.basic-distance = #12 %-pads music from copyright block | |
ragged-bottom = ##f | |
ragged-last-bottom = ##f | |
} | |
%--------------------------------------------------------------------- | |
%--Refer to http://www.mutopiaproject.org/contribute.html | |
%--for usage and possible values for header variables. | |
%--------------------------------------------------------------------- | |
\header { | |
title = "Title of Piece" | |
composer = "John Doe (1685-1750)" | |
opus = "Opus 0" | |
%piece = "Left-aligned header" | |
date = "1741" | |
style = "Baroque" | |
source = "Bach-Gesellschaft Edition 1853 Band 3" | |
maintainer = "Eric Contributor" | |
maintainerEmail = "eric (at) domain.com" | |
license = "Creative Commons Attribution-ShareAlike 4.0" | |
mutopiatitle = "Goldberg Variations - 19" | |
mutopiaopus = "Op.0" | |
mutopiacomposer = "DoeJ" | |
%--A list of instruments can be found at http://www.mutopiaproject.org/browse.html#byInstrument | |
%--Multiple instruments are separated by a comma | |
mutopiainstrument = "Piano" | |
% Footer, tagline, and copyright blocks are included here for reference | |
% and spacing purposes only. There's no need to change these. | |
% These blocks will be overridden by Mutopia during the publishing process. | |
footer = "Mutopia-2001/01/01-0" | |
copyright = \markup { \override #'(baseline-skip . 0 ) \right-column { \sans \bold \with-url #"http://www.MutopiaProject.org" { \abs-fontsize #9 "Mutopia " \concat { \abs-fontsize #12 \with-color #white \char ##x01C0 \abs-fontsize #9 "Project " } } } \override #'(baseline-skip . 0 ) \center-column { \abs-fontsize #12 \with-color #grey \bold { \char ##x01C0 \char ##x01C0 } } \override #'(baseline-skip . 0 ) \column { \abs-fontsize #8 \sans \concat { " Typeset using " \with-url #"http://www.lilypond.org" "LilyPond " \char ##x00A9 " " 2014 " by " \maintainer " " \char ##x2014 " " \footer } \concat { \concat { \abs-fontsize #8 \sans { " " \with-url #"http://creativecommons.org/licenses/by-sa/3.0/" "Creative Commons Attribution ShareAlike 3.0 (Unported) License " \char ##x2014 " free to distribute, modify, and perform" } } \abs-fontsize #13 \with-color #white \char ##x01C0 } } } | |
tagline = ##f | |
} | |
%--------Definitions | |
global = { | |
\key c \major | |
\time 4/4 | |
} | |
upperStaff = \relative c'' { | |
\repeat unfold 50 c1 %sample music | |
} | |
lowerStaff = \relative c { | |
\repeat unfold 50 c1 %sample music | |
} | |
%-------Typeset music and generate midi | |
\score { | |
\context PianoStaff << | |
%-Midi instrument values at | |
% http://lilypond.org/doc/v2.18/Documentation/snippets/midi#midi-demo-midiinstruments | |
\set PianoStaff.midiInstrument = "acoustic grand" | |
\new Staff = "upper" { \clef treble \global \upperStaff } | |
\new Staff = "lower" { \clef bass \global \lowerStaff } | |
>> | |
\layout{ } | |
\midi { \tempo 4 = 70 } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'd recommend commenting out the paper variable settings,
ragged-bottom
andragged-last-bottom
, until typesetting is complete.