\usepackage[rflt]{floatflt}
%\usepackage{showframe}
%\sloppy
-\def\postMudelaExample{\setlength{\parindent}{1em}}
+\def\postMudelaExample{\setlength{\parindent}{3.25ex}}
\title{Mudela-book tutorial}
\begin{document}
\maketitle
will make the music as short as possible but without breaking the
line. Here is a well know harmonic progression:
\begin{mudela}[veryverbatim, intertext="produce a well known harmonic progression:"]
-\context Voice { <c' e' g'> <b d' g'> <c'2 e' g'>}
+ <c' e g> <b d g> <c2 e g>
\end{mudela}
If you want to place music examples in the text,
\begin{mudela}[eps]
-\context Voice { <c' e' g'> <b d' g'> <c'2 e' g'>}
+ <c' e g> <b d g> <c2 e g>
\end{mudela}
, you can use the \verb|eps| option. This will create the music as
eps graphics and include it into the document with the
The code used look like this:
\begin{verbatim}
\begin{mudela}[eps]
-\context Voice { <c' e' g'> <b d' g'> <c'2 e' g'>}
+ <c' e g> <b d g> <c2 e g>
\end{mudela}
\end{verbatim}
environment.
You can also use \verb|mudelafile| (on a separate line, FIXME), to
-include another file.
+include another file. Files with name ending with \verb|.sly|
\mudelafile{testje.fly}
\section{Fontsize options}
You can use all lilypond fontsizes in mudela-book.
% LONG line just to test multiple \mudela on one line
-The default 16pt fontsize, \mudela{<c' e' g'>}, is probably to big to be included in the middle of the text. 11pt, \mudela[11pt]{<c' e' g'>} or 13pt, \mudela[13pt]{<c' e' g'>} is probably better.
+The default 16pt fontsize, \mudela{<c' e g>}, is probably to big to be included in the middle of the text. 11pt, \mudela[11pt]{<c' e g>} or 13pt, \mudela[13pt]{<c' e g>} is probably better.
The code can look like this:
\begin{verbatim}
\begin{mudela}[13pt, eps]
-<c' e' g'>
+<c' e g>
\end{mudela}
\end{verbatim}
\section{User defined commands}
There is an even shorter way to write small musical fragments. This
-triad, \mudela{<c' e' g'>}, was created with this code:
-\verb|\mudela{<c' e' g'>}|
+triad, \mudela{<c' e g>}, was created with this code:
+\verb|\mudela{<c' e g>}|
Mudela-book defines the \verb|\mudela| command, and let you define
your own commands in a file specified by
}
\end{mudela}
+\section{More options}
+\begin{itemize}
+\item The \verb|singleline| option set \verb|linewidth| to -1.0.
+\item The \verb|multiline| option set \verb|linewidth| to a value letting
+the music be aligned to the right margin. The music can span several
+lines.
+\end{itemize}
+
\section{Just in case...}
The options \verb|fragment| and \verb|nonfragment| will override
-mudela-book when it scans the mudela code to see if it is staff
+mudela-book when it scans the mudela code to see if it is voice
contents or complete code. This might be useful if mudela-book choose
wrong.
This was all options to \verb|\begin{mudela}|. The rest of the
document will show some ways you can use mudela in
\LaTeX~documents. It will also act as a simple test-suite for
-mudela-book. You \marginpar{
+mudela-book. You
+\marginpar{
marginpar!
\begin{mudela}[eps, 11pt]
\relative c'' {\key c \minor; r4 [g8 g g] es2}
\hline
dur &
-\begin{mudela}[eps]
-\context Voice {<c' e' g'>}
+\begin{mudela}[eps, fragment]
+<c' e g>
\end{mudela}
\\
\hline moll &
\begin{mudela}[eps]
-\context Voice {<c' ees' g'>}
+<c' es g>
\end{mudela}
\\
\hline forminsket &
\begin{mudela}[eps]
-\context Voice {<c' es' ges'>}
+<c' es ges>
\end{mudela}
\\
\hline forstørret &
\begin{mudela}[eps]
-\context Voice {<c' e' gis'>}
+<c' e gis>
\end{mudela}
\\
\hline
increased between the lines where you have music printed with the
smallest font size.
-Since the version number is low, you should be careful not to
+Since the version number is quite low, you should be careful not to
mix braces that belongs to mudela-book and \LaTeX~on the same
line. The following code will probably break:
environment when you don't want \LaTeX~to do any linebreaking)
+\end{document}
+
+
+
+
-\end{document}