Hello Simon, Thanks a lot to DK and yourself, this « after » function is awesome!
JM > Le 5 oct. 2015 à 20:38, Simon Albrecht <[email protected]> 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 > [email protected] > https://lists.gnu.org/mailman/listinfo/lilypond-user _______________________________________________ lilypond-user mailing list [email protected] https://lists.gnu.org/mailman/listinfo/lilypond-user
