[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Offset fermata problem
From: |
Simon Albrecht |
Subject: |
Re: Offset fermata problem |
Date: |
Mon, 5 Oct 2015 20:38:57 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 |
Hello Jacques,
On 05.10.2015 17:25, Menu Jacques wrote:
Hello folks,
I’d like to obtain the following from Poulenc, in which the fermata is
in-between a2 and r4:
based on an idea by David Kastrup I wrote a music function, which
provides a nice interface for this kind of things:
%%%%%%%%%%%%%%%%
\version "2.19.28"
after = #(define-music-function (t e m) (ly:duration? ly:music? ly:music?)
#{ << #m { \skip $t <> -\tweak extra-spacing-width #empty-interval
$e } >> #})
\score {
\relative c'' {
\key f \major \time 2/2 | % 147
\after 4*5/4 \fermata a2 r4
e16 -\markup{\dynamic "ff" \italic "librement"} ^\markup{\bold
"solo"} [ f16 g16 f16 ]
}
}
%%%%%%%%%%%%%%%%%
It has proved an invaluable tool, mostly with placing dynamics: no need
to maintain extra <</>> constructs, much less typing, far easier
readable code. Only drawback: point-and-click doesn’t work for the grobs
created thus, it always points to the music function code.
In case you wonder about the order of arguments: I chose it that way
round to keep it legible with multiple events during one note:
{ \after 4 \< \after 2 \> \after 2. \! c'1 }
Yours, Simon