Re: help with moving dynamic marks needed

2010-10-18 Thread James

Hello,

On 18/10/2010 06:21, Xavier Scheuer wrote:

2010/10/18 Janek Warchołlemniskata.bernoull...@gmail.com:

I've tried doing some things described here, but i don't understand them
well enough and it didn't work like i wanted :(


The reason is that while the previous example in the documentation 
*does* move the symbol around, it doesn't actually change the spacing 
algorithm, and the spacing is still calculated 'as if' the symbol was 
where it originally was before you tried to move it.


The '\tweak' does cause the symbol to be moved as well but the spacing 
is calculated based on the final location of where the symbol ends up 
not where it was to start with.


This was why (as Janek pointed out) the example has been changed in a 
later 2.13.x version of the documentation and will also be in the 
forthcoming 2.14.


James


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


Re: help with moving dynamic marks needed

2010-10-18 Thread Vicente Solsona

On Mon, 18 Oct 2010 12:43:18 +0200, James james.l...@datacore.com wrote:

On 18/10/2010 06:21, Xavier Scheuer wrote:

2010/10/18 Janek Warchołlemniskata.bernoull...@gmail.com:
I've tried doing some things described here, but i don't understand  
them

well enough and it didn't work like i wanted :(


The reason is that while the previous example in the documentation  
*does* move the symbol around, it doesn't actually change the spacing  
algorithm, and the spacing is still calculated 'as if' the symbol was  
where it originally was before you tried to move it.


The '\tweak' does cause the symbol to be moved as well but the spacing  
is calculated based on the final location of where the symbol ends up  
not where it was to start with.


This was why (as Janek pointed out) the example has been changed in a  
later 2.13.x version of the documentation and will also be in the  
forthcoming 2.14.


James


exactly. and this is precisely the usefulness of extra-offset IMO, just  
that it was used in the wrong example :).


What is the most elegant solution for moving the dynamic marks in such a  
way

that LilyPond could calculate vertical system spacing with knowledge that
dynamics are moved?


Janek, note that this line in your code raises an error:


fis4 d4 d'4- \tweak #'extra-offset #'( 2 . 4) ^\f d4-


extra-offset does not affect spacing and can't be tweaked afaik (you'd  
have to \override it to work); in your case, you have to tweak X-offset  
and Y-offset, which actually do affect spacing:


fis4 d4 d'4--\tweak #'X-offset #-2.7 -\tweak #'Y-offset #2.5 ^\f d4- |

HTH.

greetings,

Vicente


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


Re: help with moving dynamic marks needed

2010-10-18 Thread Xavier Scheuer
On 18 October 2010 20:53, Vicente Solsona vice...@lavabit.com wrote:

 Janek, note that this line in your code raises an error:

 fis4 d4 d'4- \tweak #'extra-offset #'( 2 . 4) ^\f d4-

 extra-offset does not affect spacing and can't be tweaked afaik (you'd
 have to \override it to work); in your case, you have to tweak X-offset and
 Y-offset, which actually do affect spacing:

 fis4 d4 d'4--\tweak #'X-offset #-2.7 -\tweak #'Y-offset #2.5 ^\f d4- |

No, you can perfectly tweak 'extra-offset .
The error was that one _need_ a dash before the tweak command (always).

  fis4 d4 d'4- -\tweak #'extra-offset #'( 2 . 4) ^\f d4-

works perfectly.  But for the intended result 'X-offset and 'Y-offset
tweaks are better.

Cheers,
Xavier

-- 
Xavier Scheuer x.sche...@gmail.com

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


help with moving dynamic marks needed

2010-10-17 Thread Janek Warchoł
Hi,

below is a piece of a well-known chorus :) Unfortunately, high bass notes
with accents and forte mark, combined with tenor lyrics, add up to
incredible between-staff-space, and in effect unacceptable system height...
I've tried doing some things described
herehttp://lilypond.org/doc/v2.12/Documentation/user/lilypond-learning/Moving-objects#Moving-objects,
but i don't understand them well enough and it didn't work like i wanted :(
What is the most elegant solution for moving the dynamic marks in such a way
that LilyPond could calculate vertical system spacing with knowledge that
dynamics are moved?
In short, how to achieve what is in attachment with minimal fuss?

Sorry for such a basic question, but i'm tired by spending over an hour
trying to understand all these overrides  co...

\version 2.12.3

\score { 
\new Voice = alto {
\clef treble
 \relative c' {
d2 d4 - ^\f d4- |
d4- r8 a'8 b8  a8  r8 a8 |
 }
}
\new Lyrics = altolyrics \lyricsto alto \lyricmode { ver, King of Kings, for
e -- ver and }
 \new Voice = tenor {
\clef treble_8
 \relative c' {
a2 d4 - ^\f d4- | d1- ~ |
}
 }
\new Lyrics = tenorlyrics \lyricsto tenor \lyricmode { ver, King of Kings, }
 \new Voice = bass {
\clef bass
 \relative f {
fis4 d4 d'4- \tweak #'extra-offset #'( 2 . 4) ^\f d4- |
 d4- r8 fis,8 g8  d8  r8 fis8 |
}
}
 \new Lyrics = basslyrics \lyricsto bass \lyricmode { e -- ver, King of
Kings, for e -- ver and }

}

best regards,
Jan Warchol
attachment: moving dynamics.png___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: help with moving dynamic marks needed

2010-10-17 Thread Xavier Scheuer
2010/10/18 Janek Warchoł lemniskata.bernoull...@gmail.com:

 Hi,
 below is a piece of a well-known chorus :) Unfortunately, high bass notes
 with accents and forte mark, combined with tenor lyrics, add up to
 incredible between-staff-space, and in effect unacceptable system height...
 I've tried doing some things described here, but i don't understand them
 well enough and it didn't work like i wanted :(
 What is the most elegant solution for moving the dynamic marks in such a way
 that LilyPond could calculate vertical system spacing with knowledge that
 dynamics are moved?
 In short, how to achieve what is in attachment with minimal fuss?
 Sorry for such a basic question, but i'm tired by spending over an hour
 trying to understand all these overrides  co...

Hi!

You are right, the doc NR 4.6.2 Changing spacing is inaccurate.
This has been reported a few days ago and has already been corrected in
the dev version of the doc (2.13), thanks to Vicente Solsona.


On 20 September 2010 19:12, Vicente Solsona vice...@lavabit.com wrote:
 hello,

 the example in the third entry of NR 4.6.2 Changing spacing is inaccurate
 afaik:

 -8-

 e4 c g\f c
 \override DynamicText #'extra-offset = #'( -2.2 . 2.0)
 e4 c g\f c

 -8-

 #'extra-offset does *not* affect vertical nor horizontal spacing, so it
 does not save vertical space. we have to disable the collision first so
 the dynamics don't take vertical space and then move it for aesthetical
 purposes, so the valid example should be (after a native english revision):

 -8-


 my suggestion for the example is then:

 -8


 e4 c g\f c
 e4 c g-\tweak #'X-offset #-2.7 -\tweak #'Y-offset #2.5 \f c

 -8

http://lists.gnu.org/archive/html/bug-lilypond/2010-09/msg00309.html
http://code.google.com/p/lilypond/issues/detail?id=1282

Cheers,
Xavier

-- 
Xavier Scheuer x.sche...@gmail.com

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