lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Assign Dynamics Context to PianoStaff for MIDI


From: Ben
Subject: Re: Assign Dynamics Context to PianoStaff for MIDI
Date: Thu, 5 Oct 2017 14:24:23 -0400
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0

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?

reply via email to

[Prev in Thread] Current Thread [Next in Thread]