[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Merging dynamics with music
From: |
David Kastrup |
Subject: |
Re: Merging dynamics with music |
Date: |
Sat, 16 Sep 2023 15:11:06 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
mskala@ansuz.sooke.bc.ca writes:
> Thank you. That works for the given example. However, with more
> complicated music that already contains multiple voices (as is typical of
> the piano music where a between-staff Dynamics context would be used in
> the first place), it doesn't work. For example:
>
> MyMusic = { << { c'1 c'1 } \\ { e'1 e'1 } >> }
> MyDynamics = { s1\ppp s1\fff }
>
> \score {
> \new Voice << \MyMusic \MyDynamics >>
> \layout { }
> \midi { }
> }
>
> With that code all the notes end up at default velocity.
>
> You mention that Dynamic_performer "lives at Voice level" by default. Is
> this a default I can override, and would that help?
Yes, and yes.
\midi {
\context {
\Voice
\remove Dynamic_performer
}
\context {
\Staff
\consists Dynamic_performer
}
}
--
David Kastrup