lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Offset fermata problem


From: Jacques Menu
Subject: Re: Offset fermata problem
Date: Mon, 5 Oct 2015 23:34:01 +0200

Hello Simon,

Thanks a lot to DK and yourself, this « after » function is awesome!

JM

> Le 5 oct. 2015 à 20:38, Simon Albrecht <address@hidden> a écrit :
> 
> 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
> 
> _______________________________________________
> lilypond-user mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/lilypond-user




reply via email to

[Prev in Thread] Current Thread [Next in Thread]