On 10/5/2017 2:24 PM, Ben wrote:
On 10/5/2017 12:03 PM, Robert Murdoch wrote:
Hi,
I was wondering how to assign a Dynamics context to a PianoStaff...
Hello,
I usually end up creating a separate score for MIDI as well as a
'normal' layout.
I find that is the most efficient way to handle it, especially with
piano in the instrumentation.
What version of LilyPond are you using?
However, I think you could do something like this...
(I saw this elsewhere on the mailing list if I remember correctly)
\version "2.19.65"
right = \relative c'' { c d e f c d e f }
left = \relative c' { c d e f c d e f }
dynamics = { s4\mf\> s4*3 s4\! s4\mp }
\score {
\new PianoStaff <<
\new Staff = "up" \right
\new Dynamics \dynamics
\new Staff = "down" \left
>>
\layout {}
}
\score {
\new PianoStaff <<
\new Staff = "up" <<
\right
\dynamics
>>
\new Staff = "down" <<
\left
\dynamics
>>
>>
\midi {}
}
Does this help?
On 10/6/2017 12:14 AM, Robert Murdoch wrote:
Thank you for taking the time to respond, but I'm afraid it didn't
work. I'm using 2.19.65. I asked this because assigning dynamics to
every voice—even in a separate midi block—is really tedious.
Robert,
I am confused. What doesn't work with my code that I posted?
If you create a separate 'score' for your MIDI realization (which you
want to have a centered dynamics context for the piano as a whole), it
should be that simple - no need to worry about voices, just create a
dynamics context using similar code to what I posted and set it to apply
to the instrument.
Can you help me understand better what you are not getting to work?
Thanks!
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user