bug-lilypond
[Top][All Lists]

## Re: Piano centered dynamics are not centered

 From: Urs Liska Subject: Re: Piano centered dynamics are not centered Date: Fri, 15 Oct 2010 09:18:13 +0200 User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.1.10) Gecko/20100512 Thunderbird/3.0.5

```Hi Zoltan,

as far as I can see you are not missing anything.
```
It seems there is still work to be done to optimise the automatic Dynamics placement between staves, see http://code.google.com/p/lilypond/issues/detail?id=1127
```
```
From my experience it works quite well most of the times, you seem to have come across a tricky case (although I have to admit that I don't see what should be tricky about your example).
```
HTH
Urs

Am 12.10.2010 22:41, schrieb Zoltan Selyem:
```
```Hi,

Piano centered dynamics are not centered between the two staves.
Am I missing something?

Thanks!

Zoltan

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% The Learning Manual (A.2.4) says:
%% "The Dynamics context, if placed between staves,
%% will automatically position dynamics correctly."
%% http://www.lilypond.org/doc/v2.13/Documentation/learning/piano-templates
%%
%% However, it seems that dynamics are simply put below the first staff.

\version "2.13.35"

global = {
\key c \major
\time 4/4
}

upper = \relative g' {
\clef treble
g4 g g e | c g e c
}

lower = \relative c {
\clef bass
c2 e | g4 c e g
}

dynamics = {
s1\fff
}

\score {
\new PianoStaff = "PianoStaff_pf"<<
\new Staff = "Staff_pfUpper"<<  \global \upper>>
\new Dynamics = "Dynamics_pf" \dynamics
\new Staff = "Staff_pfLower"<<  \global \lower>>
>>
\layout { }
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

_______________________________________________
bug-lilypond mailing list
```