Applying tweaks to one voice in \partCombine: Difference between revisions
m New category |
mNo edit summary |
||
| Line 1: | Line 1: | ||
When using <code>\partCombine</code>, commands applying to a <code>Voice</code> context affect both parts since when are merged in the same Voice. This snippet defines a music function to apply tweaks to all elements of a certain kind in a music expression. This can be used to apply modifications to all grobs caused by elements of a music expression regardless of the context structure. Possible values for the <code>event-class</code> argument are listed at the [ | When using <code>\partCombine</code>, commands applying to a <code>Voice</code> context affect both parts since when are merged in the same Voice. This snippet defines a music function to apply tweaks to all elements of a certain kind in a music expression. This can be used to apply modifications to all grobs caused by elements of a music expression regardless of the context structure. Possible values for the <code>event-class</code> argument are listed at the [{{LILYSTABLEDOC}}/internals/music-classes Internals Reference] | ||
<lilypond version="2.24" | <lilypond version="2.24"> | ||
% | % LSR https://lists.gnu.org/archive/html/lilypond-user/2021-06/msg00242.html | ||
tweakEverywhere = | tweakEverywhere = | ||
| Line 28: | Line 26: | ||
tenor = { des' ees' fes' ges' des' ees' fes' ges' } | tenor = { des' ees' fes' ges' des' ees' fes' ges' } | ||
\partCombineUp \soprano \tweakEverywhere rhythmic-event font-size -3 \tenor | \partCombineUp \soprano \tweakEverywhere rhythmic-event font-size -3 \tenor | ||
\partCombineUp \soprano \tweakEverywhere note-event Accidental.color #red \tenor | \partCombineUp \soprano \tweakEverywhere note-event Accidental.color #red \tenor | ||