[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Assign Dynamics Context to PianoStaff for MIDI
From: |
Robert Murdoch |
Subject: |
Re: Assign Dynamics Context to PianoStaff for MIDI |
Date: |
Fri, 6 Oct 2017 13:16:50 +0100 |
User-agent: |
Mozilla/5.0 (Windows NT 6.3; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 |
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?