4

I Try to Write some notes with a slur but the slur starts before the note what I'm doing wrong?

Slur

\documentclass{standalone}
\usepackage{musixtex}
\begin{document}
\begin{music}
\startpiece
\NOtes \qu {h}  \Dqbu hh \cu g \qu{f}  \islurd0{g}\cu{g}\enotes \bar
\NOtes  \tslur0{g} \qu g \qp \qp  \enotes
\Endpiece
\end{music}
\end{document}
1
  • I do not know why you were upvoted four times. In the musixtex documentation the consequences of spaces and other mistakes is explained quite well.
    – C. Peters
    Jul 16, 2021 at 19:29

2 Answers 2

2

In musixtex every not required space can cause an error, or better: causes an error. This is how it should be:

\documentclass{standalone}
\usepackage{musixtex}
\begin{document}
\begin{music}
\startpiece
\NOtes\qu h\Dqbu hh\cu g\qu f\islurd0g\cu g\enotes\bar
\NOtes\tslur0g\qu g\qp\qp\enotes
\Endpiece
\end{music}
\end{document}

Point is: if you only want to typeset music, do not use LaTeX, but Plain, then musixflx your file and compile it again with Plain. The reason for this is, that now you cannot add an extra space after the key, which is done normally in Plain, because notes should not start so close to the key.

1

Placeing cu{g} before the slur helps:

\documentclass{standalone}
\usepackage{musixtex}
\begin{document}
\begin{music}
\startpiece
\NOtes \qu {h}  \Dqbu hh \cu g \qu{f}  \cu{g}\islurd0{g}\enotes \bar
\NOtes
\tslur0{g} \qu g \qp \qp  \enotes
\Endpiece
\end{music}
\end{document}

enter image description here

1
  • Thanks it is better than before but not 100% perfect. When i do \islurd0{g}\cu{g}\tslur0{g} \qu{g} the slur is closer to the \cu{g}. But for some reason there is a bug with \endnotes or \bar
    – dark1313
    Jul 16, 2021 at 16:02

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .