In vocal music, the dynamics are typically placed above the staff, but for 
very high notes, they are shifted left of the note (and down, sometimes even 
inside the staff) to preserve vertical space. 

Unfortunately, I'm not able to achieve this in the current 2.11 tree: Whatever 
I do, the staff spacing is as if the \f is above the note, even if the \f is 
then moved left and down.

So, how can I shift the \f to the left of the note, have if "fall down" (as 
the LSR snippet 232 indicated) and not take up any space above the note? I 
tried several different grob property settings, but for all of them the 
layouting seems to happen before the property moves the \f (some don't even 
move the \f ...). Attached are my attempts with some comments. 

Also, the "solution" indicated in http://lsr.dsi.unimi.it/LSR/Item?id=232 does 
not work with lilypond 2.11.46. The is no "falling down" of shifted dynamics 
to the staff in the latest development versions...

Cheers,
Reinhold

-- 
------------------------------------------------------------------
Reinhold Kainhofer, Vienna University of Technology, Austria
email: [EMAIL PROTECTED], http://reinhold.kainhofer.com/
 * Financial and Actuarial Mathematics, TU Wien, http://www.fam.tuwien.ac.at/
 * K Desktop Environment, http://www.kde.org, KOrganizer maintainer
 * Chorvereinigung "Jung-Wien", http://www.jung-wien.at/
sMusic = \relative c'' { \repeat unfold 5 { c c c c | } }
aMusic = \relative c'' { 
  % no \f, normal spacing:
  c c' c, c | \break
  % \f above high note -> very large spacing
  c c'\f c, c | \break
  % How do I get the \f left of the note, directly above the staff (or even 
  % inside the staff, as is custom in hand-engraved scores to preserve vertical 
  %space)?
  
  % extra-offset is applied after spacing is calculated -> space for the \f is reserve:
  c \once\override DynamicText #'extra-offset = #'(-3 . -3) c'\f c, c | \break
  % Setting X-offset moves the \f horizontally, but does not let it "fall" down 
  % on the staff, setting Y-offset does not have any effect:
  c 
  \once\override DynamicText #'Y-offset = #-3
  \once\override DynamicText #'X-offset = #-3
  c'\f c, c | \break
  % Setting side-axis to X and direction to LEFT does not place it on the left of the note...
  c 
  \once\override DynamicText #'side-axis = #X
  \once\override DynamicText #'direction = #LEFT
  c'\f c, c |  
}


sLyrics = \lyricmode { a b c d e f g h i j k l m n o p q r s t u v w x y z }
aLyrics = \lyricmode { a b c d e f g h i j k l m n o p q r s t u v w x y z }

\score {
  \context ChoirStaff <<
    \context Staff=Sopran <<
      \new Voice=SV { \dynamicUp \sMusic}
    >>
    \new Lyrics=sL \lyricsto SV \sLyrics

    
    \context Staff=Alt <<
      \new Voice=AV { \dynamicUp \aMusic}
    >>
    \new Lyrics=aL \lyricsto AV \aLyrics
  >>
}

Attachment: shiftingDynamics.pdf
Description: Adobe PDF document

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

Reply via email to