It´s needed to annotate an score using arrow and text, the code is as follow:
\documentclass[12pt]{article}
\usepackage[T1]{fontenc}
\usepackage{polyglossia}
\setmainlanguage{spanish}
\usepackage{etoolbox}
\usepackage{float} %Paquete para posicionar Tablas
\usepackage{tikz}
\usetikzlibrary{arrows.meta}
\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
%Rutinas para Musixtex
\newcommand{\BBBl}[5][0]%
{\ibbbl{#1}{#2}{#3}\qb{#1}{#4}\tqb{#1}{#5}}
\newcommand{\BBBBl}[5][0]%
{\ibbbbl{#1}{#2}{#3}\qb{#1}{#4}\tqb{#1}{#5}}
\begin{document}
%\begin{tikzpicture}
%\draw [red,-{Stealth}] (0,0)--(0.5,-1);
%\draw (0,0) circle (1cm);
%\draw (0,0) node {
%\node (image) at (0,0) {
%\begin{figure}[H]
\begin{center}
%\tikz{\node[scale=1]{
\begin{music}
\normalmusicsize
\setclefsymbol1\empty
\nobarnumbers
\nostartrule % Inicia sin barra vertical
\startextract
%\startpiece
\notes \wh j \sk \en
%\Endpiece
\zendextract %Cierra de partitura sin barra vertical
\startextract
%\startpiece %\alaligne\alapage
\notes \hl{j} \sk \hl{j} \sk \en%\alaligne
%\Endpiece
\zendextract %Cierra de partitura sin barra vertical
\startextract
%\startpiece
\notes \ql{j} \ql{j} \ql{j} \ql{j} \sk \en %\alaligne
%\Endpiece
\zendextract %Cierra de partitura sin barra vertical
\startextract
%\startpiece
\notes \Dqbl jj \Dqbl jj \Dqbl jj \Dqbl jj \en
%\Endpiece
\zendextract %Cierra de partitura sin barra vertical
\startextract
%\startpiece
\notes \Qqbbl jjjj \Qqbbl jjjj \Qqbbl jjjj \Qqbbl jjjj \en
%\Endpiece
\zendextract %Cierra de partitura sin barra vertical
\startextract
%\startpiece
\notes \BBBl{l}{0}{jjjjjjj}{j} \BBBl{l}{0}{jjjjjjj}{j} \BBBl{l}{0}{jjjjjjj}{j} \BBBl{l}{0}{jjjjjjj}{j} \en
%\Endpiece
\zendextract %Cierra de partitura sin barra vertical
\end{music}
%};}
\end{center}
%\end{figure}
%\end{tikzpicture}
\begin{center}
\tikz{\node[scale=0.7]{
\begin{music}
\smallmusicsize
\setclefsymbol1\empty
\nobarnumbers
\nostartrule % Inicia sin barra vertical
\startextract
%\startpiece
\notes \BBBBl{l}{0}{jjjjjjjjjjjjjjj}{j} \BBBBl{l}{0}{jjjjjjjjjjjjjjj}{j} \BBBBl{l}{0}{jjjjjjjjjjjjjjj}{j} \BBBBl{l}{0}{jjjjjjjjjjjjjjj}{j}\en
%\Endpiece
\zendextract %Cierra de partitura sin barra vertical
\end{music}
};}
\end{center}
\end{document}
The output should be as follow:
Best Answer
I would not use
\startextract
and\zendextract
but rather\startpiece
and\zendpiece
to typeset the music, because this will automatically fill a line. You can then easily set the line width using thetext width
option of the TikZ node.You can use the
\scale{}
macro to set the right relative distances between the different music parts. Somehow the distance of the two half notes needed some additional manual adjustment. To manually add some horizontal spacing between the notes, you can use the\off{}
macro.