[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Piano Staff: Templates: Centered Dynamics.
From: |
Ferran Auban |
Subject: |
Re: Piano Staff: Templates: Centered Dynamics. |
Date: |
Fri, 3 Sep 2010 08:45:06 -0700 (PDT) |
-Eluze wrote:
>
> what is so different with your code?
>
> if you follow the templates' example you should get it:
>
> dynamics = { … }
>
> \score {
> \new PianoStaff = "PianoStaff_pf" <<
> \new Staff = "Staff_pfUpper" << \global \upper >>
> \new Dynamics = "Dynamics_pf" \dynamics
> \new Staff = "Staff_pfLower" << \global \lower >>
> >>
> \layout { }
> }
>
> it doesn't matter if you have several voices within each Staff!
>
Hi!
Thanks for your answer!
I have tried to adapt your example to my score. However, now both pedal and
dynamics appear under the piano staff. I have tried to put the \new Dynamics
= "Dynamics_pf" \dynamics command in different places, but nothing changes.
The new code is as follows:
\layout {
\context {
\type "Engraver_group"
\name Dynamics
\alias Voice
\consists "Output_property_engraver"
\consists "Piano_pedal_engraver"
\consists "Script_engraver"
\consists "New_dynamic_engraver"
\consists "Dynamic_align_engraver"
\consists "Text_engraver"
\consists "Skip_event_swallow_translator"
\consists "Axis_group_engraver"
pedalSustainStrings = #'("Ped." "*Ped." "*")
pedalUnaCordaStrings = #'("una corda" "" "tre corde")
\override DynamicLineSpanner #'Y-offset = #0
\override TextScript #'font-size = #2
\override TextScript #'font-shape = #'italic
\override VerticalAxisGroup #'minimum-Y-extent = #'(-1 . 1)
}
\context {
\Score
autoBeaming = ##f
\accepts Dynamics
}
}
dynamics={
s4
s2.\pp
-------music----------
% The score definition
\new PianoStaff <<
#(set-accidental-style 'piano)
\set PianoStaff.instrumentName = "Piano"
\context Staff = "sup" <<
\context Voice = "PartPOneVoiceOne" {
\voiceOne
\PartPOneVoiceOne
}
\context Voice = "PartPOneVoiceTwo" {
\voiceTwo
\PartPOneVoiceTwo
}
>>
\new Dynamics = "Dynamics_pf" \dynamics
\context Staff = "inf" <<
\context Voice = "PartPOneVoiceThree" {
\voiceOne
\PartPOneVoiceThree
}
\context Voice = "PartPOneVoiceFour" {
\voiceTwo
\PartPOneVoiceFour
}
>>
\new Dynamics="pedal"\pedal
>>
Can you help me?
Thank you very much!!
--
View this message in context:
http://old.nabble.com/Piano-Staff%3A-Templates%3A-Centered-Dynamics.-tp29612704p29615417.html
Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com.