[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Dynamics for both staves
From: |
Paulo Matos |
Subject: |
Dynamics for both staves |
Date: |
Fri, 03 Feb 2023 09:02:41 +0100 |
User-agent: |
mu4e 1.8.14; emacs 28.2 |
Hi,
I am trying to apply dynamic marking like piano and so forth to both
staves.
I have the following example:
\version "2.25.2"
right = \relative c'' {
% Music follows here.
c2\p d4 e
}
left = \relative c' {
% Music follows here.
c4\p e g r
}
\score {
\new PianoStaff \with {
instrumentName = "Piano"
} <<
\new Staff = "right" \with {
midiInstrument = "acoustic grand"
} \right
\new Staff = "left" \with {
midiInstrument = "acoustic grand"
} { \clef bass \left }
>>
\layout { }
\midi { }
}
In this case, both piano markings show up under their respective staff
but it would be much nicer and as far as I understand it, how's it's
usually done, to show up between staves.
I have seen the following solution:
\version "2.25.2"
right = \relative c'' {
% Music follows here.
c2 d4 e
}
left = \relative c' {
% Music follows here.
c4 e g r
}
\score {
\new PianoStaff \with {
instrumentName = "Piano"
} <<
\new Staff = "right" \with {
midiInstrument = "acoustic grand"
} \right
\new Dynamics {
s1\p
}
\new Staff = "left" \with {
midiInstrument = "acoustic grand"
} { \clef bass \left }
>>
\layout { }
\midi { }
}
i.e. start a new group called Dynamics and add the dynamics there but
this seems suboptimal as it makes the typesetting separate from the
notes _and_ as far as I understand it, doesn't affect MIDI - and the
first solution does.
Is there a better solution to this?
Thanks,
--
Paulo Matos
- Dynamics for both staves,
Paulo Matos <=