使用 MusixTex 构建音乐和弦

使用 MusixTex 构建音乐和弦

任务是使用 MusixTex 包在五线谱上写音乐和弦。

MWE 展示了一种将和弦中的音符放置在靠右位置的方法,以防止它与其他音符重叠。

当和弦 (Cmaj6) 中包含没有升号或降号的音符时,效果良好,但当有临时变音记号 (F7) 时,它会出现在和弦音符的垂直轴上。

此外,当和弦中有一个以上的变音记号(Bbm7)时,它们会相互对齐。

有没有办法调整临时变音记号与音符的距离,或者有没有更好的方法来编写和弦?

\documentclass[12pt]{article}
\usepackage{musixtex}
\begin{document}
\begin{music}
\instrumentnumber{1}
\setstaffs{1}{1}
\setclef{1}{6}
\meterskip5pt
\setsize{1}{\Largevalue}
\startpiece
\Notes\zchar{13}{C\textsuperscript{maj6}}\sk\loff{\zh{{J}{L}{N}}}\wh{a}\en\barre
\Notes\zchar{13}{F\textsuperscript{7}}\sk\loff{\zh{{F}{H}{J}}}\wh{_L}\en\barre
\Notes\zchar{13}{B$\flat$\textsuperscript{m7}}\sk\loff{\zh{_{I}_{K}{M}}}\wh{_a}\en\barre
\endpiece
\end{music}
\end{document}

-

答案1

对于右移音符上的临时变音记号,使用\loffset,对于移到和弦上的临时变音记号,使用\lfl\lsh。请参阅 musixtex文档了解更多信息。

\documentclass[12pt]{article}
\usepackage{musixtex}
\begin{document}
\begin{music}
\instrumentnumber{1}
\setstaffs{1}{1}
\setclef{1}{6}
\meterskip5pt
\setsize{1}{\Largevalue}
\startpiece
\Notes\zchar{13}{C\textsuperscript{maj6}}\sk\loff{\zh{{J}{L}{N}}}\wh{a}\en\barre
\Notes\zchar{13}{F\textsuperscript{7}}\sk\loff{\zh{{F}{H}{J}}}\loffset{1.0}{\fl L}\wh{L}\en\barre
\Notes\zchar{13}{B$\flat$\textsuperscript{m7}}\sk\loff{\lfl{I}\zh{I}\zh{_{K}{M}}}\loffset{1.5}{\fl a}\wh{a}\en\barre\en\barre
\endpiece
\end{music}
\end{document}

您可以将偏移量调整为所需的值。

相关内容