Musixtex 双拖鼓基本原理

Musixtex 双拖鼓基本原理

需要用 Musixtex 复制一个双击打鼓的雏形,目前的输出如下:

\documentclass[tikz,border=3mm]{standalone}
\usepackage[T1]{fontenc}
\usepackage{polyglossia}
\setmainlanguage{spanish}

\usepackage{tikz}
\usetikzlibrary{arrows.meta, calc}
\tikzstyle{every picture}+=[remember picture]

\usepackage{pifont} % Para usar simbolos ding
\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

%Rutinas para Musixtex
\newcommand{\flam}[1]{% added <<<<<<<<<<<<  
    \bgroup\sffamily \bfseries\fontsize{8}{8}\selectfont #1\egroup
}

\begin{document}
    
  \begin{music}
    \resetlyrics
    \font\A=phvb8t at 10pt% added for letter type.
    \setlyrics{DoubleDragTap}{\flam{L} \flam{L} R \flam{L} \flam{L} R L \flam{R} \flam{R} L \flam{R} \flam{R} L R}% added for hand indication
    \setsongraise1{-4mm}
      \setlines{1}{0}
      \setclefsymbol{1}{\empty}%
      \nobarnumbers
      \nostartrule
      \def\snotes{\vnotes0.9\elemskip}
      \startextract
      \A\assignlyrics1{DoubleDragTap}% added to place handindication
      \Notes\charnote f{\Huge{\textcircled{\Large 33}}}\sk\en%$\quad$ lifted the number, \sk is the music way to skip one noteskip
      \snotes\stdstemfalse\tinynotesize\islurd0a\ibbu0a0\noteskip=1.3\noteskip\qb0{a}\tqh0a\en
      \notes\tslur0{a}\ibu0a0\noteskip=1.1\noteskip\qb0{a}\en
      \snotes\stdstemfalse\tinynotesize\islurd0a\ibbu0a0\noteskip=1.3\noteskip\qb0{a}\tqh0a\en
      \notes\tslur0{a}\noteskip=1.7\noteskip\qb0{a}\en
      \notes\tbu0\usf g\qb0a\sk\en
      \snotes\stdstemfalse\tinynotesize\islurd0a\ibbu0a0\noteskip=1.3\noteskip\qb0{a}\tqh0a\en
      \notes\tslur0{a}\ibu0a0\noteskip=1.1\noteskip\qb0{a}\en
      \snotes\stdstemfalse\tinynotesize\islurd0a\ibbu0a0\noteskip=1.3\noteskip\qb0{a}\tqh0a\en
      \notes\tslur0{a}\noteskip=1.7\noteskip\qb0{a}\en
      \notes\tbu0\usf g\qb0a\en
      \zendextract
\end{music}
        
\end{document}

电流输出: 输出

预期输出如下:

预期输出

答案1

您需要降低要开始符干的音高,并且需要以与主音符符干不同的数字开始符干,因为您不想将双拖拽固定到主音符上。在我的回答中,我尝试了各种符干长度(从音符头 M 或 N 开始)。我没有手动插入 DDT,而是定义了组,这样您就可以只使用 \DDT(参见第三个 DDT)。

\documentclass[tikz,border=3mm]{standalone}
\usepackage[T1]{fontenc}
\usepackage{polyglossia}
\setmainlanguage{spanish}

\usepackage{tikz}
\usetikzlibrary{arrows.meta, calc}
\tikzstyle{every picture}+=[remember picture]

\usepackage{pifont} % Para usar simbolos ding
\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

%Rutinas para Musixtex
\newcommand{\flam}[1]{% added <<<<<<<<<<<<  
    \bgroup\sffamily \bfseries\fontsize{8}{8}\selectfont #1\egroup
}



  \begin{document}
    
  \begin{music}
    \resetlyrics
    \font\A=phvb8t at 10pt% added for letter type.
    \setlyrics{DoubleDragTap}{\flam{L} \flam{L} R \flam{L} \flam{L} R L \flam{R} \flam{R} L \flam{R} \flam{R} L R}% added for hand indication
    \setsongraise1{-4mm}%
      \setlines{1}{0}%
      \setclefsymbol{1}{\empty}%
      \nobarnumbers
      \nostartrule
      \def\snotes{\vnotes0.9\elemskip}%
      \def\DDT{\noteskip=1.3\noteskip\tinynotesize\islurd0a\ibbu1M0\qb1{a}\tqh1a}% definitiion of the DDT. If you leave out the larger noteskip you get the distance of the first group
      \startextract
      \A\assignlyrics1{DoubleDragTap}% added to place handindication
      \Notes\charnote f{\Huge{\textcircled{\Large 33}}}\sk\en%$\quad$ lifted the number, \sk is the music way to skip one noteskip
      \snotes%\stdstemfalse not necessary, because you need to determine the stem length manually
      {\tinynotesize\islurd0a\ibbu0N0%\noteskip=1.3\noteskip
      \qb0{a}\tqh0a}\en
      \notes
      \tslur0{a}\ibu0a0%\noteskip=1.1\noteskip%
      \qb0{a}\en
      \snotes%\stdstemfalse
      \tinynotesize\islurd0a\ibbu1M0\noteskip=1.3\noteskip\qb1{a}\tqh1a\en
      \notes\tslur0{a}\noteskip=1.7\noteskip\qb0{a}\en
      \notes\tbu0\usf g\qb0a\sk\en
      %\snotes\stdstemfalse
      \snotes\DDT% defined code inserted
      %\tinynotesize\islurd0a\ibbu0a0\noteskip=1.3\noteskip\qb0{a}\tqh0a
      \en
      \notes\tslur0{a}\ibu0a0\noteskip=1.1\noteskip\qb0{a}\en
      \snotes\stdstemfalse\tinynotesize\islurd0a\ibbu0a0\noteskip=1.3\noteskip\qb0{a}\tqh0a\en
      \notes\tslur0{a}\noteskip=1.7\noteskip\qb0{a}\en
      \notes\tbu0\usf g\qb0a\en
      \zendextract
\end{music}
        
\end{document}

相关内容