Musixtex 中的 Crescendo 作为文本

Musixtex 中的 Crescendo 作为文本

需要将渐强效果实现为文本,基本代码如下:

\documentclass{report}

\usepackage{musixtex}

\begin{document}

\begin{music}
    \font\A=phvb8t at 8pt% added for letter type.
    \instrumentnumber{1}
    \nobarnumbers
    \setclef1\treble
    \parindent0mm
    \nostartrule
    \def\writebarno{\A\the\barno}
    \scale{1.0}
    \startbarno=1
    \startpiece 
    %1er compás - 1ra línea
    \NOtes\isluru0j\hl{j}\hl{l}\en\bar
    %2do compás:
    \NOtes\hl{k}\tslur0n\hl{n}\en\bar
    %3er compás
    \NOtes\isluru0q\hl{q}\ql{l}\tslur0m\ql{m}\en\bar
    %4to compás
    \NOtes\zcn{M}{\hspace*{-0.15cm}\bf \f}\hl{n}\hp\en\bar
    %\5to compás
    \NOtes\zcn{M}{\hspace*{-0.15cm}\bf \p}\isluru0k\hl{k}\hl{n}\en\bar
    %6to compás
    \NOtes\hl{m}\curve {4}33\tslur0l\hl l\loffset{3.3}{\zchar{0}{\hspace*{0.21cm} \cbreath}}\en
    \endpiece
\end{music}


\end{document}

当前输出为: 当前的

所需的输出如下(请注意,需要将渐强作为文本符号): 期望

答案1

解决了!!!

\documentclass{report}
\usepackage{musixtex}
\usepackage{tikz}
\begin{document}
\begin{music}
    \font\A=phvb8t at 8pt% added for letter type.
    \instrumentnumber{1}
    \nobarnumbers
    \setclef1\treble
    \parindent0mm
    \nostartrule
    \def\writebarno{\A\the\barno}
    \scale{1.0}
    \startbarno=1
    \startpiece 
    %1er compás - 1ra línea
    \NOtes\zcharnote{-8}{\begin{tikzpicture}
        \node[] at (0,0) {\hspace*{-0.4cm} \A\textbf{cres}};
        \draw[very thick, dashed, line width=0.3mm] (0.38,0) -- (1.37,0);
        \node[] at (1.61,0) {\hspace*{0.024cm} \A\textbf{cen}}; 
        \draw[very thick, dashed, line width=0.3mm] (2.0,0) -- (3.26,0);
        \node[] at (3.45,0) {\hspace*{0.006cm} \A\textbf{do}};  
        \draw[very thick, dashed, line width=0.3mm] (3.8,0) -- (5.36,0);
     \end{tikzpicture}}\isluru0j\hl{j}\hl{l}\en\bar
    %2do compás:
    \NOtes\hl{k}\tslur0n\hl{n}\en\bar
    %3er compás
    \NOtes\isluru0q\hl{q}\ql{l}\tslur0m\ql{m}\en\bar
    %4to compás
    \NOtes\zcn{M}{\hspace*{-0.15cm}\bf \f}\hl{n}\hp\en\bar
    %\5to compás
    \NOtes\zcn{M}{\hspace*{-0.15cm}\bf \p}\isluru0k\hl{k}\hl{n}\en\bar
    %6to compás
    \NOtes\hl{m}\curve {4}33\tslur0l\hl l\loffset{3.3}{\zchar{0}{\hspace*{0.21cm} \cbreath}}\en
    \endpiece
\end{music}    
\end{document}

解决了

相关内容