Quoting Don Simons:
>I’m happy to address your issue, and I suspect it can be solved without 
>changing the code, but I’m not clear on exactly what it is. For example, you 
>say you want >to put “two pieces of music on the same page” but your example 
>file only has one piece of music. You also suggest that using \spread for 
>every line would be >burdensome, but if you’re only talking about one page, 
>there can’t be that many lines all together. You also mention lyrics, but 
>there are no lyrics in your >example.

I'm sorry for being confusing -- I think I have to adept a bit to the style of 
the MusXTeX-mailing-list. The "two pieces on the same page" issue was only ment 
to describe the situation where the idea of globally scaling the inter-system 
space first came to me. I did not want to ask the spacing thing with the "two 
pieces in one document" thing in the same question, in order to make both of 
the issues retrievable in the archive. Since this does not seem to be a big 
issue in this mailing-list, I will grab the chance and have both problems 
solved. In that example, as well as in the one I attached to the question, it 
would be no burdensome thing to adjust the spacing manually for every line. But 
as I suspected there is no easy way to globally achieve equally sized and yet 
scalable inter-system spaces, I wanted to list all points in favour of such an 
option taht came to me, in case you considered adding it.

So here comes the "two pieces of music in one document" thing. I achieved it so 
far with having PMX compile the following code and afterwards cropping and 
including the pdf twice in a new .tex document:

===========================================================
1 1 4 4 0 6 0 -1
0 3 20 0

t
./

Tt
Saabund on j\"{a}lle \"{o}\"{o}
Ac4e
\\nobarnumbers\

% Text (first line)
"Saa-bund on j\"{a}-lle \"{o}\"{o}, mis mei-le t\"{a}h-te-de vaik-set ra-hu 
toob."

% Bar 1
\spread{-4}\
f24 f4 f4 /

% Bar 2
g4d4 a8 f4 oc f4 /

% Bar 3
b4d4 c8 a4 f8 a8 /

% Bar 4
\spread{-4}\
[ a84 g8 ] [ f8 e8 ] f2 oc /

% Text (second line)
"L\~{o}pp-e-nud p\"{a}ev-a-t\"{o}\"{o} ja puh-ke-aeg ta-sa v\"{a}rs-keid 
j\~{o}u-de koob."

% Bar 5
a24 a4 a4 /

% Bar 6
b4d4 c8 a4 oc a4 /

% Bar 7
\spread{-4}\
g4d4 a8 f4 oc a8 c8 /

% Bar 8
[ c85 b8 ] [ a8 g8 ] a2 oc /

% Text (third line)
"Kuu, s\"{a}-rav kuu, h\~{o}-be-da-ne kuu uj-ub o-ma val-gus-voos."

% Bar 9
c25 a44 f4 /

% Bar 10
\spread{-4}\
c24 oc f84 c85 a8 f8 /

% Bar 11
c24 oc [ f8 e8 ] [ d8 c8 ] /

% Bar 12
b43 c4 f2 /

=======================================================================
Here you find the spread commands.

With the help of Andres code -- thank you for that -- I can, in my view, 
significantly improve the procedure to:

=======================================================================
---
\input musixtex
\makeatletter
\def\Song#1#2#3{%
\zcharnote{10}{%
\getcurpos\kern-\y@v\kern-\sign@skip\kern-\clef@skip\hskip-1\parindent
\raise #1\internote\hbox to \hsize{\hss {\bigfont #2}\hss #3}}}%
\makeatother
---
1
1
4
4
0
6
0
-1

1
8
20
0

t
./

Tt
Saabund on j\"{a}lle \"{o}\"{o}
Ac4e
\\nobarnumbers\

% Text (first line)
"Saa-bund on j\"{a}-lle \"{o}\"{o}, mis mei-le t\"{a}h-te-de vaik-set ra-hu 
toob."
\lyrraise{1}{b-20pt}\

% Bar 1
%\spread{-4}\
f24 f4 f4 /

% Bar 2
g4d4 a8 f4 oc f4 /

% Bar 3
b4d4 c8 a4 f8 a8 /

% Bar 4
%\spread{-4}\
[ a84 g8 ] [ f8 e8 ] f2 oc /

% Text (second line)
"L\~{o}pp-e-nud p\"{a}ev-a-t\"{o}\"{o} ja puh-ke-aeg ta-sa v\"{a}rs-keid 
j\~{o}u-de koob."

% Bar 5
a24 a4 a4 /

% Bar 6
b4d4 c8 a4 oc a4 /

% Bar 7
%\spread{-4}\
g4d4 a8 f4 oc a8 c8 /

% Bar 8
[ c85 b8 ] [ a8 g8 ] a2 oc /

% Text (third line)
"Kuu, s\"{a}-rav kuu, h\~{o}-be-da-ne kuu uj-ub o-ma val-gus-voos."

% Bar 9
c25 a44 f4 /

% Bar 10
%\spread{-4}\
c24 oc f84 c85 a8 f8 /

% Bar 11
c24 oc [ f8 e8 ] [ d8 c8 ] /

% Bar 12
b43 c4 f2 /

L5M+16
%K+0+2
m4406
\\\def\titel{Saabund on j\"{a}lle \"{o}\"{o}}\def\music{Canon}\
%\\\advance\barno by -1\
%\\\staffbotmarg4\Interligne\stafftopmarg10\Interligne\
%\\\stemlength4\

% Text (first line)
"Saa-bund on j\"{a}-lle \"{o}\"{o}, mis mei-le t\"{a}h-te-de vaik-set ra-hu 
toob."

% Bar 1
%\spread{-4}\
f24 f4 f4 /
\Song{20}{\titel}{\lower2\Interligne\llap{}}\

% Bar 2
g4d4 a8 f4 oc f4 /

% Bar 3
b4d4 c8 a4 f8 a8 /

% Bar 4
%\spread{-4}\
[ a84 g8 ] [ f8 e8 ] f2 oc /

% Text (second line)
"L\~{o}pp-e-nud p\"{a}ev-a-t\"{o}\"{o} ja puh-ke-aeg ta-sa v\"{a}rs-keid 
j\~{o}u-de koob."

% Bar 5
a24 a4 a4 /

% Bar 6
b4d4 c8 a4 oc a4 /

% Bar 7
%\spread{-4}\
g4d4 a8 f4 oc a8 c8 /

% Bar 8
[ c85 b8 ] [ a8 g8 ] a2 oc /

% Text (third line)
"Kuu, s\"{a}-rav kuu, h\~{o}-be-da-ne kuu uj-ub o-ma val-gus-voos."

% Bar 9
c25 a44 f4 /

% Bar 10
%\spread{-4}\
c24 oc f84 c85 a8 f8 /

% Bar 11
c24 oc [ f8 e8 ] [ d8 c8 ] /

% Bar 12
b43 c4 f2 /

=======================================================================
I also meant \lyrraise not \setlyrstrut in my first mail, sorry.

There are basically two questions that remain on this code:
1.) I hardly get any clue of what I do there. If I'm not mistaken these in-line 
TeX comands are MusiXTeX commands, but since most of them are not documented I 
guess they are from the "implementation of MusiXTeX itself" level, as one could 
maybe call it. Is there a tutorial or other way to slowly get behind these 
things? I would straight away need it to understand what the commented out 
lines after the title definition can be used for and to
2.) Change the font size of the second "Saabund on jälle öö" title from 
\bigfont to the fontsize that is used in the first title (or shrink the first 
title's font size as compensational solution).


Now concerning the vertical spacing question again.
Quoting Don:
>There are a few PMX commands that affect vertical spacing that you haven’t 
>mentioned (such as AV, Av, and options to the new-movement command); possibly 
>one of >those would help. I do confess that vertical spacing can be very 
>challenging.

In the example given first, it would indeed be possible to achieve a globally 
equal, but reduced inter-system space, if one could use Ae and AV 
simultaneously. However, AeV+0+40 or variants of this command do not seem to 
push the systems further together (to the top). AI does only influence the 
intra-system space, not the inter-system space and thus would remain without 
any effect e.g. in the "Saabund on jälle öö" example, as it has only one staff.

Quoting Don:
>I can help you most effectively if you could provide a .pmx file that is as 
>close to as possible to what you finally want, and then clearly explain what 
>you’d >like to change from that.
I will try to explain myself better. I wanted to know, if there is an 
automatized and thus globally working, and in my view nicer, way to reduce/ 
increase equal inter-system space (leaving it still equal), i.e. to achieve:

=======================================
2 2 6 4 6 4 1 +1
1 5 20 0

tt
./

Tc
Clement Cotterill Scholefield, 1874
Tt
Der Tag, mein Gott, ist nun vergangen\\
Ac4e
Ki1+14+1
\\nobarnumbers\

% Bar 1
\spread{-20}\
d43 | g22 g43 d23 d4 /
d44 D"c.f." | ( b44 c4 ) b4 ( d4 b4 ) a4 /

% Bar 2
e43 a42 c4 d4 d4 oc e4 /
( g44 a4 ) e44 g4 f4 oc e4 /

% Bar 3
\spread{-20}\
f43 g4 f4 e2 e4 /
d24 d4 ( g4 a4 ) b4 /

% Bar 4
a22 a4 d23 oc f4 /
a24 g4 f2 oc d4 /

% Bar 5
g23 g4 d2 d4 /
( b44 c4 ) b4 ( d4 b4 ) a4 /

% Bar 6
\spread{-20}\
e43 a42 c4 d4 d4 oc c4 /
( g44 a4 ) e44 g4 f4 oc e4 /

% Bar 7
b22 d4 e4 b42 c4 /
( d44 e4 ) f4 ( g4 b4 ) a4 /

% Ending bar
m5400
c43 a4 d4 g22 /
( e44 g4 ) f4 g2 /

============================================
in contrast to the same document without any \spread command. Be aware that I 
always used the same amount of \interlines for reduction and used it for each 
inter-system space and therefore achieved the same as if Ae.8 or Ae1.2 would be 
a command to use the originally by PMX determined inter-system space and 
multiply it by e.g. 0.8. That was what I meant in my first email.

Best,
Matthias




>This is an example for 2 pieces on 1 page, using inline tex:
> 
>- a macro \Song#1#2#3 is defined (hight of title, title, componist)
>
>- i only use Ae when de music does not fit on 1 page
>- i use AI.8 to get de systems more narrow
>- L4M+16 for define a space between the 2 pieces
> 
>===============
>---
>\input musixtex
>\makeatletter
>\def\Song#1#2#3{%
>\zcharnote{10}{%
>\getcurpos\kern-\y@v\kern-\sign@skip\kern-\clef@skip\hskip-1\parindent
>\raise #1\internote\hbox to \hsize{\hss {\bigfont #2}\hss #3}}}%
>\makeatother
>---
>2
>2
>6
>4
>6
>4
>1
>+1
> 
>1
>5
>20
>0
> 
> 
>tt
>./
> 
>Tc
>Clement Cotterill Scholefield, 1874
>Tt
>Der Tag, mein Gott, ist nun vergangen\\
>%Ac4e
>Ki1+14+1
>AI.8
>\\nobarnumbers\
> 
>% Bar 1
>d43 | g22 g43 d23 d4 /
>d44 D"c.f." | ( b44 c4 ) b4 ( d4 b4 ) a4 /
> 
>% Bar 2
>e43 a42 c4 d4 d4 oc e4 /
>( g44 a4 ) e44 g4 f4 oc e4 /
> 
>% Bar 3
>f43 g4 f4 e2 e4 /
>d24 d4 ( g4 a4 ) b4 /
> 
>% Bar 4
>a22 a4 d23 oc f4 /
>a24 g4 f2 oc d4 /
> 
>% Bar 5
>g23 g4 d2 d4 /
>( b44 c4 ) b4 ( d4 b4 ) a4 /
> 
>% Bar 6
>e43 a42 c4 d4 d4 oc c4 /
>( g44 a4 ) e44 g4 f4 oc e4 /
> 
>% Bar 7
>b22 d4 e4 b42 c4 /
>( d44 e4 ) f4 ( g4 b4 ) a4 /
> 
>% Ending bar
>m5400
>c43 a4 d4 g22 /
>( e44 g4 ) f4 g2 /
> 
>L4M+16
>%K+0+2
>m6464
>\\\def\titel{Laat liederen horen}\def\music{Canon}\
>%\\\advance\barno by -1\
>%\\\staffbotmarg4\Interligne\stafftopmarg7\Interligne\
>%\\\stemlength4\
> 
> 
>% Bar 2
>e43 a42 c4 d4 d4 oc e4 /
>\Song{8}{\titel}{\lower2\Interligne\llap{CANON}}\
>( g44 a4 ) e44 g4 f4 oc e4 /
> 
>% Bar 3
>f43 g4 f4 e2 e4 /
>d24 d4 ( g4 a4 ) b4 /
> 
>% Bar 4
>a22 a4 d23 oc f4 /
>a24 g4 f2 oc d4 /
> 
>% Bar 5
>g23 g4 d2 d4 /
>( b44 c4 ) b4 ( d4 b4 ) a4 /
> 
>% Bar 6
>e43 a42 c4 d4 d4 oc c4 /
>( g44 a4 ) e44 g4 f4 oc e4 /
>==============
> 
>Andre
 

From: "Matthias Holländer"
Sent: Sunday, April 29, 2018 1:31 PM
To: [email protected]
Subject: [Tex-music] Varying the vertical inter-system space globally
 

Dear all!
 
When using the Ae option for making vertical inter-sytem space equal between 
all systems in PMX, is there a possibility to scale this vertical space still 
globally? I wanted to get two pieces of music on the same A4 page and therefore 
wanted to reduce the space, determined by Ae, a bit. I could not find any 
documentation on this, and tried guessing undocumented commands like simply 
appending a factor to e, with whom the space should be multiplied. I ended up 
using the inline TeX command \sread{-4pt}\ (-4 suited in my special case) in 
front of every first bar in a line.
This is no really satisfying solution, since
a) it can potentially be a lot of \spread commands instead of one single global 
option,
b) you have to change it every time the amount of bars in one of the lines 
before has changed (which is more or less okay, when already working with the 
layout, but the error message, telling you that the number of bars in a former 
line has changed is very unspecific: It says only the TeX memory pool is 
exceeded or something like this) and
c) the lyrics placed in the inter-system space are not vertically centered 
after this any more (this can probably be fixed with the MusiXlyr command 
\setlyrstrut again, but this is how you collect your extra work). So actually I 
hope that there is a solution which manipulates the inter-system space before 
musixlyr computes the vertical position of the lyrics.

In case an MWE is helpful here, treat the following code as an .pmx document 
(it is my subsequent tiny work with PMX after my wish of globally varying 
inter-system space, and again I perceive the inter-system space too big):

2
2
6
4
6
4
1
+1

0
3
20
0


tt
./

Tc
Clement Cotterill Scholefield, 1874
Tt
Der Tag, mein Gott, ist nun vergangen\\
Ac4e
Ki1+14+1
\\nobarnumbers\

% Bar 1
d43 | g22 g43 d23 d4 /
d44 D"c.f." | ( b44 c4 ) b4 ( d4 b4 ) a4 /

% Bar 2
e43 a42 c4 d4 d4 oc e4 /
( g44 a4 ) e44 g4 f4 oc e4 /

% Bar 3
f43 g4 f4 e2 e4 /
d24 d4 ( g4 a4 ) b4 /

% Bar 4
a22 a4 d23 oc f4 /
a24 g4 f2 oc d4 /

% Bar 5
g23 g4 d2 d4 /
( b44 c4 ) b4 ( d4 b4 ) a4 /

% Bar 6
e43 a42 c4 d4 d4 oc c4 /
( g44 a4 ) e44 g4 f4 oc e4 /

% Bar 7
b22 d4 e4 b42 c4 /
( d44 e4 ) f4 ( g4 b4 ) a4 /

% Ending bar
m5400
c43 a4 d4 g22 /
( e44 g4 ) f4 g2 /


Hoping there is a better solution than my "workaround",
best,
Matthias

PS: Actually, there arouse a few more questions to me, when working with this 
MWE-document. If I dare, I will ask them subsequently. But at least one, I 
fear, might turn out to be not worth to get an own mailing conversation. Do you 
prefer to have topics strictly seperated in their own mailing conversations, 
for the sake of documentation in the mailing archive, or rather be bothered 
only once and possibly answer a few questions in one go?
 
------------------------------------------------------------
-------------------------------
[email protected] mailing list
If you want to unsubscribe or look at the archives, go to 
http://tug.org/mailman/listinfo/tex-music[http://tug.org/mailman/listinfo/tex-music]dre-------------------------------
 [email protected] mailing list If you want to unsubscribe or look at the 
archives, go to 
http://tug.org/mailman/listinfo/tex-music[http://tug.org/mailman/listinfo/tex-music]

-------------------------------
[email protected] mailing list
If you want to unsubscribe or look at the archives, go to 
http://tug.org/mailman/listinfo/tex-music

Reply via email to