![musixtex 中的行距](https://linux22.com/image/411202/musixtex%20%E4%B8%AD%E7%9A%84%E8%A1%8C%E8%B7%9D.png)
我正在用 musixtex 为西班牙教堂的礼拜仪式写音乐。这首歌有两节,结尾处使用了 voltas。因此,两行之间的空间不够,歌词和 voltas 重叠。这是我的代码:
\documentclass{article}
\usepackage{musixtex}
\input{musixlyr}
\begin{document}
\begin{music}
\instrumentnumber{1}
\setstaffs1{1}
\nobarnumbers
\resetlyrics
\generalmeter{\meterfrac{4}{4}}
\generalsignature{-1}
\setlyrics{padre1}{Pa-dre nues-tro tu {que es}-tás en los {que a}-man la ver-dad. Has {que el} rei-no que por ti se dio lle-gue pro-{nto a} nues-tro co-ra-zón, {que el} a-mor,__ que tu hi-jo__ nos de-jó, e-{{se a}}-mor. Rei-ne ya_ en no-so-tros. }
\setlyrics{padre2}{{Y en} el pan de {la u}-ni-dad, Cris-to da-nos tu la paz y ol-vi-da-te de nues-tro mal, {si ol}-vi-da-mos el de los de-más, no per-mi-tas,_ que cai-ga-mos_ en ten-ta-ción, oh se-ñor, {{}} {{}} {{}} {{}} {{}} {{}} {{}} {{}} y ten pie-dad del mun-do.}
\assignlyrics1{padre1,padre2}
\resetlyrics
\startpiece
%\znotes\llyr\lyroffset{-1}\lyr
\NOtes\qp\Dqbu dd\Dqbu ff\Dqbl hh\en\bar
\NOtes\wh{g}\en\bar
\NOtes\qp\Dqbu cc \Dqbu ee\Dqbu gg\en\bar
\NOTes\wh{f}\en\bar
\NOtes\qp\Dqbu ff \Dqbu hh\Dqbl jj\en\bar
\NOtes\qlp{k}\cl{k}\hl{j}\en\bar
\NOtes\qp\Dqbu ff \Dqbu hh\Dqbl jj\en\bar
\NOtes\qlp{k}\cl{k}\hl{j}\en\setmeter1{{\meterfrac{2}{4}}}\changecontext
\NOtes\qp\Dqbu ff\en\setmeter1{{\meterfrac{4}{4}}}\changecontext
\NOtes\isluru0k\cl{k}\cl{k}\tslur0k\hl{k}\Dqbl kl\en\bar
\NOtes\cl{m}\isluru0m\cl{m}\qlp{m}\tslur0m\cl{m}\cl{l}\cl{k}\en\bar
\NOtes\hlp{j}\Dqbl kj\en\bar
\NOtes\wh{h}\en
\Setvolta{1}
\setmeter1{{\meterfrac{2}{4}}}\changecontext
%ENDING1
\NOtes\qp\Dqbu hh\en\setmeter1{{\meterfrac{4}{4}}}\changecontext
\NOTes\hlp{j}\cl{j}\cu{e}\en\bar
\NOtes\cu{ef}\hu{d}\en
\Setvolta{2}\endvoltabox\rightrepeat
%ENDING2
\NOtes\verses\lyricsoff\ds\cu{h}\Dqbu hh\en\setmeter1{{\meterfrac{4}{4}}}\changecontext
\NOTes\wh{j}\en\bar
\NOtes\cu{ef}\hu{d}\en
\Endpiece
\end{music}
\end{document}
我已经尝试过这个\lyrraise{}{}
命令,但结果是歌词和上面的音乐之间会有空隙。歌词和 voltas 仍然重叠。相反,我希望空间位于歌词下方,以便在歌词和下一行音乐之间创建额外的空间。这也更有意义,因为歌词属于上面的音乐。任何帮助都将不胜感激 :)
编辑:代码已完成,可以按原样编译。
答案1
添加两条线来调整垂直空间
\staffbotmarg7\Interligne % set verticle space in one staff score
\setsongraise1{5mm} % raise verticle space of the lyrycs
完整脚本
\documentclass{article}
\usepackage{musixtex}
\input{musixlyr}
\begin{document}
\begin{music}
\instrumentnumber{1}
\staffbotmarg7\Interligne % set verticle space in one staff score
\setsongraise1{5mm} % raise verticle space of the lyrycs
%\setinterinstrument0{5\Interligne}% set verticle space in multi staff score
%\lyrraise{1}{b10pt}
%\hardspace{4mm}% for horizon space
\setstaffs1{1}
\nobarnumbers
\resetlyrics
\generalmeter{\meterfrac{4}{4}}
\generalsignature{-1}
\setlyrics{padre1}{Pa-dre nues-tro tu {que es}-tás en los {que a}-man la ver-dad. Has {que el} rei-no que por ti se dio lle-gue pro-{nto a} nues-tro co-ra-zón, {que el} a-mor,__ que tu hi-jo__ nos de-jó, e-{{se a}}-mor. Rei-ne ya_ en no-so-tros. }
\setlyrics{padre2}{{Y en} el pan de {la u}-ni-dad, Cris-to da-nos tu la paz y ol-vi-da-te de nues-tro mal, {si ol}-vi-da-mos el de los de-más, no per-mi-tas,_ que cai-ga-mos_ en ten-ta-ción, oh se-ñor, {{}} {{}} {{}} {{}} {{}} {{}} {{}} {{}} y ten pie-dad del mun-do.}
\assignlyrics1{padre1,padre2}
\resetlyrics
\startpiece
%\znotes\llyr\lyroffset{-1}\lyr
\NOtes\qp\Dqbu dd\Dqbu ff\Dqbl hh\en\bar
\NOtes\wh{g}\en\bar
\NOtes\qp\Dqbu cc \Dqbu ee\Dqbu gg\en\bar
\NOTes\wh{f}\en\bar
\NOtes\qp\Dqbu ff \Dqbu hh\Dqbl jj\en\bar
\NOtes\qlp{k}\cl{k}\hl{j}\en\bar
\NOtes\qp\Dqbu ff \Dqbu hh\Dqbl jj\en\bar
\NOtes\qlp{k}\cl{k}\hl{j}\en\setmeter1{{\meterfrac{2}{4}}}\changecontext
\NOtes\qp\Dqbu ff\en\setmeter1{{\meterfrac{4}{4}}}\changecontext
\NOtes\isluru0k\cl{k}\cl{k}\tslur0k\hl{k}\Dqbl kl\en\bar
\NOtes\cl{m}\isluru0m\cl{m}\qlp{m}\tslur0m\cl{m}\cl{l}\cl{k}\en\bar
\NOtes\hlp{j}\Dqbl kj\en\bar
\NOtes\wh{h}\en
\Setvolta{1}
\setmeter1{{\meterfrac{2}{4}}}\changecontext
%ENDING1
\NOtes\qp\Dqbu hh\en\setmeter1{{\meterfrac{4}{4}}}\changecontext
\NOTes\hlp{j}\cl{j}\cu{e}\en\bar
\NOtes\cu{ef}\hu{d}\en
\Setvolta{2}\endvoltabox\rightrepeat
%ENDING2
\NOtes\verses\lyricsoff\ds\cu{h}\Dqbu hh\en\setmeter1{{\meterfrac{4}{4}}}\changecontext
\NOTes\wh{j}\en\bar
\NOtes\cu{ef}\hu{d}\en
\Endpiece
\end{music}
\end{document}
你应该使用 3 遍来编译,可以使用makefile
# Author: [email protected]
# Date: 05-04-2018
# MusiXTeX musixdoc tutorial example makefile
## First, set the main filename = YOUR_TEX_FILE_NAME_WITHOUT_.TEX
# $ make, to run commands in this file
# $ make read, to read the pdf file
# $ make clean, to clean the inter file
filename=musicnotes
all:
latex ${filename}
musixflx ${filename}
bibtex ${filename}||true
latex ${filename}
makeindex ${filename}
latex ${filename}
latex ${filename}
dvips -e0 ${filename}
ps2pdf ${filename}.ps
read:
evince ${filename}.pdf &
oread:
okular ${filename}.pdf
clean:
-rm -f *.aux
-rm -f *.ps
-rm -f *.dvi
-rm -f *.idx
-rm -f *.ilg
-rm -f *.ind
-rm -f *.mx1
-rm -f *.mx2
-rm -f *.log
-rm -f *.toc
-rm -f *.bbl
-rm -f *.blg
-rm -f *.out
-rm -f make/bib