[Tex-music] Vertical spaces between staffs with more than one verse
Hello, I'm quite new to musixtex. See latex embedded piece of music below. Increasing the vertical distance between two staffs by setting \Interligne=14pt for a document with a single instrument make the \Dqbl look quite ugly. Is there a solution for this?? Thanks and regards -- Peter \begin{music} \setlyrstrut \setstaffs11% \setclef1{\treble}\setmeter1{\meterC} \generalsignature{-1}% \nobarnumbers \resetlyrics \setlyrics{v1}{Kind, du bist uns \, an-ver - traut, wo - zu wer-den wir dich füh-ren?\rlap{,} Wel-che Wor-te wirst du \, sa-gen und an wel-ches Ziel dich wa-gen?} \setlyrics{v2}{Wenn du dei-ne \, We-ge \, gehst, wes - sen Lie-der wirst du sin-gen?\rlap,} \assignlyrics1{v1,v2} \startmuflex\startpiece \Interligne=14pt % TAKT1% \NOtes\uptext{\footnotesize\textbf{F}}\qu {hf}\uptext{\footnotesize% \textbf{C}}\qu g\Dqbl ji\en\bar % TAKT2% \NOtes\uptext{\footnotesize\textbf{F}}\qu h\Dqbu gf\uptext{\footnotesize% \textbf{C}}\hu g\en\bar % TAKT3% \NOtes\uptext{\footnotesize\textbf{d}}\qup f\cu e\uptext{\footnotesize% \textbf{B}}\Dqbu de\qu f\en\bar % TAKT4% \NOtes\uptext{\footnotesize\textbf{g}}\qu {gh}\uptext{\footnotesize% \textbf{C}}\hu g\en\bar % TAKT5% \NOtes\uptext{\footnotesize\textbf{F}}\hu f\hpause\en\setdoubleBAR \setrightrepeat\bar \assignlyrics1{v1} % TAKT6% \NOtes\uptext{\footnotesize\textbf{F}}\qup c\cu c\uptext{\footnotesize% \textbf{d}}\qu {de}\en\bar % TAKT7% \NOtes\uptext{\footnotesize\textbf{G}}\qu f\Dqbu gf\uptext{\footnotesize% \textbf{C}}\qu {ec}\en\bar % TAKT8% \NOtes\uptext{\footnotesize\textbf{d}}\qup f\cu f\uptext{\footnotesize% \textbf{C}}\qu {gh}\en\bar % TAKT9% \NOtes\uptext{\footnotesize\textbf{B}}\ql i\qu h\uptext{\footnotesize% \textbf{C}}\hu g\en\bar % TAKT10% \NOtes\uptext{\footnotesize\textbf{F}}\hu f\hpause\en\setdoubleBAR \endpiece \endmuflex \end{music} -- Peter Weiss, Stephanskirchen Because where there is sorrow there Hochstraße 21 cannot be love -- J. Krishnamurti --- TeX-music@tug.org mailing list If you want to unsubscribe or look at the archives, go to http://tug.org/mailman/listinfo/tex-music
Re: [Tex-music] Wrong lyrics adjustments with hyphens
Sorry--once again, now _with_ the promised attachment ... Am 18.08.2011 schrieb Rainer Dunker: Hello Dirk! Am 16.08.2011 schrieb Dirk Laurie: On Tue, Aug 16, 2011 at 03:55:06PM +0200, Rainer Dunker wrote: [...] \\\def\atnextline{\mtxLyricsAdjust{1}{-9}}\ a4 } a a a | Ouch! This is definitely the sort of thing that M-Tx was designed to avoid. Would it in other situations also be right to do that, or only in this one? I'd say it would be wrong to do that always. See the Winter ade example in the musixlyr documentation: There, a double-line lyrics section is continued with a single lyrics line in mid-system; you can't delay the vertical shift up to the system end in this case. If not so, can one identify the situation automatically so that M-Tx itself puts this in when needed? On the one hand, yes: If the vertical lyrics shift occurs after the last note of the pending system, it should be synchonized with the system break. But, as far as I unterstand, M-Tx doesn't know where the system break will happen--PMX is the earliest processing stage where this information is available. Therefore, the M-Tx processor itself has no chance to detect the situation. (Right?) But maybe the \mtxLyricsAdjust command could be empowered to detect its own calling context. This TeX macro, inserted by M-Tx into the output literally, is executed by TeX _after_ PMX has decided about the system breaks. Maybe, with a bit of luck, it could grasp this information somehow and use it for a proper vertical lyrics shift. I had a look in the .tex file resulting from Simon's problem example and noticed that both \mtxLyricsAdjust calls (generated by M-Tx) occur right before the \alaligne calls (generated by PMX). Assumed that this is always the case, \mtxLyricsAdjust could look ahead for the TeX command directly following it (using TeX's \futurelet command), and if it finds \alaligne, it knows that the lyrics shift occurs at a system break, otherwise not. Although this appears to be a really dirty and fragile solution, at least I managed to put it all together into a working example (attached to this message). But I'm far from sure whether this would work in every case and would not raise unwanted side effects (especially due to the uncumulative use of \atnextline). Could you please have a look at it and evaluate whether it is generally feasible? If you conclude that it's not, I may dig into musixlyr again to see whether it can be made more aware of such vertical shifts and to react properly itself, but I guess this would be so intricate that a workaround for those rare problematic cases would still be more appropriate. Best regards, Rainer Systems: 2 Style: Singer %%\let\mtxLyricsAdjustOrig\mtxLyricsAdjust %%\def\mtxLyricsAdjust#1#2{% %% \def\mtxLyricsAdjustArgOne{#1}% %% \def\mtxLyricsAdjustArgTwo{#2}% %% \futurelet\mtxLyricsAdjustNextToken\mtxLyricsAdjustInternal %%} %%\def\mtxLyricsAdjustInternal{% %% \ifx\mtxLyricsAdjustNextToken\alaligne %%\def\atnextline{% %% \mtxLyricsAdjustOrig\mtxLyricsAdjustArgOne\mtxLyricsAdjustArgTwo}% %% \else %%\mtxLyricsAdjustOrig\mtxLyricsAdjustArgOne\mtxLyricsAdjustArgTwo% %% \fi %%} @-2 g g g g | g @+4 g g g | @-4 g g g g | g g g g L: bla bla bla bla bla bla bla bla-bla bla bla bla bla bla bla bla --- TeX-music@tug.org mailing list If you want to unsubscribe or look at the archives, go to http://tug.org/mailman/listinfo/tex-music
Re: [Tex-music] Wrong lyrics adjustments with hyphens
On Thu, Aug 18, 2011 at 04:02:43PM +0200, Rainer Dunker wrote: Am 16.08.2011 schrieb Dirk Laurie: On Tue, Aug 16, 2011 at 03:55:06PM +0200, Rainer Dunker wrote: [...] \\\def\atnextline{\mtxLyricsAdjust{1}{-9}}\ a4 } a a a | Ouch! This is definitely the sort of thing that M-Tx was designed to avoid. Would it in other situations also be right to do that, or only in this one? I'd say it would be wrong to do that always. ... Although this appears to be a really dirty and fragile solution, ... But I'm far from sure whether this would work in every case and would not raise unwanted side effects... Could you please have a look at it and evaluate whether it is generally feasible? ... From a pure M-Tx point of view, I'd rather introduce syntax for postponing something to the next line than special-case code that may itself have exceptions. E.g. `!@-9` to make `@-9` act later. In PMX `!` occurs only inside comments, in M-Tx only on uptext lines. Would this not be a more versatile solution, maybe even at the PMX level? Could I have some feedback from people who write a lot of scores? Just grep for `atnextline` in your .mtx and/or .pmx files. I know there is a lot of them in André van Ryckeghem's edition of the Deutsche Messe. Dirk --- TeX-music@tug.org mailing list If you want to unsubscribe or look at the archives, go to http://tug.org/mailman/listinfo/tex-music
Re: [Tex-music] Wrong lyrics adjustments with hyphens
On Thu, Aug 18, 2011 at 05:52:45PM +0200, Don Simons wrote: I believe you're right that PMX doesn't now use ! at all. And I'd be glad to help however I can. But I'm very unclear on what you are proposing at the PMX level. Would the stuff after ! be PMX command(s), in-line TeX to be put into \atnextline, or something else? And if it is just stuff to go in \atnextline, what would be the advantage over simply using inline TeX within PMX? Maybe in PMX there isn't anything except TeX that one would like to take effect only at the next line, in which case there is no argument. Dirk --- TeX-music@tug.org mailing list If you want to unsubscribe or look at the archives, go to http://tug.org/mailman/listinfo/tex-music