On 18 March 2017 at 12:08, David Kastrup wrote:
> Mojca Miklavec writes:
>
>> Is there any way that I could write something like
>>
>>     melody = {
>>         \makethispiano \melodyA
>>         \melodyB
>>         \makethisforte \melodyA
>>     }
>>
>> To avoid having to split the segment
>
> melody = {
>   <>\p \melodyA
>   \melodyB
>   <>\f \meldyA
> }
>
> <> is an empty chord (no duration since it has no notes to give a
> duration to), so it's handy for sneaking in "post-events" (constructs
> needing to be written after a note or chord) when they don't have to be
> attached to particular notes.

Wonderful, it works like a charm.

Thank you very much,
    Mojca

_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to