\usepackage{graphics}
%\usepackage{showframe}
\sloppy
-\def\postMudelaExample{\normalsize}
+\def\postMudelaExample{}
\begin{document}
%\printparam
Mudela-book is a script that process your \LaTeX ~file and
+with great help from GNU LilyPond
translates blocks of mudela code it finds inside \verb|mudela|
environment to tex or eps graphics. It then creates a new
file that can be sent through \LaTeX~ to create a document with
The code above produces this music:
-\begin{mudela}[fragment, floating]
- \relative c' {c4 d e f | g2 g}
+\begin{mudela}[fragment]
+ \relative c' {c4 d e f | g2 g }
\end{mudela}
-
The parameter \verb|fragment| means that mudela-book will insert
some red tape for you. There are one thing to remember. Currently
\verb|fragment|s don't know about margins and line width, so if
music. The parameter will probably not be visible in later versions
of mudela-book.
-If you use \verb|\default_paper| as your paper, mudela-book will
-(I hope) adjust the music to reach from the left to the right margin.
+There are some conventions to follow to make the music respect
+margins. You have to use \verb|\default_paper| as your paper,
+to make mudela-book adjust the music to reach from the
+left to the right margin.
+
The following code
\begin{mudela}[verbatim]
\score{
\notes\relative c'{c d e f | g2 g | a4 a a a | g1 |
f4 f f f | e2 e | d4 d d d | c1}
- \paper{\default_paper}
+ \paper{}
}
\end{mudela}
gives this music:
\score{
\notes\relative c'{c d e f | g2 g | a4 a a a | g1 |
f4 f f f | e2 e | d4 d d d | c1}
- \paper{\default_paper}
+ \paper{}
}
\end{mudela}
the \verb|linewidth| variable to, let's say 8 cm. The paper
definition
\begin{verbatim}
-\paper{\default_paper
+\paper{
linewidth=8.\cm;}
\end{verbatim}
makes this score:
\score{
\notes\relative c'{c d e f | g2 g | a4 a a a | g1 |
f4 f f f | e2 e | d4 d d d | c1}
- \paper{\default_paper
+ \paper{
linewidth=8.\cm;}
}
\end{mudela}
You can also,
\begin{mudela}[fragment, floating]
\relative c'{c c g' g | a a g2}
-\end{mudela}
-~include music in the middle of your text. Just give the option
+\end{mudela}
+, include music in the middle of your text. Just give the option
\verb|floating| to \verb|\begin{mudela}|
Oh, you think the notes are to big to be in the middle of all those
\begin{mudela}[fragment, floating, 11pt]
\relative c'{c c g' g | a a g2}
\end{mudela}
-~is better? If you have a lot of small music examples like this
+, is better? If you have a lot of small music examples like this
in the middle of your text, you might get a nicer look by using
``double'' line spacing. Put the \verb|\linespread{1.6}| command
into the preamble of your document. Then the line spacing will not
\score{
\notes\relative c'{c d e f | g2 g | a4 a a a | g1 |
f4 f f f | e2 e | d4 d d d | c1}
- \paper{\default_paper}
+ \paper{}
}
\end{mudela}
produces
\score{
\notes\relative c'{c d e f | g2 g | a4 a a a | g1 |
f4 f f f | e2 e | d4 d d d | c1}
- \paper{\default_paper}
+ \paper{}
}
\end{mudela}
\end{mudela}
Verbatim environments will also ignore the page margins. That is
a feature of \LaTeX.
-\end{document}
\ No newline at end of file
+\end{document}