[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Putting piano/forte *before* the note
From: |
Mojca Miklavec |
Subject: |
Re: Putting piano/forte *before* the note |
Date: |
Sat, 18 Mar 2017 16:04:28 +0100 |
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