Re: [Tex-music] Problem with musixlyr
Hello all, I had a similar problem with zigzag lyrics lines 20 years ago when typesetting with M-Tx. I got help from several users of this mailing list. Am 01.05.25 um 21:03 schrieb [email protected]: Thanks for mentioning \setlyrstrut. I tried that once at the top of the file, and it fixed every line’s alignment! The result might depend on the font. I had to search for details on an old computer. At this time I used M-Tx 0.60d <11 October 2008> PMX 2.7 <3 April 13> MusiXTEX 1.15 <3 April 2011> In my M-Tx source file, I change the fonts to the standard PostScript NewCenturySchlbk family. This led to problems with the lyrics even with using \setlyrstrut. %%\font\eightrm=pncr at 8pt\font\eightit=pncri at 8pt %%\font\tenrm=pncr at 10pt\font\tenit=pncri at 10pt %%\font\twelverm=pncr at 12pt\font\twelvebf=pncb at 12pt\font\BIGfont=pncb at 16pt\font\Bigfont=pncr at 12pt %%\font\elevenrm=pncr at 11pt\font\elevenbf=pncb at 11pt %%\tenrm\setlyrstrut At the end of the file I have this note: % Note: % % I changed the definition of \setlyrstrut in my copy of musixlyr.tex % (version MusiXLYRics 2.1c ) % % \def\setlyrstrut{% set up strut according to currently active font % \setbox0=\hbox{(\"Ag)}% % \setbox\lyrstrutbox=\hbox{\vrule height 1.1\ht0 depth 1.1\dp0 width\z@}} % % The original had \hbox{()} which does not work for pncr font. % % Without this change in musixlyr.tex you may get zigzag lyrics lines. % Alternatively, the following TeX command in a line before \setlyrstrut will help. % %%\def\setlyrstrut{\setbox0=\hbox{(\"Ag)}\setbox\lyrstrutbox=\hbox{\vrule height 1.1\ht0 depth 1.1\dp0 width 0pt}} % It seems to depend on the selected font which characters go up or down most. My Ubuntu 24.04.2 system provides the package texlive-music 2023.20240207-1 I checked the file musixlyr.tex. It contains these lines: %% Copyright (C) 1996-2003 Rainer Dunker ... \immediate\write16{MusiXLYRics 2.1c\space} \def\musixlyrversion{2.12} ... \def\setlyrstrut{% set up strut according to currently active font \setbox0=\hbox{()}% \setbox\lyrstrutbox=\hbox{\vrule height 1.1\ht0 depth 1.1\dp0 width\z@}} This file is most likely the same I used 20 years ago. I don't know if my selection of characters is sufficient for all fonts or if additional characters should be added from the proposed \vphantom{M’)y} With the search term "setlyrstrut" I found old threads in the mailing list archive: https://www.mail-archive.com/[email protected]/msg00497.html https://www.mail-archive.com/[email protected]/msg01201.html Kind regards, Bodo --- [email protected] mailing list If you want to unsubscribe or look at the archives, go to https://tug.org/mailman/listinfo/tex-music
Re: [Tex-music] Problem with musixlyr
Thanks for mentioning \setlyrstrut. I tried that once at the top of the file, and it fixed every line's alignment! From: TeX-Music On Behalf Of avr--- via TeX-Music Sent: Thursday, May 1, 2025 9:48 AM To: 'Werner Icking Music Archive' Cc: [email protected] Subject: Re: [Tex-music] Problem with musixlyr I Think it is needed only once. But mostly i use \setlyrstrut (page 20 of mxlyrdoc.pdf), i must change the font for it to work This also works for making a distance between multiple verses. ===--- \input musixtex% \input pmx% \input musixlyr \setlyrics{n}{Here's some text }% --- 1 1 4 4 4 4 0 0 1 1 20 0 t .\ %large font setlyrstrut smaller font \\Bigtype\setlyrstrut\bigtype\ \\assignlyrics1{n}\ c24 c | c r / c24 c | c r / Van: TeX-Music mailto:org%3e%20namens%[email protected]%0bVerzo> > Namens [email protected] Verzonden: donderdag 1 mei 2025 18:0 <mailto:derdag%201%20mei%202025%2018:0> 2 Aan: 'Werner Icking Music Archive' Onderwerp: Re: [Tex-music] Problem <mailto:x-music]%20Problem%20> with musixlyr Thanks so much, Andre! Would I need to do that separately for every word? --Don From: TeX-Music < <mailto:[email protected]> [email protected]> On Behalf Of avr--- via TeX-Music Sent: Wednesday, April 30, 2025 11:31 PM To: 'Werner Icking Music Archive' < <mailto:[email protected]> [email protected]> Cc: <mailto:[email protected]> [email protected] Subject: Re: [Tex-music] Problem wi <mailto:ic]%20Problem%20wi> th musixlyr I use "\vphantom{M')y}" between text (with arguments the highest and deepes chars) Andre Van: TeX-Music < <mailto:[email protected]> [email protected]> Namens <mailto:[email protected]> [email protected] Verzonden: donderdag 1 mei 2025 5:5 <mailto:nderdag%201%20mei%202025%205:5> 1 Aan: 'Werner Icking Music Archive' < <mailto:[email protected]> [email protected]> Onderwerp: [Tex-music] Problem wit <mailto:usic]%20Problem%20wit> h musixlyr The musixtex file below, resulting from the PMX file below that, uses musixlyr to input the text (lyrics) in this image: As is obvious, bottoms of the 3 words do not line up horizontally. Is there any way to fix that? --Don Simons PMX file: 1 1 4 4 4 4 0 0 1 1 20 0 t .\ \\input musixlyr.tex\ \\bigtype\ w3i "Here's some text" c24 c | c r / --- [email protected] mailing list If you want to unsubscribe or look at the archives, go to https://tug.org/mailman/listinfo/tex-music
Re: [Tex-music] Problem with musixlyr
I Think it is needed only once.
But mostly i use \setlyrstrut (page 20 of mxlyrdoc.pdf), i must change the
font for it to work
This also works for making a distance between multiple verses.
===---
\input musixtex%
\input pmx%
\input musixlyr
\setlyrics{n}{Here's some text }%
---
1 1 4 4 4 4 0 0 1 1 20 0
t
.\
%large font setlyrstrut smaller font
\\Bigtype\setlyrstrut\bigtype\
\\assignlyrics1{n}\
c24 c | c r /
c24 c | c r /
Van: TeX-Music Namens
[email protected]
Verzonden: donderdag 1 mei 2025 18:02
Aan: 'Werner Icking Music Archive'
Onderwerp: Re: [Tex-music] Problem with musixlyr
Thanks so much, Andre! Would I need to do that separately for every word?
--Don
From: TeX-Music < <mailto:[email protected]>
[email protected]> On Behalf Of avr--- via
TeX-Music
Sent: Wednesday, April 30, 2025 11:31 PM
To: 'Werner Icking Music Archive' < <mailto:[email protected]>
[email protected]>
Cc: <mailto:[email protected]> [email protected]
Subject: Re: [Tex-music] Problem with musixlyr
I use "\vphantom{M')y}" between text
(with arguments the highest and deepes chars)
Andre
Van: TeX-Music < <mailto:[email protected]>
[email protected]> Namens
<mailto:[email protected]> [email protected]
Verzonden: donderdag 1 mei 2025 5:51
Aan: 'Werner Icking Music Archive' < <mailto:[email protected]>
[email protected]>
Onderwerp: [Tex-music] Problem with musixlyr
The musixtex file below, resulting from the PMX file below that, uses
musixlyr to input the text (lyrics) in this image:
As is obvious, bottoms of the 3 words do not line up horizontally. Is there
any way to fix that?
--Don Simons
PMX file:
1 1 4 4 4 4 0 0
1 1 20 0
t
.\
\\input musixlyr.tex\
\\bigtype\
w3i
"Here's some text"
c24 c | c r /
---
[email protected] mailing list
If you want to unsubscribe or look at the archives, go to
https://tug.org/mailman/listinfo/tex-music
Re: [Tex-music] Problem with musixlyr
Thanks so much, Andre! Would I need to do that separately for every word? --Don From: TeX-Music On Behalf Of avr--- via TeX-Music Sent: Wednesday, April 30, 2025 11:31 PM To: 'Werner Icking Music Archive' Cc: [email protected] Subject: Re: [Tex-music] Problem with musixlyr I use "\vphantom{M')y}" between text (with arguments the highest and deepes chars) Andre Van: TeX-Music mailto:[email protected]> > Namens [email protected] <mailto:[email protected]> Verzonden: donderdag 1 mei 2025 5:51 Aan: 'Werner Icking Music Archive' mailto:[email protected]> > Onderwerp: [Tex-music] Problem with musixlyr The musixtex file below, resulting from the PMX file below that, uses musixlyr to input the text (lyrics) in this image: As is obvious, bottoms of the 3 words do not line up horizontally. Is there any way to fix that? --Don Simons PMX file: 1 1 4 4 4 4 0 0 1 1 20 0 t .\ \\input musixlyr.tex\ \\bigtype\ w3i "Here's some text" c24 c | c r / --- [email protected] mailing list If you want to unsubscribe or look at the archives, go to https://tug.org/mailman/listinfo/tex-music
Re: [Tex-music] Problem with musixlyr
This is the code i use
===
---
\input musixtex%
\input pmx%
\input musixlyr
\setlyrics{n}{Here's \vphantom{My')}some text }%
---
1 1 4 4 4 4 0 0 1 1 20 0
t
.\
\\bigtype\
\\assignlyrics1{n}\
c24 c | c r /
c24 c | c r /
Van: TeX-Music Namens avr--- via
TeX-Music
Verzonden: donderdag 1 mei 2025 8:31
Aan: 'Werner Icking Music Archive'
CC: [email protected]
Onderwerp: Re: [Tex-music] Problem with musixlyr
I use "\vphantom{M')y}" between text
(with arguments the highest and deepes chars)
Andre
Van: TeX-Music < <mailto:[email protected]>
[email protected]> Namens
<mailto:[email protected]> [email protected]
Verzonden: donderdag 1 mei 2025 5:51
Aan: 'Werner Icking Music Archive' < <mailto:[email protected]>
[email protected]>
Onderwerp: [Tex-music] Problem with musixlyr
The musixtex file below, resulting from the PMX file below that, uses
musixlyr to input the text (lyrics) in this image:
As is obvious, bottoms of the 3 words do not line up horizontally. Is there
any way to fix that?
--Don Simons
Musixtex file:
\input musixtex
\input pmx
\setmaxslurs{24}\setmaxinstruments{24}%
\normalmusicsize%
\nopagenumbers
\tracingstats=2\relax
\hsize=216pt
\vsize740pt
\def\nbinstruments{1}
\setstaffs11
\setclef10
\setname1{ }
\generalsignature{ 0}%
\generalmeter{\meterfrac{4}{4}}%
\parindent 0pt
\elemskip1pt\afterruleskip1.000pt\beforeruleskip0pt\relax
\stafftopmarg0pt\staffbotmarg5\Interligne\interstaff{10}\relax
\nostartrule
\readmod{test}
\input musixlyr.tex%
\bigtype%
\input musixlyr %
\startmuflex\startpiece\addspace\afterruleskip%
\znotes\zcharnote{16}{\titles{2.0}{}{0}{}{0}{}{0}}\en%
% Bar count 1
\pnotes{4.00}\pmxlyr{Here's some text}\hu c\hu c\en%
% Bar count 2
\xbar
\pnotes{4.00}\hu c\hpause\en%
\Endpiece%
\vfill\eject\endmuflex
\bye
\setmaxslurs{24}\setmaxinstruments{24}%
\normalmusicsize%
\nopagenumbers
\tracingstats=2\relax
\hsize=216pt
\vsize740pt
\def\nbinstruments{1}
\setstaffs11
\setclef10
\setname1{ }
\generalsignature{ 0}%
\generalmeter{\meterfrac{4}{4}}%
\parindent 0pt
\elemskip1pt\afterruleskip1.000pt\beforeruleskip0pt\relax
\stafftopmarg0pt\staffbotmarg5\Interligne\interstaff{10}\relax
\nostartrule
\readmod{test}
\input musixlyr.tex%
\bigtype%
\input musixlyr %
\startmuflex\startpiece\addspace\afterruleskip%
\znotes\zcharnote{16}{\titles{2.0}{}{0}{}{0}{}{0}}\en%
% Bar count 1
\pnotes{4.00}\pmxlyr{Here's some text}\hu c\hu c\en%
% Bar count 2
\xbar
\pnotes{4.00}\hu c\hpause\en%
\Endpiece%
\vfill\eject\endmuflex
\bye
PMX file:
1 1 4 4 4 4 0 0
1 1 20 0
t
.\
\\input musixlyr.tex\
\\bigtype\
w3i
"Here's some text"
c24 c | c r /
---
[email protected] mailing list
If you want to unsubscribe or look at the archives, go to
https://tug.org/mailman/listinfo/tex-music
Re: [Tex-music] Problem with musixlyr
I use "\vphantom{M')y}" between text
(with arguments the highest and deepes chars)
Andre
Van: TeX-Music Namens
[email protected]
Verzonden: donderdag 1 mei 2025 5:51
Aan: 'Werner Icking Music Archive'
Onderwerp: [Tex-music] Problem with musixlyr
The musixtex file below, resulting from the PMX file below that, uses
musixlyr to input the text (lyrics) in this image:
As is obvious, bottoms of the 3 words do not line up horizontally. Is there
any way to fix that?
--Don Simons
Musixtex file:
\input musixtex
\input pmx
\setmaxslurs{24}\setmaxinstruments{24}%
\normalmusicsize%
\nopagenumbers
\tracingstats=2\relax
\hsize=216pt
\vsize740pt
\def\nbinstruments{1}
\setstaffs11
\setclef10
\setname1{ }
\generalsignature{ 0}%
\generalmeter{\meterfrac{4}{4}}%
\parindent 0pt
\elemskip1pt\afterruleskip1.000pt\beforeruleskip0pt\relax
\stafftopmarg0pt\staffbotmarg5\Interligne\interstaff{10}\relax
\nostartrule
\readmod{test}
\input musixlyr.tex%
\bigtype%
\input musixlyr %
\startmuflex\startpiece\addspace\afterruleskip%
\znotes\zcharnote{16}{\titles{2.0}{}{0}{}{0}{}{0}}\en%
% Bar count 1
\pnotes{4.00}\pmxlyr{Here's some text}\hu c\hu c\en%
% Bar count 2
\xbar
\pnotes{4.00}\hu c\hpause\en%
\Endpiece%
\vfill\eject\endmuflex
\bye
\setmaxslurs{24}\setmaxinstruments{24}%
\normalmusicsize%
\nopagenumbers
\tracingstats=2\relax
\hsize=216pt
\vsize740pt
\def\nbinstruments{1}
\setstaffs11
\setclef10
\setname1{ }
\generalsignature{ 0}%
\generalmeter{\meterfrac{4}{4}}%
\parindent 0pt
\elemskip1pt\afterruleskip1.000pt\beforeruleskip0pt\relax
\stafftopmarg0pt\staffbotmarg5\Interligne\interstaff{10}\relax
\nostartrule
\readmod{test}
\input musixlyr.tex%
\bigtype%
\input musixlyr %
\startmuflex\startpiece\addspace\afterruleskip%
\znotes\zcharnote{16}{\titles{2.0}{}{0}{}{0}{}{0}}\en%
% Bar count 1
\pnotes{4.00}\pmxlyr{Here's some text}\hu c\hu c\en%
% Bar count 2
\xbar
\pnotes{4.00}\hu c\hpause\en%
\Endpiece%
\vfill\eject\endmuflex
\bye
PMX file:
1 1 4 4 4 4 0 0
1 1 20 0
t
.\
\\input musixlyr.tex\
\\bigtype\
w3i
"Here's some text"
c24 c | c r /
---
[email protected] mailing list
If you want to unsubscribe or look at the archives, go to
https://tug.org/mailman/listinfo/tex-music

