Re: bar numbers at beginning of bar - partial solution

2009-01-31 Thread Paul Scott

Trevor Daniels wrote:


Paul Scott wrote Saturday, January 31, 2009 8:47 PM



Kieren MacMillan wrote:

The first property description on that page is:
 "X-extent (pair of numbers) Hard coded extent in X direction."


I had no trouble finding X-extent in the docs.  Reading that did not 
tell me what X-extent meant.




So the command I suggested simply convinces the spacing engine 
BarNumbers have no width.


That helps me make sense of what X-extent means.


A more extensive description is rather well hidden in
section 5.5.1 of the Notation Reference.  It says:

"All graphical objects have a reference point, a horizontal extent and 
a vertical extent. The horizontal extent is a pair of numbers giving 
the displacements from the reference point of the left and right 
edges, displacements to the left being negative. The vertical extent 
is a pair of numbers giving the displacement from the reference point 
to the bottom and top edges, displacements down being negative."


Thank you

Paul




___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: bar numbers at beginning of bar - partial solution

2009-01-31 Thread Trevor Daniels


Paul Scott wrote Saturday, January 31, 2009 8:47 PM



Kieren MacMillan wrote:

The first property description on that page is:
 "X-extent (pair of numbers) Hard coded extent in X direction."


I had no trouble finding X-extent in the docs.  Reading that did not tell 
me what X-extent meant.




So the command I suggested simply convinces the spacing engine BarNumbers 
have no width.


That helps me make sense of what X-extent means.


A more extensive description is rather well hidden in
section 5.5.1 of the Notation Reference.  It says:

"All graphical objects have a reference point, a horizontal extent and a 
vertical extent. The horizontal extent is a pair of numbers giving the 
displacements from the reference point of the left and right edges, 
displacements to the left being negative. The vertical extent is a pair of 
numbers giving the displacement from the reference point to the bottom and 
top edges, displacements down being negative."


HTH
Trevor




___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: bar numbers at beginning of bar - partial solution

2009-01-31 Thread Paul Scott

Kieren MacMillan wrote:

Hi Paul,

I just searched through the docs and I don't find the meaning of 
X-extent.

What does it mean?  What does the above do?


Google
X-extent site:lilypond.org/doc/v2.12

[Hint to everyone: using the 'site' Google-keyword is a great method 
of searching the docs!]


The first hit is
   
 



The first property description on that page is:
 "X-extent (pair of numbers) Hard coded extent in X direction."


I had no trouble finding X-extent in the docs.  Reading that did not 
tell me what X-extent meant.




So the command I suggested simply convinces the spacing engine 
BarNumbers have no width. 


That helps me make sense of what X-extent means.

Thanks,

Paul




___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: bar numbers at beginning of bar - partial solution

2009-01-31 Thread Kieren MacMillan

Hi Paul,

I just searched through the docs and I don't find the meaning of X- 
extent.

What does it mean?  What does the above do?


Google
X-extent site:lilypond.org/doc/v2.12

[Hint to everyone: using the 'site' Google-keyword is a great method  
of searching the docs!]


The first hit is
   


The first property description on that page is:
 "X-extent (pair of numbers) Hard coded extent in X direction."

So the command I suggested simply convinces the spacing engine  
BarNumbers have no width. [n.b., There's probably a more 'kosher' way  
of doing this, but this works for me.]


Now just solve the collision appropriately (with padding or  
whatever).

Why doesn't outside-staff-priority alone solve this?


Don't know — I imagine that o-s-p simply decides the stacking  
*order*, but doesn't adjust the collision engine's algorithm w.r.t.  
horizontal positions/spacing.

Kieren.

___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: bar numbers at beginning of bar - partial solution

2009-01-31 Thread Paul Scott

Kieren MacMillan wrote:

Hi Paul,


Thanks for answering, Mats.  With the following code the bar number
displaces the notes in each bar to the right.  If I remove the two
self-alignment-X overrides the bar number does not displace any music.


\layout
{
\context
{
\Score
\override BarNumber #'X-extent = #'(0 . 0)
}
}


Hi Kieren,

I just searched through the docs and I don't find the meaning of 
X-extent.  What does it mean?  What does the above do?


Now just solve the collision appropriately (with padding or whatever).


Why doesn't outside-staff-priority alone solve this?

Thanks,

Paul




___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: bar numbers at beginning of bar - partial solution

2009-01-29 Thread Kieren MacMillan

Hi Paul,


Thanks for answering, Mats.  With the following code the bar number
displaces the notes in each bar to the right.  If I remove the two
self-alignment-X overrides the bar number does not displace any  
music.


\layout
{
\context
{
\Score
\override BarNumber #'X-extent = #'(0 . 0)
}
}

Now just solve the collision appropriately (with padding or whatever).

Hope this helps!
Kieren.


___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: bar numbers at beginning of bar - partial solution

2009-01-29 Thread Trevor Daniels

Paul

The notes in the bar are displaced to avoid a collision
of the stem of the first note with the bar number.  A
potential solution is to use 'outside-staff-priority
with the priority of the bar number greater than the stem.
By default the 'outside-staff-priority is not set for the
Stem object, but even when set this doesn't work. Maybe the
Stem object does not honour the 'outside-staff-priority value,
as it has already moved itself horizontally to avoid the
collision before the skyline code is invoked.

(You would also need to move engravers to make the
'outside-staff-priority comparison between bar numbers and
stems work - see Learning Manual 4.4.3 for details - but
this doesn't help anyway and would give rise to other
problems.)

So the best solution is to lower the bar number by setting
the value of the 'staff-padding of the bar number object
sufficiently high to clear most of the stems, and tweaking
the value for any bar number for which the default gives a
poor result.

HTH

Trevor


- Original Message - 
From: "Paul Scott" 

To: "lilypond-user" 
Sent: Thursday, January 29, 2009 8:06 AM
Subject: Re: bar numbers at beginning of bar - partial solution



Paul Scott wrote:

Mats Bengtsson wrote:

I don't understand what you mean, can you provide an example?


Thanks for answering, Mats.  With the following code the bar number
displaces the notes in each bar to the right.  If I remove the two
self-alignment-X overrides the bar number does not displace any music.


Ok.  If I apply some padding and increase the outside-staff-priority I can 
solve the initial displacement of the music.  In some cases the padding 
would have to be a lot.  I have changed the outside-staff-priority below 
to as much as 400.  It would seem that a high outside-staff-priority would 
solve this without needing the padding.  When I can I will post an example 
that seems to show that outside-staff-priority works sometimes but padding 
is needed at other times.


Paul




\version "2.12.1"

numberEveryBar = {
 \override Score.BarNumber #'break-visibility = #end-of-line-invisible
 \set Score.barNumberVisibility = #(every-nth-bar-number-visible 1)
 \override Score.BarNumber #'outside-staff-priority = #1
 \override Score.BarNumber #'font-size = #-2
 \override Score.BarNumber #'self-alignment-X = #-1
}
barNumberDown = {
 \override Score.BarNumber #'direction = #DOWN
 \override Score.BarNumber #'outside-staff-priority = #1
 \override Score.BarNumber #'font-size = #-2
 \override Score.BarNumber #'self-alignment-X = #-1
}

\relative c'' {
 \numberEveryBar \barNumberDown
 \repeat unfold 52 c2
 \set Score.currentBarNumber = #100
 \repeat unfold 48 c4
}



  /Mats

Paul Scott wrote:

Hi,

12.2.1

When numbering all bars the default bar numbers seem to be at the end 
of the previous bar which is confusing to the reader.  When I use


\override Score.BarNumber #'self-alignment-X = #-1

to try to make these less confusing to the reader *sometimes* the music 
above the bar numbers is moved to the right which looks ugly.  Is there 
another way to move the bar numbers without moving the music?


Thanks,

Paul Scott




___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user







___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user




___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user





___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: bar numbers at beginning of bar - partial solution

2009-01-29 Thread Paul Scott

Paul Scott wrote:

Mats Bengtsson wrote:

I don't understand what you mean, can you provide an example?


Thanks for answering, Mats.  With the following code the bar number
displaces the notes in each bar to the right.  If I remove the two
self-alignment-X overrides the bar number does not displace any music.


Ok.  If I apply some padding and increase the outside-staff-priority I 
can solve the initial displacement of the music.  In some cases the 
padding would have to be a lot.  I have changed the 
outside-staff-priority below to as much as 400.  It would seem that a 
high outside-staff-priority would solve this without needing the 
padding.  When I can I will post an example that seems to show that 
outside-staff-priority works sometimes but padding is needed at other times.


Paul




\version "2.12.1"

numberEveryBar = {
 \override Score.BarNumber #'break-visibility = #end-of-line-invisible
 \set Score.barNumberVisibility = #(every-nth-bar-number-visible 1)
 \override Score.BarNumber #'outside-staff-priority = #1
 \override Score.BarNumber #'font-size = #-2
 \override Score.BarNumber #'self-alignment-X = #-1
}
barNumberDown = {
 \override Score.BarNumber #'direction = #DOWN
 \override Score.BarNumber #'outside-staff-priority = #1
 \override Score.BarNumber #'font-size = #-2
 \override Score.BarNumber #'self-alignment-X = #-1
}

\relative c'' {
 \numberEveryBar \barNumberDown
 \repeat unfold 52 c2
 \set Score.currentBarNumber = #100
 \repeat unfold 48 c4
}



  /Mats

Paul Scott wrote:

Hi,

12.2.1

When numbering all bars the default bar numbers seem to be at the 
end of the previous bar which is confusing to the reader.  When I use


\override Score.BarNumber #'self-alignment-X = #-1

to try to make these less confusing to the reader *sometimes* the 
music above the bar numbers is moved to the right which looks ugly.  
Is there another way to move the bar numbers without moving the music?


Thanks,

Paul Scott




___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user







___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user




___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: bar numbers at beginning of bar

2009-01-28 Thread Paul Scott

Mats Bengtsson wrote:

I don't understand what you mean, can you provide an example?


Thanks for answering, Mats.  With the following code the bar number
displaces the notes in each bar to the right.  If I remove the two
self-alignment-X overrides the bar number does not displace any music.

Paul


\version "2.12.1"

numberEveryBar = {
 \override Score.BarNumber #'break-visibility = #end-of-line-invisible
 \set Score.barNumberVisibility = #(every-nth-bar-number-visible 1)
 \override Score.BarNumber #'outside-staff-priority = #1
 \override Score.BarNumber #'font-size = #-2
 \override Score.BarNumber #'self-alignment-X = #-1
}
barNumberDown = {
 \override Score.BarNumber #'direction = #DOWN
 \override Score.BarNumber #'outside-staff-priority = #1
 \override Score.BarNumber #'font-size = #-2
 \override Score.BarNumber #'self-alignment-X = #-1
}

\relative c'' {
 \numberEveryBar \barNumberDown
 \repeat unfold 52 c2
 \set Score.currentBarNumber = #100
 \repeat unfold 48 c4
}



  /Mats

Paul Scott wrote:

Hi,

12.2.1

When numbering all bars the default bar numbers seem to be at the end 
of the previous bar which is confusing to the reader.  When I use


\override Score.BarNumber #'self-alignment-X = #-1

to try to make these less confusing to the reader *sometimes* the 
music above the bar numbers is moved to the right which looks ugly.  
Is there another way to move the bar numbers without moving the music?


Thanks,

Paul Scott




___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user







___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: bar numbers at beginning of bar

2009-01-27 Thread Mats Bengtsson

I don't understand what you mean, can you provide an example?

  /Mats

Paul Scott wrote:

Hi,

12.2.1

When numbering all bars the default bar numbers seem to be at the end 
of the previous bar which is confusing to the reader.  When I use


\override Score.BarNumber #'self-alignment-X = #-1

to try to make these less confusing to the reader *sometimes* the 
music above the bar numbers is moved to the right which looks ugly.  
Is there another way to move the bar numbers without moving the music?


Thanks,

Paul Scott




___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


--
=
Mats Bengtsson
Signal Processing
School of Electrical Engineering
Royal Institute of Technology (KTH)
SE-100 44  STOCKHOLM
Sweden
Phone: (+46) 8 790 8463 
   Fax:   (+46) 8 790 7260
Email: mats.bengts...@ee.kth.se
WWW: http://www.s3.kth.se/~mabe
=



___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


bar numbers at beginning of bar

2009-01-24 Thread Paul Scott

Hi,

12.2.1

When numbering all bars the default bar numbers seem to be at the end of 
the previous bar which is confusing to the reader.  When I use


\override Score.BarNumber #'self-alignment-X = #-1

to try to make these less confusing to the reader *sometimes* the music 
above the bar numbers is moved to the right which looks ugly.  Is there 
another way to move the bar numbers without moving the music?


Thanks,

Paul Scott




___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user