需要提高儿童卡洪鼓乐谱:
- 为注释和五线谱添加颜色。
- 配置歌词的高低,以方便阅读。
- 改善端栏。
起始代码如下:
\documentclass{article}
\usepackage{xcolor}
\usepackage{musicography}
\usepackage{musixtex}
\input{musixlyr}
\input {musixcho}
\input {musixdat}%fecha
\input {musixfll}
\input {musixgre}%gregoriano
\input {musixper}%percusión
\input {musixppff}
\input {musixstr}
\input {musixvbm} % experimental vectorized beams
\input {musixdbr} % lineas de barras punteadas, discontinuas y arbitrariamente discontinuas
\input {musixbm} % compatibilidad garrapateas con ganchos o con barras
\input {musixbbm} % compatibilidad semi garrapateas con ganchos o con barras
%\input {musixps}
\newlength{\musicwidth}%new
\setlength{\musicwidth}{0.75\textwidth}%new, can be set for each instance of a figure environment
\begin{document}
Cajon percussion for Kids:
\begin{music}
\resetlyrics
\font\A=phvb8t at 10pt% added for letter type.
\setlyrics{Vals1}{D {I} D I D D {I} D {I}}%hand indication
\setlyrics{Vals2}{R {L} R L R R {L} R {L}}%hand indication
\setsongraise1{-3mm}
\instrumentnumber{1}
\setclefsymbol{1}{\drumclef}%
\nostartrule
\generalmeter{\meterfrac{3}4} %Compás en 3/4
\setlines{1}{2}
\hsize=\musicwidth
\nobarnumbers
\sepbarrules%
\startpiece% g k
\A\assignlyrics1{Vals1,Vals2}% added to place handindication
\Notes\qu k\ibu0h7\qb0{g}\tbu0\qb0{k}\qu k\en\bar%
\Notes\ibu0k0\qb0{k}\tbu0\qb0{k} \ibu1h7\qb1{g}\tbu1\qb1{k}\ql g\en%
\Endpiece
\end{music}
\end{document}
答案1
使用包后,xcolor
您还可以使用命令\textcolor
,使用定义的标准颜色或根据需要定义。
作为测试,我定义了一个新命令\pnk{}
,并将其用于文本和注释。如您所见,它与歌词包有一些交互。逐个音符排版时,您可能会做得更好,即逐个音符排版这两个声音。我会用两个新命令替换歌词,使用 zchar 和类似命令将文本放置在需要的位置。
使用这些方法您应该能够解决该问题的第一部分和第二部分。
\documentclass{article}
\usepackage{xcolor}
\usepackage{musicography}
\usepackage{musixtex}
\input{musixlyr}
\input {musixcho}
\input {musixdat}%fecha
\input {musixfll}
\input {musixgre}%gregoriano
\input {musixper}%percusión
\input {musixppff}
\input {musixstr}
\input {musixvbm} % experimental vectorized beams
\input {musixdbr} % lineas de barras punteadas, discontinuas y arbitrariamente discontinuas
\input {musixbm} % compatibilidad garrapateas con ganchos o con barras
\input {musixbbm} % compatibilidad semi garrapateas con ganchos o con barras
%\input {musixps}
\newlength{\musicwidth}%new
\setlength{\musicwidth}{0.75\textwidth}%new, can be set for each instance of a figure environment
% new
\newcommand\pnk[1]{\textcolor{magenta}{#1}}
\begin{document}
\pnk{Cajon percussion for Kids:}% just a test
\vspace{10pt}
\begin{music}
\resetlyrics
\font\A=phvb8t at 10pt% added for letter type.
\setlyrics{Vals1}{D {I} D I D D {I} D {I}}%hand indication
\setlyrics{Vals2}{R {L} R L R R {L} R {L}}%hand indication
\setsongraise1{-3mm}
\instrumentnumber{1}
\setclefsymbol{1}{\drumclef}%
\nostartrule
\generalmeter{\meterfrac{3}4} %Compás en 3/4
\setlines{1}{2}
\hsize=\musicwidth
\nobarnumbers
\sepbarrules%
\startpiece% g k
\A\assignlyrics1{Vals1,Vals2}% added to place handindication
\Notes\pnk{\qu k}\ibu0h7\qb0{g}\tbu0\pnk{\qb0{k}}\qu k\en\bar%
\Notes\ibu0k0\qb0{k}\tbu0\qb0{k} \ibu1h7\qb1{g}\tbu1\qb1{k}\ql g\en%
\Endpiece
\end{music}
\end{document}
答案2
据我所记得,颜色与方框一起使用,这使得与其他水平间距一起使用变得棘手。我所做的是定义必要的,\zcharnotes
而不是这次与歌词一起使用。这似乎有点费力,但似乎有效。在 musixflx 程序之后,结束行消失了。我看了你的预期输出。因此,我使用 分开了音符\cl
。由于使用方框,您必须在第二小节向后跳过,然后在放置第二个 D 后再次向前跳过。也许有一种方法可以消除颜色框后的扩展,但我不熟悉这种编程。我是 MusixTex 的用户……
\documentclass{article}
\usepackage{xcolor}
\usepackage{musicography}
\usepackage{musixtex}
\input{musixlyr}
\input {musixcho}
\input {musixdat}%fecha
\input {musixfll}
\input {musixgre}%gregoriano
\input {musixper}%percusión
\input {musixppff}
\input {musixstr}
\input {musixvbm} % experimental vectorized beams
\input {musixdbr} % lineas de barras punteadas, discontinuas y arbitrariamente discontinuas
\input {musixbm} % compatibilidad garrapateas con ganchos o con barras
\input {musixbbm} % compatibilidad semi garrapateas con ganchos o con barras
%\input {musixps}
\newlength{\musicwidth}%new
\setlength{\musicwidth}{0.75\textwidth}%new, can be set for each instance of a figure environment
% new
\newcommand\pnk[1]{\textcolor{magenta}{#1}}%
\newcommand\grn[1]{\textcolor{green}{#1}}%
\begin{document}
\pnk{Cajon percussion for Kids:}% just a test
\begin{music}
\resetlyrics
\font\A=phvb8t at 10pt% added for letter type.
\def\Dp{\zcharnote s{\A\pnk{D}}}%
\def\Ip{\zcharnote s{\A\pnk{I}}}%
\def\Ig{\zcharnote I{\A\grn{I}}}%
\def\Dg{\zcharnote I{\A\grn{D}}}%
\def\Lg{\zcharnote C{\A\grn{L}}}%
\def\Rg{\zcharnote C{\A\grn{R}}}%
\def\Lp{\zcharnote C{\A\pnk{L}}}%
\def\Rp{\zcharnote C{\A\pnk{R}}}%
\instrumentnumber{1}%
\setclefsymbol{1}{\drumclef}%
\nostartrule
\generalmeter{\meterfrac{3}4} %Compás en 3/4
\setlines{1}{2}%
\hsize=\musicwidth
\nobarnumbers
\sepbarrules%
\startpiece% g k
\Notes\Dp\Rp\pnk{\qu k}\Lg\Ig\grn{\cl g}\Rp\Dp\pnk{\cu k}\Lp\Ip\pnk{\qu k}\en\bar%
\Notes\Dp\Rp\pnk{\ibu0k0\qb0k\tbu0\qb0k}\bsk\Dp\Rp\sk\Ig\Lg\grn{\cl g}\Dp\Rp\pnk{\cu k}\Ig\Lg\grn{\ql g}\en%
\Endpiece
\end{music}
\end{document}
答案3
当使用 \textcolor 时,歌词会向右移动,如代码所示:
\documentclass{article}
\usepackage{xcolor}
\usepackage{musicography}
\usepackage{musixtex}
\input{musixlyr}
\input {musixcho}
\input {musixdat}%fecha
\input {musixfll}
\input {musixgre}%gregoriano
\input {musixper}%percusión
\input {musixppff}
\input {musixstr}
\input {musixvbm} % experimental vectorized beams
\input {musixdbr} % lineas de barras punteadas, discontinuas y arbitrariamente discontinuas
\input {musixbm} % compatibilidad garrapateas con ganchos o con barras
\input {musixbbm} % compatibilidad semi garrapateas con ganchos o con barras
%\input {musixps}
\newlength{\musicwidth}%new
\setlength{\musicwidth}{0.75\textwidth}%new, can be set for each instance of a figure environment
% new
\newcommand\pnk[1]{\textcolor{magenta}{#1}}
\newcommand\grn[1]{\textcolor{green}{#1}}
\begin{document}
\pnk{Cajon percussion for Kids:}% just a test
\begin{music}
\resetlyrics
\font\A=phvb8t at 10pt% added for letter type.
\setlyrics{Vals1}{D I D I D D I D I}%hand indication
\setlyrics{Vals2}{R L R L R R L R L}%hand indication
\setsongraise1{-3mm}
\instrumentnumber{1}
\setclefsymbol{1}{\drumclef}%
\nostartrule
\generalmeter{\meterfrac{3}4} %Compás en 3/4
\setlines{1}{2}
\hsize=\musicwidth
\nobarnumbers
\sepbarrules%
\startpiece% g k
\A\assignlyrics1{Vals1,Vals2}% added to place handindication
%\Notes\qu k\ibu0h7\qb0{g}\tbu0\qb0{k}\qu k\en\bar%
%\Notes\ibu0k0\qb0{k}\tbu0\qb0{k} \ibu1h7\qb1{g}\tbu1\qb1{k}\ql g\en%
\Notes\pnk{\qu k}\grn{\ibu0h7\qb0{g}\tbu0\pnk{\qb0{k}}}\pnk{\qu k}\en\bar%
\Notes\hsk\pnk{\ibu0k0\qb0{k}\tbu0\qb0{k}} \grn{\ibu1h7\qb1{g}\tbu1\pnk{\qb1{k}}}\grn{\ql g}\en%
\Endpiece
\end{music}
\end{document}