\begin{poster}{ % Poster Options % General poster settings % grid=yes, % Show grid to help with alignment colspacing=1em, columns=3, headerheight=0.065\textheight, background=none, % background=plain, bgColorOne=posterBackground, % Box headers: headershape=rectangle, headershade=plain, headerColorOne=boxBorder, headerFontColor=posterBackground, headerborder=open, headerfont=\textbf, %Sans Serif % Box border textborder=rectangle, borderColor=boxBorder, linewidth=1pt, % Box contents boxshade=none, % boxshade=plain, boxColorOne=boxBackground, % boxheaderheight=1.5em, } {\includegraphics[height=6em]{images/double-lily-modified3}} % eyecatcher {\Huge LilyPond - Music Typesetting} % Title { Basic usage - LilyPond Version 2.14 and above\\[0.1em] \footnotesize Cheatsheet by R. Kainhofer, Edition Kainhofer, \url{http://www.edition-kainhofer.com/} } % Authors {\includegraphics[height=6em]{images/double-lily-modified3}} % logo %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%% Now define the boxes that make up the poster %%%--------------------------------------------------------------------------- %%% Each box has a name and can be placed absolutely or relatively. %%% The only inconvenience is that you can only specify a relative position %%% towards an already declared box. So if you have a box attached to the %%% bottom, one to the top and a third one which should be in between, you %%% have to specify the top and bottom boxes before you specify the middle %%% box. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \newcommand{\imgw}{0.485} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \begin{posterbox}[name=cmdline,column=0,span=2]{Command-line usage} \colorbox{white}{\texttt{lilypond [-l LOGLEVEL] [-dSCMOPTIONS] [-o OUTPUT] [-V] FILE.ly [FILE2.ly]}} \vspace{0.5em} Common options:\vspace{-1.5em} \begin{multicols}{2} \begin{tabbing} \quad\= -{}-pdf, -{}-png, -{}-ps \= Output file format\\ \> -dbackend=eps \> Use different backend\\ \> -l LOGLEVEL \> ERR/WARN/PROG/DEBUG\\ \> -o OUTDIR \> Name of output dir/file\\ \> -V \> Verbose output\\ \> -dhelp \> Help on options \end{tabbing} \columnbreak \begin{tabbing} \= -dpreview \hspace{5.5em} \= Cropped ``preview'' image\\ \> -dlog-file=FILE \> Create .log file\\ \> -dno-point-and-click \> No Point \& Click info\\ \> -djob-count=NR \> Process files in parallel\\ \> -dpixmap-format=pngalpha \> \hspace{3.5em}Transparent PNG\\ \> -dno-delete-intermediate-files \> \hspace{3.5em}Keep .ps files\\ \end{tabbing} \end{multicols}\vspace{-2em} \end{posterbox} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \begin{posterbox}[name=basic,column=0,span=2,below=auto]{Basic Notation} % \begin{tabular}{|x{2.7cm}x{4.5cm}x{4.45cm}|}\hline \begin{tabular}{x{2.7cm}x{4.5cm}x{4.45cm}}%\hline \includegraphics[scale=\imgw]{out/notenames} & \verb+c d e f g a b+ & Note names (Dutch) \tn \includegraphics[scale=\imgw]{out/alterations.preview.pdf} & \verb+cis bes as cisis beses b b! b?+ & Alterations: \verb+-is/-es+ for sharp/flat, \verb+-isis/-eses+ for double, \verb+!+ forces, \break\verb+?+ shows cautionary accidental \tn \includegraphics[scale=\imgw]{out/relative} & \verb+\relative c' {c f d' c,}+ & Relative mode (change less than a fifth), raise/lower one octave \tn \includegraphics[scale=\imgw]{out/durations.preview} & \verb+g1 g2 g4 g8 g16 g4. g4..+ & durations (1, 2, 4, 8, 16, ...); \break append ``\verb+.+'' for dotted note \tn \includegraphics[scale=\imgw]{out/beaming} &\verb+g8 g8 g8[ g g] g8[ g16 g16]+ & Automatic and manual beaming \tn \includegraphics[scale=\imgw]{out/rest.preview.pdf} & \verb+r2 r4 r4.. r16 s4 r4+ & rests: \begin{tabular}{l}% \rowcolor{white}\rowcolors{5}{}{} \verb+r+ (like a note name)\\ \rowcolor{white} \verb+s+ for invisible rests \end{tabular} \tn \includegraphics[scale=\imgw]{out/clefs} & \verb+\clef "treble" \clef "bass"+ \verb+\clef "tenor" \clef "treble_8"+ & Clefs \tn \includegraphics[scale=\imgw]{out/time} & \verb+\time 4/4 \time 2/2+ \verb+\time 3/4 \time 3/8+ & Time signature \tn \includegraphics[scale=\imgw]{out/keys} & \verb+\key c \minor \key b \dorian+ \verb+\key c \major+ & Key \tn \includegraphics[scale=\imgw]{out/chords} & \verb+<c e g>4 <f c'> q2+ & Chords, repeated chord \tn \includegraphics[scale=\imgw]{out/ties} & \verb+c4~ c c2~ c4 <c a f>~ c+ & Tie \tn \includegraphics[scale=\imgw]{out/slurs} & \verb+c( a) c\( b( a) g f\)+ & Slur / Phrasing slur \tn \includegraphics[scale=\imgw]{out/dynamics} & \verb+g\p\< a b c\f\cresc d e\!+ & Dynamics, hairpins, text crescendo \tn \includegraphics[scale=\imgw]{out/articulations} & \verb$c4-> c-. c^| c^-_+ c\trill$ \verb+c\marcato c^"Text"+ & Articulations and text markup \tn \includegraphics[scale=\imgw]{out/bars} & \verb+\partial 8 c8 | c1 | c+ \verb+\bar"||" c \bar"|."+ & Partial measure, bar line check,\break bar lines \tn \includegraphics[scale=\imgw]{out/mmrest.preview.pdf} & \verb+R1 | R1*3 | \time 3/4 R2.*4+ & Full-/Multimeasure rests: \verb+R+ (with exact duration)\tn \includegraphics[scale=\imgw]{out/repeats} & \verb+c1 \repeat volta 2 { d }+ \verb+\alternative {{e} {f}} g+ & Repeats (with alternative endings; can be left out)\tn \includegraphics[scale=\imgw]{out/tempo-text}$\!$ & \verb+\tempo "Adagio" 4=60 c1 c c+ \verb+\mark \default c \mark "X"+ & Tempo indications, text marks \tn \includegraphics[scale=\imgw]{out/grace} & \verb+\grace d8 c4\appoggiatura d8+ \verb+c4\acciaccatura d8 c4+ & Grace notes \tn \includegraphics[scale=\imgw]{out/tuplet} & \verb+\times 2/3 {c8 d e}+ \verb+\times 4/5 {c d e d c}+ & Triplet, tuplets \tn \includegraphics[scale=\imgw]{out/parallel} & \verb+<<{a2 c4 a}\\{f4 g4 f2>>+ & Parallel music \tn % \hline \end{tabular} \end{posterbox} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \begin{posterbox}[name=syntax,column=2,aligned=cmdline,bottomaligned=cmdline]{General Syntax} \begin{tabular}{x{2.5cm}x{2.95cm}}%\hline \verb+\xxxx+ & function or variable\tn \verb+{ ... }+ & Code grouping\tn \verb+var = {...}+ & Variable assignment\tn \verb+\version "2.14.0"+$\!\!$ & LilyPond version\tn \verb+% dots+ & Comment\tn \verb+%{ ... %}+ & Block comment\tn \verb+c\...+ & Postfix-notation (notes)\tn \verb+#'(..)+, \verb+##t+, \verb+#'sym+ & Scheme list, true, symb.$\!\!\!$\tn \verb+x-..+, \verb+x^..+, \verb+x_..+ & Directions % \tn\hline \end{tabular} \end{posterbox} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \begin{posterbox}[name=hierarchy,column=2,aligned=basic]{Creating Staves, Voices and Groups} \begin{tabular}{x{0.96\textwidth}}%\hline \rowcolor{row2} \VerbatimInput[firstline=17,lastline=37]{examples/hierarchy.ly} \begin{center} \vspace{-2.5em} \includegraphics[scale=0.5]{out/hierarchy} \vspace{-1.2em}${}$ \end{center} % \\\hline \end{tabular} \end{posterbox} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \begin{posterbox}[name=contexts,column=2,below=auto,bottomaligned=basic]{Useful Contexts} % \begin{tabular}{|p{2cm}p{3.4cm}|}\hline \begin{tabular}{p{2cm}p{3.4cm}} \rowcolor{row1}\verb+Score+ & The whole score \\ \rowcolor{row2}\verb+<< ... >>+ & Staves in parallel \\ \rowcolor{row1}\verb+StaffGroup+ & Staffgroup with bracket \\ \rowcolor{row1}\verb+GrandStaff+ & Staffgroup with brace \\ \rowcolor{row1}\verb+ChoirStaff+ & Staffgroup with bracket \\ \rowcolor{row1}\verb+PianoStaff+ & Staffgroup with brace\\ \rowcolor{row2}\verb+Staff+ & One single staff \\ \rowcolor{row1}\verb+Voice+ & A voice inside a staff \\ \rowcolor{row1}\verb+CueVoice+ & Smaller voice for cues \\ \rowcolor{row2}\verb+Lyrics+ & Lyrics inside staff/voice \\ % \rowcolor{row1}\verb+FiguredBass+ & Bass figures (separate) \\ \rowcolor{row2}\verb+ChordNames+ & Chords (lead sheet) \\ \rowcolor{row1}\verb+Devnull+ & No output \\ %\hline \end{tabular} \begin{flushleft} \vspace{-0.75em} \smaller Also: \verb+Dynamics+, \verb+FiguredBass+, \verb+Tab(Staff|Voice)+,\\ \verb+Drum(Staff|Voice)+, \verb+RhythmicStaff+, \verb+FretBoards+, ... \end{flushleft} \begin{center} \vspace{-1.2em} \includegraphics[width=4.3cm]{images/context-example} \end{center} \end{posterbox} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \begin{posterbox}[name=lyrics,column=0,below=basic,above=bottom]{Adding Lyrics} \begin{tabular}{x{0.96\textwidth}}%\hline \rowcolor{row2} \VerbatimInput[firstline=12,lastline=19]{examples/lyrics.ly} \begin{center} \vspace{-3.2em} \includegraphics[scale=0.5]{out/lyrics} \vspace{-1.2em}${}$ \end{center} % \\\hline \end{tabular} \end{posterbox} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \begin{posterbox}[name=simple_markup,column=1,below=basic,above=bottom]{Writing text and markup} \begin{tabular}{x{0.96\textwidth}}%\hline \rowcolor{row2} {\smaller \VerbatimInput[firstline=2,lastline=9]{examples/writing_text.ly} } \begin{center} \vspace{-2em} \includegraphics[scale=0.55]{out/writing_text} \vspace{-1.2em}${}$ \end{center} % \\\hline \end{tabular} \end{posterbox} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \begin{posterbox}[name=links,column=2,below=contexts,above=bottom]{Links} \begin{list}{}{\leftmargin=0.em} \item LilyPond Homepage:\\ ${}$\qquad\url{http://www.lilypond.org/} \item LilyPond Snippet Repository (LSR):\\ ${}$\qquad\url{http://lsr.dsi.unimi.it/} \item User Mailing list:\\ ${}$\qquad\url{lilypond-user@gnu.org} \end{list} \vspace{0.6em} \smaller Cheatsheet by R. Kainhofer, License: \href{http://creativecommons.org/licenses/by-nc/3.0/}{\raisebox{1.7ex-\height}{\includegraphics[width=1.5cm]{images/cc-by-nc}}}\\[-0.2em] Creative Commons Attribution-NonCommercial 3.0 \end{posterbox} \end{poster}