Applying tweaks to one voice in \partCombine: Difference between revisions

Import snippet from LSR
 
m New category
 
(2 intermediate revisions by 2 users not shown)
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 [http://lilypond.org/doc/v2.18/Documentation/internals/music-classes Internals Reference]
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 [http://lilypond.org/doc/v2.18/Documentation/internals/music-classes Internals Reference]


<lilypond version="2.24.0" full>
<lilypond version="2.24" full>
%% Original thread: https://lists.gnu.org/archive/html/lilypond-user/2021-06/msg00242.html
%% Original thread: https://lists.gnu.org/archive/html/lilypond-user/2021-06/msg00242.html


Line 34: Line 34:


[[Category:Simultaneous notes]]
[[Category:Simultaneous notes]]
[[Category:Snippet]]