I'm trying to write an extract of music with two instruments, and then resize it with a scalebox
(I also tried with a resizebox
and the problems are the sames).
First I tried:
\documentclass{standalone}
\usepackage{musixtex}
\usepackage{graphicx}
\begin{document}
\scalebox{1.0}{%
\begin{music}%
\instrumentnumber{2}%
\setclef10%
\setclef20%
\nobarnumbers%
\startextract%
\notes \qa c & \qa d \en%
\endextract%
\end{music}%
}
\end{document}
And I get this error when I compile:
! Misplaced alignment tab character &.
<argument> ...numbers \startextract \notes \qa c &
\qa d \en \endextract \en...
l.17 }
Then I tried to put the music extract into a figure environment and then to scale it:
\documentclass{article}
\usepackage{musixtex}
\usepackage{graphicx}
\begin{document}
\scalebox{1.0}{%
\begin{figure}[h!]
\begin{music}%
\instrumentnumber{2}%
\setclef10%
\setclef20%
\nobarnumbers%
\startextract%
\notes \qa c & \qa d \en%
\endextract%
\end{music}%
\end{figure}
}
\end{document}
And I got this error message:
! LaTeX Error: Not in outer par mode.
I, then, also tried to scale an extract with one instrument and two staffs, I did this:
\documentclass{standalone}
\usepackage{musixtex}
\usepackage{graphicx}
\begin{document}
\scalebox{1.0}{
\begin{music}
\instrumentnumber{1}
\setstaffs 1{2}
\setclef{1}{00}
\startextract
\notes \qa c | \qa d \en
\endextract
\end{music}
}
\end{document}
This compile, but It's doing this:
As we can see, instead of having a note on each staffs, both notes are on the bottom staff, and there is a pipe between the notes.
So, i there a way to achieve what I'm trying to do ?
music
environment in a savebox and uses it, the same issue arises.