使用 lilypond-book 和 LaTeX 谈论音乐。
一切进展顺利。现在我正尝试使用 lilypond 代码片段简单地显示\flat
字形。
I want to show you what
\begin{lilypond}
\paper {
left-margin = .1\in
right-margin = .1\in
}
\new ChordNames \with {
\override ChordName #'font-size = #-3
} {bes}
\end{lilypond} and
\begin{lilypond}
\paper {
left-margin = .1\in
right-margin = .1\in
}
\new ChordNames \with {
\override ChordName #'font-size = #-3
} {bis}
\end{lilypond}
它看起来像这样:
该\paper
指令似乎没有起到任何作用。
一定有更简单的方法。
答案1
leadsheets 软件包完全满足我的需求。$
进入数学模式并使用这些符号的快捷方式非常方便:B$\sharp$
,但整个软件包提供了更多选项。以下是文档。
\usepackage[full]{leadsheets}
\useleadsheetslibraries{musicsymbols}
\begin{document}
\begin{changemargin}{-1cm}{-1cm}
\lilypondfile[quote,noindent]{omeimhreem.ly}
\end{changemargin}
\begin{figure}[ht]
\label{fig:Om eim hreem shreem kleem saw sat chit ekam Bramah}
\caption[Om eim hreem shreem kleem saw sat chit ekam Bramah]{The chords look complex at a glance, but it's fairly simple. You can just play B$\flat$ and D with an F note below them for the \writechord{Bb/F} chord, then move the F down one note to E which makes the \writechord{Bbsus/E}. The D minor over F is just moving the E up one and the B$\flat$ one down to A. \par
\begin{lilypond}
snippet = \relative c' {<f bes d>1 <e bes' d> <f a d> }
\score {
\snippet
\layout {
#(layout-set-staff-size 14)
}
}
\end{lilypond} }
\end{figure}
\end{document}
制作