Re: [TeX-Music] Barnumbers

2009-05-25 Thread Christian Mondrup

Don Simons wrote:


I think I understand the words, but it seems that you're asking for
something that PMX already does. As you rightly state, it is true that PMX
may redefine \raisebarno in order to avoid collision with a linebreak tie,
and that this new positioning of the bar number remains in effect either
until the end of the piece or until yet another '\def\raisebarno' is
invoked. What you don't state, but is also true, is that immediately after
the shifted bar number is posted (via \alaligne), PMX does issue another
redefinition of \raisebarno, back to the PMX default value. That's what
happens in the lines

\def\raisebarno{5.5\internote}%
\alaligne
\def\raisebarno{3.5\internote}%

which were all generated by PMX.

Where did 3.5\internote come from? It's PMX's baseline value of \raisebarno.
It is always defined at that value by pmx.tex. (musixtex.tex defines it at
4\internote, but I guess I liked 3.5 better as a rule.) There is one
situation where PMX defines a different baseline--when there are 3 sharps
and treble clef--but I'm afraid I can't recall exactly what logic led to
this. In any event PMX keeps track of the baseline, and the second
invocation of \def\raisebarno sets it back to the baseline.

Where did 5mm come from? I'm not sure, but it suggests you may want the PMX
user to be able to set the value of the baseline to something other than
3.5\internote. That is certainly something I could consider enabling, and it
probably wouldn't be that difficult. But recall that's only one of several
attributes of bar numbering that Hermann wanted to change. It would be
rather difficult at this point to get PMX to optionally make the other
changes than Hermann wanted (change the font, remove the box), or more
generally to allow all the MusiXTeX options for bar numbering.


I realize that I've asked for something that pmxab can't easily do in 
runtime: in order to accomplish what I ask for pmxab would need to parse 
in-line MusiXTeX statement(s) near the top of the .pmx source file 
dealing with \raisebarno and store the value(s) as replacement for the 
default PMX configuration of \raisebarno.


So accomplishing what Hermann asked for within 'plain pmx' would 
probably require additional user configurable bar number options in the 
pmx preamble as you suggested in a prior posting. I second Hermann's 
wish for a feature like that.

--
Christian Mondrup, Archive Editor
WIMA: Werner Icking Music Archive
http://icking-music-archive.org/
___
tex-mu...@icking-music-archive.org mailing list
If you want to unsubscribe or look at the archives, go to 
http://mailman.nfit.au.dk/mailman/listinfo/icking-music-archive.org-tex-music


Re: [TeX-Music] Barnumbers

2009-05-24 Thread Christian Mondrup

Don Simons wrote:

Christian wins the Sherlock Holmes award for detective work on this case.

It wouldn't be that much work for me to put in a user-selected switch to
suppress the automatic height adjustment (I'd only have to bypass the AHA
block.) Is it worth the trouble (of generating a whole new PMX version)?

What would be more difficult is making the bar numbering a lot more
flexible. But all along I figured if people didn't like the default they
could fix it with inline TeX.

However, if you only want to alter the position of the bar number on a
one-time basis, there is an undocumented macro in pmx.tex called \bnrs (bar
number raise  shift). It has two arguments, the amount to raise it (in
\internote) and the amount to shift if horizontally (in notehead widths).
Example of use:
==
1 1 4 4 4 4 0 0
1 4 20 0

t
.\
w3i
c86 c c c c c c c c c c c c c c c /
cs86 c c c c c c c c c c c c c c \bnrs0{-2}\ c /
cs86 c c c c c c c c c c c c c c c /
cs86 c c c c c c c c c c c c c c c /
===
This shifts the 3rd system's bar number to left. But the same issue applies
as with the baseline behavior: some of the redefinitions I used here could
confuse or get confused by other redefinitions that a user might try.


The problem with this solution is that the evocation of \bnrs only 
affects the current bar. If you apply it to bar 14 of the pmx source in 
question (*) it does fix the problem for bar 14. But in the subsequent 
bars the bar numbers are still displaced. Actually I believe that this 
behavior is an 'exotic feature' (bug?) in pmx. IMHO pmx should store the 
current settings for the bar number positioning before calculating the 
offset caused by a continuation slur. At the subsequent bar the original 
positioning settings should be restored from the saved values.


(*) an arrangement for string trio of the Kyrie movent from the B-Minor 
Mass by J.S.Bach

--
Christian Mondrup, Archive Editor
WIMA: Werner Icking Music Archive
http://icking-music-archive.org/
___
tex-mu...@icking-music-archive.org mailing list
If you want to unsubscribe or look at the archives, go to 
http://mailman.nfit.au.dk/mailman/listinfo/icking-music-archive.org-tex-music


Re: [TeX-Music] Barnumbers

2009-05-24 Thread Don Simons
Christian wrote

Don Simons wrote:
...
 However, if you only want to alter the position of the bar number on a
 one-time basis, there is an undocumented macro in pmx.tex called \bnrs
(bar
 number raise  shift). It has two arguments, the amount to raise it
(in
 \internote) and the amount to shift if horizontally (in notehead
widths).
 Example of use:
 ==
 1 1 4 4 4 4 0 0
 1 4 20 0

 t
 .\
 w3i
 c86 c c c c c c c c c c c c c c c /
 cs86 c c c c c c c c c c c c c c \bnrs0{-2}\ c /
 cs86 c c c c c c c c c c c c c c c /
 cs86 c c c c c c c c c c c c c c c /
 ===
 This shifts the 3rd system's bar number to left. But the same issue
applies
 as with the baseline behavior: some of the redefinitions I used here
could
 confuse or get confused by other redefinitions that a user might try.

The problem with this solution is that the evocation of \bnrs only
affects the current bar. If you apply it to bar 14 of the pmx source in
question (*) it does fix the problem for bar 14. But in the subsequent
bars the bar numbers are still displaced. Actually I believe that this
behavior is an 'exotic feature' (bug?) in pmx. IMHO pmx should store the
current settings for the bar number positioning before calculating the
offset caused by a continuation slur. At the subsequent bar the original
positioning settings should be restored from the saved values.

(*) an arrangement for string trio of the Kyrie movent from the B-Minor
Mass by J.S.Bach

I wasn't proposing \bnrs as a solution to Hermann's issue. I was just
describing it so people could use it as intended if they wished. 

As I understand it, Hermann wants to do three things, (1) change the font ,
(2) remove the box, and (3) raise the position globally from the default. I
assume Olivier's solution accomplishes this. \bnrs is not intended to do any
of these, it's just supposed to change the position of the next bar number,
and not change anything else from the PMX defaults. And as I mentioned, it
may interact in unexpected ways if there are any redefinitions. 

Nevertheless, in experimenting with Hermann's example, I have discovered an
issue with \bnrs, although I don't think it's what Christian has mentioned.
After commenting out Hermann's redefinitions and inserting a few \bnrs both
before and after bar 14, I notice that after the PMX-generated tweak at 14
(due to the linebreak tie), the vertical offset in \bnrs is ignored (but the
horizontal one is observed). I'll spend some time looking into how to fix
this, probably by having PMX issue a \bnrs when the number has to be moved
for a linebreak tie (instead of explicitly redefining \raisebarno as is now
done). And who know, maybe in the process I'll stumble across an easy way to
deal with Hermann's wishes within PMX.

--Don


___
tex-mu...@icking-music-archive.org mailing list
If you want to unsubscribe or look at the archives, go to 
http://mailman.nfit.au.dk/mailman/listinfo/icking-music-archive.org-tex-music


Re: [TeX-Music] Barnumbers

2009-05-24 Thread Christian Mondrup

Don Simons wrote:

Christian wrote


Don Simons wrote:

...


[snip]


Nevertheless, in experimenting with Hermann's example, I have discovered an
issue with \bnrs, although I don't think it's what Christian has mentioned.


[snip]

I've obviously expressed myself unclearly. My wish for change does not 
refer to the macro \bnrs but to the fortran routine calculating 
deviations from the initial bar number position. This routine checks for 
potential clashes between a barnumber and a continuation slur. If a 
clash is determined the fortran routine inserts an addition invocation 
of '\def\raisebarno'. This new positioning of the barnumber remains in 
effect either until the end of the piece or until yet another 
'\def\raisebarno' is invocated.


My suggestion is that the existing value of \raisebarno is stored before 
invocating '\def\raisebarno'. In the subsequent bar, if no potential 
clash is calculated, then '\def\raisebarno' should be invoked once more 
with the stored setting as argument, for example:


% Bar count 14
%
% temporarily modify \raisebarno in order to
% avoid clash with continuation slur
%
\def\raisebarno{5.5\internote}%
\alaligne
\def\raisebarno{3.5\internote}%
\pnotes{2.00}\qup G\ql{'b}\ibl3{''a}0\tslur0a\qb3a\en%
\pnotes{1.41}\nbbl3\qb3{'g}\tbl3\qb3{'a}\en%
\pnotes{1.41}\qp\qlp{''b}\en%
\pnotes{1.41}\ibbu1{'A}2\bigfl A\qb1A\tbu1\qb1B\en%
\pnotes{1.41}\qu{'C}\qp\en%
\pnotes{2.00}\sk\qu C\sk\bigna{'e}\ql e\ibl3{'d}4\isluru0d\bigfl d%
\qb3d\tslur0c\qb3c\tbl3\qb3{'b}\en%
% Bar 15
% Bar count 15
\xbar
%
% restore to initial setting of \raisebarno
%
\def\raisebarno{5mm}%
\pnotes{2.00}\ql{'F}\sk\ds\cl F\ql E\sk\ds\cu D\ibl2{'d}{-1}\qb2f%
\isluru0c\qb2c\tslur0b\bigna b\qb2b\tbl2\qb2d\ibu2b{-1}\qb2{`g}%
\islurd0{'c}\qb2c\tslur0d\qb2d\bigsh{`f}\tbu2\qb2f\ibl3{'f}1\bigfl{'a}%
\qb3a\isluru0{`e}\qb3e\tslur0d\qb3d\bigna{'b}\tbl3\qb3b\ibl3a0\qb3c%
\isluru0{`g}\qb3g\tslur0f\bigsh f\qb3f\tbl3\qb3{'c}\en%

--
Christian Mondrup, Archive Editor
WIMA: Werner Icking Music Archive
http://icking-music-archive.org/
___
tex-mu...@icking-music-archive.org mailing list
If you want to unsubscribe or look at the archives, go to 
http://mailman.nfit.au.dk/mailman/listinfo/icking-music-archive.org-tex-music


Re: [TeX-Music] Barnumbers

2009-05-23 Thread Christian Mondrup

Olivier Vogel wrote:

Dear Hermann,

As Christian explained, pmx modifies the definition of \raisebarno.

The trick is do the following:



 \makeatletter

a line like

\let\myraisebarno\raisebarno

is missing here, see attachment


\def\w...@staffs{%
  \...@\staffbotmarg \global\altplancher\staffbotmarg
  \rlap...@loop\w@st\repeat
% beginning vertical rule
  \systemheight\y@
  \advance\systemheight-\altplancher
  \...@inter \global\advance\systemheight-\s...@skip
  \ifx\empt...@rule \raise\altplancher\rlap{%
  \vru...@depth\hlthick\@height\systemheig...@width\lthick}\fi
% 'Akkoladenklammer' don't know the english word
  \...@loop
   \ifnum\uppersonginstrum\lowersonginstrum
   \else
\noinst...@nt\uppersonginstrum\s@l...@ctinstr\c@Inter
\global\advanc...@h-\stem@skip \global\advanc...@h-\g@b
\global\advanc...@h\interligne \global\advanc...@b-\internote
\rais...@b\llap{\uplap{\offinterlineskip
  \...@normalnotesize\hbox{\musixfont\fourt@@n}\hbox{\vru...@height
\...@h
\...@width\internote}\hbox{\musixfont\fiv@t@@n}}\kern\internote}%
   \fi
  \repeat
% systembarnumbers
  \ifx\...@bar\@ne \...@\altplancher \advanc...@\systemheight
\advanc...@\myraisebarno \rais...@\rlap{\kern\shiftbarno
\writebarno}\fi
% strut
  \advance\stafftopmarg\staffbotmarg
  \raise\stafftopmarg\hbox{\vru...@height\systemheight\@widt...@}}}
\makeatother



I store the tex-code in a separate file, myhack.tex and load it as a 
type 2 include


[snip]
\\def\writebarno{\ifnum\barno1\lrlap{\tenrm\it\the\barno\barnoadd}\fi}%\
\\def\raisebarno{5mm}%\
\\input myhack\
% Tt
% Trio f\ur 2 Violinen und Viola da Gamba
% Tc
% J.S. Bach
[snip]

BTW - beware of line breaks in the tex code in the previous posting!
--
Christian Mondrup, Archive Editor
WIMA: Werner Icking Music Archive
http://icking-music-archive.org/
\makeatletter%
\let\myraisebarno\raisebarno%
\def\w...@staffs{%
  \...@\staffbotmarg \global\altplancher\staffbotmarg%
  \rlap...@loop\w@st\repeat%
% beginning vertical rule%
  \systemheigh...@%
  \advance\systemheight-\altplancher%
  \...@inter \global\advance\systemheight-\s...@skip%
  \ifx\empt...@rule \raise\altplancher\rlap{%
  \vru...@depth\hlthick\@height\systemheig...@width\lthick}\fi%
% 'Akkoladenklammer' don't know the english word
  \...@loop%
   \ifnum\uppersonginstrum\lowersonginstrum%
   \else%
\noinst...@nt\uppersonginstrum\s@l...@ctinstr\c@Inter%
\global\advanc...@h-\stem@skip \global\advanc...@h-\g@b%
\global\advanc...@h\interligne \global\advanc...@b-\internote%
\rais...@b\llap{\uplap{\offinterlineskip%
  \...@normalnotesize\hbox{\musixfont\fourt@@n}\hbox{\vru...@height\g@h%%
\...@width\internote}\hbox{\musixfont\fiv@t@@n}}\kern\internote}%
   \fi%
  \repeat%
% systembarnumbers
  \ifx\...@bar\@ne \...@\altplancher \advanc...@\systemheight%
\advanc...@\myraisebarno \rais...@\rlap{\kern\shiftbarno%
\writebarno}\fi%
% strut%
  \advance\stafftopmarg\staffbotmarg%
  \raise\stafftopmarg\hbox{\vru...@height\systemheight\@widt...@}}}%
\makeatother%
___
tex-mu...@icking-music-archive.org mailing list
If you want to unsubscribe or look at the archives, go to 
http://mailman.nfit.au.dk/mailman/listinfo/icking-music-archive.org-tex-music


Re: [TeX-Music] Barnumbers

2009-05-23 Thread Don Simons
Christian wins the Sherlock Holmes award for detective work on this case.

It wouldn't be that much work for me to put in a user-selected switch to
suppress the automatic height adjustment (I'd only have to bypass the AHA
block.) Is it worth the trouble (of generating a whole new PMX version)?

What would be more difficult is making the bar numbering a lot more
flexible. But all along I figured if people didn't like the default they
could fix it with inline TeX.

However, if you only want to alter the position of the bar number on a
one-time basis, there is an undocumented macro in pmx.tex called \bnrs (bar
number raise  shift). It has two arguments, the amount to raise it (in
\internote) and the amount to shift if horizontally (in notehead widths).
Example of use:
==
1 1 4 4 4 4 0 0
1 4 20 0

t
.\
w3i
c86 c c c c c c c c c c c c c c c /
cs86 c c c c c c c c c c c c c c \bnrs0{-2}\ c /
cs86 c c c c c c c c c c c c c c c /
cs86 c c c c c c c c c c c c c c c /
===
This shifts the 3rd system's bar number to left. But the same issue applies
as with the baseline behavior: some of the redefinitions I used here could
confuse or get confused by other redefinitions that a user might try.

--Don Simons

-Original Message-
From: icking-music-archive.org-tex-music-boun...@mailman.nfit.au.dk
[mailto:icking-music-archive.org-tex-music-boun...@mailman.nfit.au.dk]
On Behalf Of Christian Mondrup
Sent: Friday, May 22, 2009 10:38 AM
To: Werner Icking Music Archive
Subject: Re: [TeX-Music] Barnumbers

Hermann Hinsch wrote:
 Within a pmx-file I use a special definition for the barnumbers to get
slanted numbers
 with a distance of 5 mm above the staff. This works well for the first
pages but for the
 next pages the barnumbers are positioned directly above the clef
symbol.

 Below I give an example. I would be very grateful if anyone could give
an idea to me to
 avoid this problem.

 Hermann

 Example:

[snip]
 %
 % Bar 13
 %
 c43d b1 c d4 d- /
 d85 s c1 d e4d [ g8- s fs s c+ ] /
 e45 r r a s /
 %
 % Bar 14
 %
 g42d a1f b c4 c- /
 b44 r r en /
 a85 s g1 a b4d [ d8-f s c s b+ ] /

bar 14 involves a line break plus a slur continuation. In the tex code
generated by pmxab you'll notice that \raisebarno is explicitely
redefined:

\% Bar 13
% Bar count 13
\xbar
\pnotes{2.00}\qup{'C}\ibl2{'d}0\tslur0d\qb2d\ql{'e}\en%
\pnotes{1.41}\nbbl2\qb2{'c}\tbl2\qb2d\en%
\pnotes{1.41}\qlp{'e}\qp\en%
\pnotes{1.41}\ibbu1{'B}3\qb1B\tbu1\qb1C\en%
\pnotes{1.41}\qu{'D}\qp\en%
\pnotes{2.00}\sk\ast{.26}\qu D\ibu2g3\islurd0g\qb2g\ast{.26}\tslur0f%
\sh f\qb2f\tbu2\qb2{'c}\sk\ast{.26}\isluru0{''a}\ql a\en%
% Bar 14
% Bar count 14
\def\raisebarno{5.5\internote}%
\alaligne
\def\raisebarno{3.5\internote}%
\pnotes{2.00}\qup G\ql{'b}\ibl3{''a}0\tslur0a\qb3a\en%
\pnotes{1.41}\nbbl3\qb3{'g}\tbl3\qb3{'a}\en%
\pnotes{1.41}\qp\qlp{''b}\en%
\pnotes{1.41}\ibbu1{'A}2\bigfl A\qb1A\tbu1\qb1B\en%
\pnotes{1.41}\qu{'C}\qp\en%
\pnotes{2.00}\sk\qu C\sk\bigna{'e}\ql e\ibl3{'d}4\isluru0d\bigfl d%
\qb3d\tslur0c\qb3c\tbl3\qb3{'b}\en%

Now, when I search for \raisebarno in the fortran code of pmxab I find:

c
c  AHA! Slur likely to interfere with barno.
c
 slint = .true.
 fmtq = '(a16,i1,a14)'
 if (irzbnd+isnx .gt. 9) fmtq = '(a16,i2,a14)'
 if (islast) write(11,fmtq)sq//'def'//sq//'raisebarno{',
  * irzbnd+isnx,'.5'//sq//'internote}%'
   end if
 end if
 if (movbrk .gt. 0) then

It looks like pmxab is instructed to look for slurs at risk to overwrite
barnumbers at line breaks. If it calculates that risk to be true, then
\raisebarno is redefined. As I understand the PMX documentation it is
not possible to tell pmxab to omit that behavior? Am I missing
something?
--
Christian Mondrup, Archive Editor
WIMA: Werner Icking Music Archive
http://icking-music-archive.org/
___
tex-mu...@icking-music-archive.org mailing list
If you want to unsubscribe or look at the archives, go to
http://mailman.nfit.au.dk/mailman/listinfo/icking-music-archive.org-tex-
music


___
tex-mu...@icking-music-archive.org mailing list
If you want to unsubscribe or look at the archives, go to 
http://mailman.nfit.au.dk/mailman/listinfo/icking-music-archive.org-tex-music


Re: [TeX-Music] Barnumbers

2009-05-22 Thread Christian Mondrup

Hermann Hinsch wrote:
Within a pmx-file I use a special definition for the barnumbers to get slanted numbers 
with a distance of 5 mm above the staff. This works well for the first pages but for the 
next pages the barnumbers are positioned directly above the clef symbol.


Below I give an example. I would be very grateful if anyone could give an idea to me to 
avoid this problem.


Hermann

Example:


[snip]

%
% Bar 13
%
c43d b1 c d4 d- /
d85 s c1 d e4d [ g8- s fs s c+ ] /
e45 r r a s /
%
% Bar 14
%
g42d a1f b c4 c- /
b44 r r en /
a85 s g1 a b4d [ d8-f s c s b+ ] /


bar 14 involves a line break plus a slur continuation. In the tex code 
generated by pmxab you'll notice that \raisebarno is explicitely redefined:


\% Bar 13
% Bar count 13
\xbar
\pnotes{2.00}\qup{'C}\ibl2{'d}0\tslur0d\qb2d\ql{'e}\en%
\pnotes{1.41}\nbbl2\qb2{'c}\tbl2\qb2d\en%
\pnotes{1.41}\qlp{'e}\qp\en%
\pnotes{1.41}\ibbu1{'B}3\qb1B\tbu1\qb1C\en%
\pnotes{1.41}\qu{'D}\qp\en%
\pnotes{2.00}\sk\ast{.26}\qu D\ibu2g3\islurd0g\qb2g\ast{.26}\tslur0f%
\sh f\qb2f\tbu2\qb2{'c}\sk\ast{.26}\isluru0{''a}\ql a\en%
% Bar 14
% Bar count 14
\def\raisebarno{5.5\internote}%
\alaligne
\def\raisebarno{3.5\internote}%
\pnotes{2.00}\qup G\ql{'b}\ibl3{''a}0\tslur0a\qb3a\en%
\pnotes{1.41}\nbbl3\qb3{'g}\tbl3\qb3{'a}\en%
\pnotes{1.41}\qp\qlp{''b}\en%
\pnotes{1.41}\ibbu1{'A}2\bigfl A\qb1A\tbu1\qb1B\en%
\pnotes{1.41}\qu{'C}\qp\en%
\pnotes{2.00}\sk\qu C\sk\bigna{'e}\ql e\ibl3{'d}4\isluru0d\bigfl d%
\qb3d\tslur0c\qb3c\tbl3\qb3{'b}\en%

Now, when I search for \raisebarno in the fortran code of pmxab I find:

c
c  AHA! Slur likely to interfere with barno.
c
slint = .true.
fmtq = '(a16,i1,a14)'
if (irzbnd+isnx .gt. 9) fmtq = '(a16,i2,a14)'
if (islast) write(11,fmtq)sq//'def'//sq//'raisebarno{',
 * irzbnd+isnx,'.5'//sq//'internote}%'
  end if
end if
if (movbrk .gt. 0) then

It looks like pmxab is instructed to look for slurs at risk to overwrite 
barnumbers at line breaks. If it calculates that risk to be true, then 
\raisebarno is redefined. As I understand the PMX documentation it is 
not possible to tell pmxab to omit that behavior? Am I missing something?

--
Christian Mondrup, Archive Editor
WIMA: Werner Icking Music Archive
http://icking-music-archive.org/
___
tex-mu...@icking-music-archive.org mailing list
If you want to unsubscribe or look at the archives, go to 
http://mailman.nfit.au.dk/mailman/listinfo/icking-music-archive.org-tex-music


Re: [TeX-Music] Barnumbers

2009-05-22 Thread Olivier Vogel
Dear Hermann,

As Christian explained, pmx modifies the definition of \raisebarno.

The trick is do the following:

---
\input musixtex
\makeatletter
\def\w...@staffs{%
  \...@\staffbotmarg \global\altplancher\staffbotmarg
  \rlap...@loop\w@st\repeat
% beginning vertical rule
  \systemheight\y@
  \advance\systemheight-\altplancher
  \...@inter \global\advance\systemheight-\s...@skip
  \ifx\empt...@rule \raise\altplancher\rlap{%
  \vru...@depth\hlthick\@height\systemheig...@width\lthick}\fi
% 'Akkoladenklammer' don't know the english word
  \...@loop
   \ifnum\uppersonginstrum\lowersonginstrum
   \else
\noinst...@nt\uppersonginstrum\s@l...@ctinstr\c@Inter
\global\advanc...@h-\stem@skip \global\advanc...@h-\g@b
\global\advanc...@h\interligne \global\advanc...@b-\internote
\rais...@b\llap{\uplap{\offinterlineskip
  \...@normalnotesize\hbox{\musixfont\fourt@@n}\hbox{\vru...@height
\...@h
\...@width\internote}\hbox{\musixfont\fiv@t@@n}}\kern\internote}%
   \fi
  \repeat
% systembarnumbers
  \ifx\...@bar\@ne \...@\altplancher \advanc...@\systemheight
\advanc...@\myraisebarno \rais...@\rlap{\kern\shiftbarno
\writebarno}\fi
% strut
  \advance\stafftopmarg\staffbotmarg
  \raise\stafftopmarg\hbox{\vru...@height\systemheight\@widt...@}}}
\makeatother
---
3  -3 1 1 1  4   4   0   6   0  -2
   2  8  20  .08
Viola d.G.
Viol.2
Viol.1
btt
./
\\def\writebarno{\ifnum\barno1\lrlap{\tenrm\it\the\barno\barnoadd}\fi}\
\\def\myraisebarno{5mm}\
\\groupbottom{1}{1}\grouptop{1}{3}\
Tt
Trio f\ur 2 Violinen und Viola da Gamba
Tc
J.S. Bach
...

and it works fine.

Olivier

___
tex-mu...@icking-music-archive.org mailing list
If you want to unsubscribe or look at the archives, go to 
http://mailman.nfit.au.dk/mailman/listinfo/icking-music-archive.org-tex-music


Re: Re: [TeX-music] Barnumbers

2004-11-29 Thread dsimons
Good idea about the local shifts, I hadn't thought of that.

If I allow a generous set of options in PMX, then PMX can construct the 
specific TeX to get the desired format, without adding stuff to pmx.tex.

I'm surprised no one has mentioned numbering at a regular frequency rather than 
at the start of each system. Doesn't anyone want that option? I suppose I could 
browse thru the archive to see what folks have done.

--Don Simons

 
 From: Bernhard Lang [EMAIL PROTECTED]
 Date: 2004/11/29 Mon AM 03:04:39 EST
 To: Typesetting music with TeX [EMAIL PROTECTED]
 Subject: Re: [TeX-music] Barnumbers
 
 What's about defining something like
 
 \def\writebarno{\ifnum\barno1\formatbarno{\the\barno}\barnoadd\fi}
 \def\formatbarno#1{\lrlap{\tenrm\it#1}} % (to stay with Hermann's 
 example)
 
 in pmx.tex? Redefining of the output is then much easier, any fancy 
 formatting would be possible this way.
 
 Other proposition (might be there's already something similar 
 available): global and local position shift of the numbering to avoid 
 clashes not detected by PMX/MusiXTeX.
 
 Bernhard
 
 ___
 TeX-music mailing list
 [EMAIL PROTECTED]
 http://icking-music-archive.org/mailman/listinfo/tex-music
 

___
TeX-music mailing list
[EMAIL PROTECTED]
http://icking-music-archive.org/mailman/listinfo/tex-music


Re: [TeX-music] Barnumbers

2004-11-27 Thread H. Hinsch
Am Freitag November 26 2004 23:07 schrieb [EMAIL PROTECTED]:
 I invite proposals for an alternate style for bar numbers. I could make it
 an A option in PMX. Please provide a PMX input snippet with in-line TeX
 to illustrate your proposal. There could even be more than one alternate
 style. I don't think this would be very hard to implement in PMX.

 --Don Simons

This would be a very good option.
I used the following redefintion (which I found in a score of the archive but 
forgot the author) to set barnumbers as italics

\\def\writebarno{\ifnum\barno1\lrlap{\tenrm\it\the\barno\barnoadd}\fi}\
\\def\raisebarno{5mm}\

Hermann Hinsch

___
TeX-music mailing list
[EMAIL PROTECTED]
http://icking-music-archive.org/mailman/listinfo/tex-music


Re: [TeX-music] Barnumbers

2004-11-27 Thread Christian Mondrup
H. Hinsch wrote:
Am Freitag November 26 2004 23:07 schrieb [EMAIL PROTECTED]:
I invite proposals for an alternate style for bar numbers. I could make it
an A option in PMX. Please provide a PMX input snippet with in-line TeX
to illustrate your proposal. There could even be more than one alternate
style. I don't think this would be very hard to implement in PMX.
--Don Simons

This would be a very good option.
I used the following redefintion (which I found in a score of the archive but 
forgot the author) to set barnumbers as italics

\\def\writebarno{\ifnum\barno1\lrlap{\tenrm\it\the\barno\barnoadd}\fi}\
\\def\raisebarno{5mm}\
I support Hermann's suggestion, which is similar, allthough not fully 
identic with the in-line bar numer code I use to apply in my 
typesettings. The basic idea is to 'get rid of' boxes around barnumbers, 
but there might be different preferences for font size- and style and 
for placement. Hence it might be worth while considering additional 
optional arguments to the box number command allowing the typesetter to 
overide defaults. The font size selected in the TeX code should be 
relative to the overall selection of music size.

--
Christian Mondrup, Sheet Note Editor
Werner Icking Music Archive
http://icking-music-archive.org/
___
TeX-music mailing list
[EMAIL PROTECTED]
http://icking-music-archive.org/mailman/listinfo/tex-music


Re: [TeX-music] Barnumbers

2004-11-24 Thread Bob Tennent
 |do you know what is the reason to put the barnumbers into a box as
 |default for MusixTeX and PMX although this seems to be quite unusual?

Probably just an idiosyncracy of Daniel Taupin and/or Andreas Egler.

Bob T.
___
TeX-music mailing list
[EMAIL PROTECTED]
http://icking-music-archive.org/mailman/listinfo/tex-music