With the attached file I obtain:

bar 119 bar 120 bar 121 bar 122
! Staff number (2) out of specified range (1)!.
\check@staff ... specified range (\the \st@ffs )!}

The problem disappears if change \generalsignature3\Changecontext into \bar at line 65 or if I add/remove bars so this changecontext does not come at a line break.

It seems I am attempting to write into a 2nd staff on instrument No.2 e.g
\notes\blabla|\blabla&\blabla|blabla\en

I have had similar cases with \leftrepeat or \rightrepeat.

Any idea?

--
Jean-Pierre Coulon
\input musixtex
%\input musixps
\parindent0mm
\def\bare{\bar\hardspace{3pt}}
\def\mgfa{\setclef1{\bass\treble}\zchangeclefs}
\def\bigpause{\def\atnextbar{\znotes\centerpause\en}}
\def\mit{\medtype\it}

\instrumentnumber2
\afterruleskip=5pt
\setstaffs12
\setstaffs21
\setsize2\tinyvalue
\setclef1{\treble\treble}
\setclef2\treble
\generalmeter{\meterfrac34}
\generalsignature{1}
\startbarno119
\interstaff{10}
\interinstrument=-1\Interligne
\def\mysk{\off{.5\elemskip}}


\startpiece
\notesp\rh k\zh{fh}\hu j|\ioctfinup q\ibl2l{-2}\qb2{ok}\tqb2j\en
\notesp|\ibl2l{-2}\qb2{ok}\tqb2j\en
\notesp\zq{ki}\ql g|\ibl2k{-2}\qb2{nk}\tqb2i\en
\bar% 120
\Notes\zq k\ql i|\ibl2k0\qb2{pk}\en
\Notes\zq k\ql i|\qb2{pk}\en
\Notes\zq g\qu i|\qb2n\tqb2k\en
\bar% 121
\Notes\zh j\hl h\zcn r{\mit pressez}|\ibl2k0\qb2{ok}\en
\Notes|\qb2{ok}\en
\Notes\zq g\qu i|\qb2n\tqb2k\en
\leftrepeat% 122
\Notes\zq k\ql i|\ibl2k0\qb2{pk}\en
\Notes\zq k\ql i|\qb2{pk}\en
\Notes\zq g\qu i|\qb2n\tqb2k\en
\generalsignature3\Changecontext% \bar% 123
\Notes\zq j\ql h|\ibl2k0\qb2{ok}\en
\Notes\qa d|\qb2{ok}\en
\Notes\zq g\qu i|\qb2n\tqb2k\en% revoir
\NOtes\sk\en
\bar% 124
\Notes\qa k|\ibl2k0\qb2{pk}\en
\Notes\qa d|\qb2{pk}\en
\Notes\qa i|\qb2n\tqb2k\en
\bar% 125 
\Notes\zcn r{\mit prestissimo}\qa k|\ibl2k0\qb2{pk}\en
\Notes\qa d|\qb2{pk}\en
\Notes\qa h|\qb2n\tqb2k\en
\mgfa%
\leftrepeat% 126
\Notes\zhp D\hup K|\ibl2i0\qb2{ohkhm}\tqb2h\en
\bar% 127
\Notes|\ibl2i{-2}\qb2{omkhf}\toctfin\tqb2d\en
\bigpause
\setrightrepeat% 
\stoppiece
\end
-------------------------------
TeX-music@tug.org mailing list
If you want to unsubscribe or look at the archives, go to 
https://tug.org/mailman/listinfo/tex-music

Reply via email to