On 06/10/2017 12:15, Ben wrote:
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!
I think my problem is that my score is layered differently in that the
music isn't contained within variables outside the \score block. It
looks something like this:
-----------------------------
EXAMPLE CODE START
-----------------------------
\score
<<
\new PianoStaff = "pianoI" \with {
instrumentName = "Piano"
shortInstrument = "Pno."
} <<
\new Staff = "pianoIRH" <<
\new Voice = "mvmntIVoiceI" \relative c' {
\clef treble
\key c \major
\time 4/4
\oneVoice ...music...
}
\new Voice = "mvmntIVoiceII" \relative c' {
\voiceTwo ...music...
}
>>
\new Dynamics = "pianoID" {
...dynamics...
}
\new Staff = "pianoILH" <<
\new Voice = "mvmntIVoiceIII" \relative c {
\clef bass
\key c \major
\oneVoice ...music...
}
\new Voice = "mvmntIVoiceIV" \relative c {
\voiceTwo ...music...
}
>>
\new Dynamics = "pianoIP" {
...pedal...
}
>>
>>
\layout {
...layout options...
}
}
---------------------------
EXAMPLE CODE END
---------------------------
So when I tried doing what you suggested but applying it to my
formatting choices, I failed.
Does this clarify anything?
_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user