[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Trivial (?) question re dynamics positioning
From: |
Thomas Ruedas |
Subject: |
Re: Trivial (?) question re dynamics positioning |
Date: |
Mon, 5 Dec 2005 17:52:13 +0100 |
User-agent: |
KMail/1.8.2 |
Hi again,
On Monday 05 December 2005 06:02, David Rogers wrote:
> On 4-Dec-05, at 6:42 PM, Thomas Ruedas wrote:
> > lately I have been wondering about how to position dynamics
> > commands (i.e. f, p, mf, etc.) so that they are exactly in the
> > middle between the two staves of a piano score.
> <http://lilypond.org/doc/v2.7/Documentation/user/lilypond/Piano-
> templates.html#Piano-templates>
thanks for the pointer, David; the example shows exactly what I want -
the only problem is that it didn't work for me when I copied it (and
commented out the pedal stuff, which I don't need here). The example
in the form I tried is given at the end of this mail.
I use 2.6.3 and got the following error:
Interpreting music...
error: unknown translator: `Engraver_group'
If I comment the line \type "Engraver_group", I get the following even
more confusing error:
Interpreting music... /usr/share/lilypond/2.6.3/ly/init.ly:8:3: In
procedure symbol->string in expression (ly:parser-print-book parser
(apply ly:make-book $defaultpaper ...)):
/usr/share/lilypond/2.6.3/ly/init.ly:8:3: Wrong type argument in
position 1 (expecting SYMBOLP): ()
While I don't have the slightest clue what this means, I did not
expect there to be a problem with the Engraver_group, because the
example assumes v.2.6.0, i.e. more or less what I have.
What can I do about this?
Thomas
\score {
\context PianoStaff <<
\context Staff = "upper" << \i >>
\context Dynamics = dynamics \dynamics
\context Staff= "lower" << \ii >>
% \context Dynamics=pedal \pedal
>>
\layout {
\context {
\type "Engraver_group"
\name Dynamics
\alias Voice % So that \cresc works, for example.
\consists "Output_property_engraver"
\override VerticalAxisGroup #'minimum-Y-extent = #'(-1 . 1)
% pedalSustainStrings = #'("Ped." "*Ped." "*")
% pedalUnaCordaStrings = #'("una corda" "" "tre corde")
% \consists "Piano_pedal_engraver"
\consists "Script_engraver"
\consists "Dynamic_engraver"
\consists "Text_engraver"
\override TextScript #'font-size = #2
\override TextScript #'font-shape = #'italic
\override DynamicText #'extra-offset = #'(0 . 2.5)
\override Hairpin #'extra-offset = #'(0 . 2.5)
\consists "Skip_event_swallow_translator"
\consists "Axis_group_engraver"
}
\context {
\PianoStaff
\accepts Dynamics
\override VerticalAlignment #'forced-distance = #7
}
}
}
\score {
\context PianoStaff <<
\context Staff=upper << \i \dynamics >>
\context Staff=lower << \ii \dynamics >>
% \context Dynamics=pedal \pedal
>>
\midi {
\context {
\type "Performer_group"
\name Dynamics
% \consists "Piano_pedal_performer"
}
\context {
\PianoStaff
\accepts Dynamics
}
\tempo 4 = 90
}
}
--