Re: 2.13.11-1: Y-offset for RehearsalMark?

2010-01-28 Thread Dmytro O. Redchuk
У нд, 2010-01-24 у 18:27 +0100, Alexander Kobel пише:
 Hi, Dmytro,
 
 correct me if I'm wrong, but this looks like the A is actually higher 
 than the other two, and has it's baseline exactly 1 staff-space unit 
 above the top staff-line.  So I guess the Y-offset is calculated w.r.t. 
 the center staff line in 2.13 (Joe: is this a bug?), and you probably 
 have to increase the values by 2.
 For what you actually wanted, I recommend you use 
 'outside-staff-padding, though.
Well, it's a pity, i can not use 'outside-staff-padding for what i
actually wanted so far :-)

When Lyrics is above Staff then 2.13.11 raises both \tempo and \mark
too high, and i need some way to drop them down.

First, short snippet (some lines are commented out, i will turn them on
later, to demonstrate what i really want):

% --8-
%
% Both MetronomeMark and RehearsalMark
% are parts of Score context (accordingly to the doc)
%

melody = \relative c'' {
  % A:
  % \override Score.MetronomeMark #'outside-staff-padding = #-2
  % B:
  % \override Score.MetronomeMark #'Y-offset = #-2
  \tempo Tempo I
  c c c c

  % C:
  % \override Score.RehearsalMark #'outside-staff-padding = #-2
  % D:
  % \override Score.RehearsalMark #'Y-offset = #-2
  \mark\default
  c c c c

  c' c c c
}

lyric = \lyricmode {
  \repeat unfold 6 { _ }
  \repeat unfold 6 { la }
}


  \new Staff = staff { \new Voice = melody { \melody } }
  \new Lyrics \with { alignAboveContext = staff } \lyricsto melody \lyric


% --8-

Sorry, four images follow :-(13.3kB) total

So, lilypond 2.12 places tempo and mark correctly (in quotes, because
i don't know really what is correctly  everything from my point
of view of course), while lilypond 2.13.11 raises both tempo and mark
_because of lyrics_, placing baseline nearly in the middle of lyrics'
height, the result is on the image named marks--none.png.

Not a problem, i used to use negative 'Y-offset to drop'em down... let's
try both ways...

First of all, i've uncommented lines A and C to set
'outside-staff-padding to some negative value (-2) --- no effect, at all
(marks--padding.png).

Then i've commented them out and uncommented lines B and D to set
'Y-offset to some negative value (-2) --- great! partial success ---
i have mark dropped down but it has no effect on tempo
(marks--offset.png).

Finally i have achieved good enough result uncommenting _both A and B
for tempo_ (marks--good-enough.png) --- so having three overrides (A, B
and D) uncommented.


So... I guess it's rather subnormal :-)

So, what is _the proper way_ to drop down marks (MetronomeMark and
RehearsalMark)?

Not both by the same command, but both by a single command would be
great.

 Cheers,
 Alexander

-- 
  Dmytro O. Redchuk
attachment: marks--none.pngattachment: marks--padding.pngattachment: marks--offset.pngattachment: marks--good-enough.png___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: 2.13.11-1: Y-offset for RehearsalMark?

2010-01-28 Thread Alexander Kobel

Dmytro O. Redchuk wrote:

So, what is _the proper way_ to drop down marks (MetronomeMark and
RehearsalMark)?

Not both by the same command, but both by a single command would be
great.


Just an idea (untested): Have you tried to remove Mark_engraver and 
Metronome_mark_engraver from the Score context and place them into the 
topmost Staff context?  Then, 'outside-staff-padding should not push 
them above the Lyrics, IIRC.



Cheers,
Alexander


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


Re: 2.13.11-1: Y-offset for RehearsalMark?

2010-01-28 Thread Dmytro O. Redchuk
У чт, 2010-01-28 у 15:55 +0100, Alexander Kobel пише:
 Dmytro O. Redchuk wrote:
  So, what is _the proper way_ to drop down marks (MetronomeMark and
  RehearsalMark)?
  
  Not both by the same command, but both by a single command would be
  great.
 
 Just an idea (untested): Have you tried to remove Mark_engraver and 
 Metronome_mark_engraver from the Score context and place them into the 
 topmost Staff context?  Then, 'outside-staff-padding should not push 
 them above the Lyrics, IIRC.
Yes, thank You.

% -8---
\layout {
  \context {
\Score
  \remove Metronome_mark_engraver
  \remove Mark_engraver
  }
  \context {
\Staff
  \consists Metronome_mark_engraver
  \consists Mark_engraver
  }
}
% -8---

With this section both marks are places right above the staff. And i can
move them up with 'outside-staff-padding, and setting it to 2 already
moves them (so, 2 is measured not from the middle line?..).

But, anyway, in this example i'm using only one Staff, so this means
that *in any case* (regardless one-staff or multi-stave system) i need
to remove and re-attach those engravers to get 'outside-staff-padding
working for marks --- really?

I believe i've missed something again :-)

Well, since it is 'outside-*staff*-padding, it is related to Staff,
obviously. It's normal.

If i wish to have every staff having its own separate metronome marks
--- something strange, probably,-) ---i need to use two commands to move
them vertically. If i wish to have every staff having its own
RehearsalMarks --- i need to use 'Y-offset.

Looks like that.

Thank You :-)

If You have any other ideas regarding this issue --- please, let me
know :-)

ps. I believe Metronome_mark_engraver should really be in a Score
context and should be movable with either 'outside-staff-padding or
'Y-offset, but not both. So i must be still missing something.

 Cheers,
 Alexander

-- 
  Dmytro O. Redchuk



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


Re: 2.13.11-1: Y-offset for RehearsalMark?

2010-01-28 Thread Kieren MacMillan
Hi Dmytro,

 ps. I believe Metronome_mark_engraver should really be in a Score
 context and should be movable with either 'outside-staff-padding or
 'Y-offset, but not both. So i must be still missing something.

If you turn off collision detection for MetronomeMarks, wouldn't that solve the 
problem?

Just a thought-experiment.
Kieren.

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


Re: 2.13.11-1: Y-offset for RehearsalMark?

2010-01-28 Thread Dmytro O. Redchuk
У чт, 2010-01-28 у 10:19 -0500, Kieren MacMillan пише:
 Hi Dmytro,
 
  ps. I believe Metronome_mark_engraver should really be in a Score
  context and should be movable with either 'outside-staff-padding or
  'Y-offset, but not both. So i must be still missing something.
 
 If you turn off collision detection for MetronomeMarks, wouldn't that solve 
 the problem?
 
 Just a thought-experiment.
Well.. Thanks. This takes some time :)

I'll ask google.

 Kieren.

-- 
  Dmytro O. Redchuk



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


Re: 2.13.11-1: Y-offset for RehearsalMark?

2010-01-28 Thread Alexander Kobel

Dmytro O. Redchuk wrote:

But, anyway, in this example i'm using only one Staff, so this means
that *in any case* (regardless one-staff or multi-stave system) i need
to remove and re-attach those engravers to get 'outside-staff-padding
working for marks --- really?


From the viewpoint of vertical spacing, I guess the lyrics are 
considered as a second staff.  So I'm afraid I think the answer is yes.



Well, since it is 'outside-*staff*-padding, it is related to Staff,
obviously. It's normal.

If i wish to have every staff having its own separate metronome marks
--- something strange, probably,-) ---i need to use two commands to move
them vertically. If i wish to have every staff having its own
RehearsalMarks --- i need to use 'Y-offset.


Well, I'm not quite sure of this one.  'outside-staff-padding should 
already be enough.  Did you test this?  (I didn't, to be honest.)
If I understand you correctly, you're confusing staff and system. 
By default, the Mark_engraver sits in the Score context, which contains 
elements and settings common for all objects inside a system.  By 
default, Marks are only printed once, so they're naturally placed there, 
and printed on top of _all_ staves in the system (by staves, I also 
mean lyrics, chords, ... - essentially all contexts that can be 
contained in a score).
AFAIU, if you add the Mark_engraver to a staff, 'outside-staff-padding 
should only be applied to the very staff the engraver is attached to.



HTH,
Alexander


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


Re: 2.13.11-1: Y-offset for RehearsalMark?

2010-01-28 Thread Dmytro O. Redchuk
У чт, 2010-01-28 у 16:54 +0100, Alexander Kobel пише:
 Dmytro O. Redchuk wrote:
  But, anyway, in this example i'm using only one Staff, so this means
  that *in any case* (regardless one-staff or multi-stave system) i need
  to remove and re-attach those engravers to get 'outside-staff-padding
  working for marks --- really?
 
  From the viewpoint of vertical spacing, I guess the lyrics are 
 considered as a second staff.  So I'm afraid I think the answer is yes.
Yes, i see.

  If i wish to have every staff having its own separate metronome marks
  --- something strange, probably,-) ---i need to use two commands to move
  them vertically. If i wish to have every staff having its own
  RehearsalMarks --- i need to use 'Y-offset.
 
 Well, I'm not quite sure of this one.  'outside-staff-padding should 
 already be enough.  Did you test this?  (I didn't, to be honest.)
What exactly? If i move engraver to Staff context, yes,
'outside-staff-padding is enough, i can move marks up and down.

 If I understand you correctly, you're confusing staff and system. 
 By default, the Mark_engraver sits in the Score context, which contains 
 elements and settings common for all objects inside a system.  By 
 default, Marks are only printed once, so they're naturally placed there, 
 and printed on top of _all_ staves in the system (by staves, I also 
 mean lyrics, chords, ... - essentially all contexts that can be 
 contained in a score).
 AFAIU, if you add the Mark_engraver to a staff, 'outside-staff-padding 
 should only be applied to the very staff the engraver is attached to.
Yes, it's clear, thanks. I, probably, should say: by default
Mark_engraver is attached to Score and 'Y-offset works nice (for
RehearsalMarks, for now, the future is unclear), while
'outside-staff-padding does not work --- to get it working i need to
re-attach Mark_engraver to Staff.

So, my offsets should be increased by two :-)

Thank You!

 HTH,
 Alexander

-- 
  Dmytro O. Redchuk



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


Re: 2.13.11-1: Y-offset for RehearsalMark?

2010-01-28 Thread Dmytro O. Redchuk
У чт, 2010-01-28 у 18:06 +0200, Dmytro O. Redchuk пише:
 Yes, it's clear, thanks. I, probably, should say: by default
 Mark_engraver is attached to Score and 'Y-offset works nice (for
 RehearsalMarks, for now, the future is unclear), while
 'outside-staff-padding does not work --- to get it working i need to
 re-attach Mark_engraver to Staff.
... while MetronomeMarks can be moved by overriding *both* 'Y-offset and
'outside-staff-padding. (By default --- and this is normal --- they're
attached to Score.) This (moving with two overrides) is, anyway, looks
strange?-)

I am optimistic --- i still believe i've missed something :-)

Will dig... tomorrow, i hope.

-- 
  Dmytro O. Redchuk



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


Re: 2.13.11-1: Y-offset for RehearsalMark?

2010-01-25 Thread Dmytro O. Redchuk
У нд, 2010-01-24 у 20:16 +0200, Dmytro O. Redchuk пише:
 У нд, 2010-01-24 у 18:27 +0100, Alexander Kobel пише:
  correct me if I'm wrong, but this looks like the A is actually higher 
  than the other two, and has it's baseline exactly 1 staff-space unit 
  above the top staff-line.  So I guess the Y-offset is calculated w.r.t. 
  the center staff line in 2.13
 Yes, looks like that.
 
   (Joe: is this a bug?),
 i'd say looks like that, because internals reference says[1]:
 The vertical amount that this object is moved relative to its
 Y-parent.
 
  and you probably have to increase the values by 2.
Anyway, what is Y-parent in provided example? The Staff?

This distance should be measured from the nearest point of staff or
from some reference point (middle line?..) of a staff? (Or from the
nearest point of the nearest neighboring object?..)

I mean this can look like intended change, not a regression or bug.

Please, anyone?

My problem is i don't know answers to above questions :-)
(And do know where i could find them --- in the source --- but this is
far too difficult to me, sorry,-)

ps. Thats not a problem, i guess i can increase those values by 2, using
bash, grep, xargs, sed... But i would like to know that this is really
necessary :-)

Thanks!

-- 
  Dmytro O. Redchuk



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


Re: 2.13.11-1: Y-offset for RehearsalMark?

2010-01-25 Thread Joe Neeman
On Sun, 2010-01-24 at 18:27 +0100, Alexander Kobel wrote:
 Dmytro O. Redchuk wrote:
  Hi.
  
  With this example: [...]
\override Score.RehearsalMark #'Y-offset = #3
  [...] 2.12.3 produces correct result (as expected) while 2.13.11 ---
  really unexpected. Attached, please, have i missed something?
 
 Hi, Dmytro,
 
 correct me if I'm wrong, but this looks like the A is actually higher 
 than the other two, and has it's baseline exactly 1 staff-space unit 
 above the top staff-line.  So I guess the Y-offset is calculated w.r.t. 
 the center staff line in 2.13 (Joe: is this a bug?), and you probably 
 have to increase the values by 2.
 For what you actually wanted, I recommend you use 
 'outside-staff-padding, though.

It's a change in behaviour, but I don't think it's a bug (since the
Y-parents of grobs aren't documented anywhere).

Rehearsal marks used to have System as it's Y-parent, so Y-offset was
relative to the top of the system (but not including other grobs that
were created in the Score context, like BarNumber and MetronomeMark). In
other words, the reference point would change if, for example, there
were very high notes on a particular system. Now (for vertical layout
reasons) we move the Rehearsal marks into the top staff, so their Y
refpoint is the center line.

But anyway, I think 'outside-staff-padding is the right thing to do,
since its behaviour is actually documented and so it's much less likely
to change in future releases.

Cheers,
Joe




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


2.13.11-1: Y-offset for RehearsalMark?

2010-01-24 Thread Dmytro O. Redchuk
Hi.

With this example:

% --8
\header {
  tagline = 
}

\relative c'' {
  c c c c
  \override Score.RehearsalMark #'Y-offset = #3
  \mark \default
  c c c c
  \override Score.RehearsalMark #'Y-offset = #0
  \mark \default
  c c c c
  \override Score.RehearsalMark #'Y-offset = #1.5
  \mark \default
  c c c c
}
% --8

... 2.12.3 produces correct result (as expected) while 2.13.11 ---
really unexpected. Attached, please, have i missed something?

-- 
  Dmytro O. Redchuk
attachment: marks-Y-offset--2.12.3-1.pngattachment: marks-Y-offset--2.13.11-1.png___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: 2.13.11-1: Y-offset for RehearsalMark?

2010-01-24 Thread Alexander Kobel

Dmytro O. Redchuk wrote:

Hi.

With this example: [...]
  \override Score.RehearsalMark #'Y-offset = #3
[...] 2.12.3 produces correct result (as expected) while 2.13.11 ---
really unexpected. Attached, please, have i missed something?


Hi, Dmytro,

correct me if I'm wrong, but this looks like the A is actually higher 
than the other two, and has it's baseline exactly 1 staff-space unit 
above the top staff-line.  So I guess the Y-offset is calculated w.r.t. 
the center staff line in 2.13 (Joe: is this a bug?), and you probably 
have to increase the values by 2.
For what you actually wanted, I recommend you use 
'outside-staff-padding, though.



Cheers,
Alexander


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


Re: 2.13.11-1: Y-offset for RehearsalMark?

2010-01-24 Thread Dmytro O. Redchuk
У нд, 2010-01-24 у 18:27 +0100, Alexander Kobel пише:
 Dmytro O. Redchuk wrote:
  Hi.
  
  With this example: [...]
\override Score.RehearsalMark #'Y-offset = #3
  [...] 2.12.3 produces correct result (as expected) while 2.13.11 ---
  really unexpected. Attached, please, have i missed something?
 
 Hi, Dmytro,
Hi, Alexander,

 correct me if I'm wrong, but this looks like the A is actually higher 
 than the other two, and has it's baseline exactly 1 staff-space unit 
 above the top staff-line.  So I guess the Y-offset is calculated w.r.t. 
 the center staff line in 2.13
Yes, looks like that.

  (Joe: is this a bug?),
i'd say looks like that, because internals reference says[1]:
The vertical amount that this object is moved relative to its
Y-parent.

 and you probably 
 have to increase the values by 2.
:O(

Regression?-)

 For what you actually wanted, I recommend you use 
 'outside-staff-padding, though.
Thank you :-)

__
1.
http://lilypond.org/doc/v2.13/Documentation/internals/rehearsalmark#rehearsalmark

 
 Cheers,
 Alexander

-- 
  Dmytro O. Redchuk



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