lilypond-user
[Top][All Lists]
Advanced

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

Re: Decrescendo on last note


From: David Kastrup
Subject: Re: Decrescendo on last note
Date: Wed, 03 Oct 2012 16:47:47 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux)

Jay Anderson <address@hidden> writes:

> I don't consider this a hack. Using parallel spacer rests is a very
> common construct. If it seems ugly then you can always move it to a
> function to hide it away.
>
>
> \version "2.16.0"
>
> endHairpin =
> #(define-music-function (parser location mus) (ly:music?)
>   #{
>     <<
>       { $mus }
>       {
>         <>-\tweak #'minimum-length #5 \>
>         #(skip-of-length #{\scaleDurations #'(9 . 10) $mus #})
>         <>\pp
>       }
>     >>
>   #})
>
> \score
> {
>   \new Staff
>   {
>     c'1 \endHairpin c'1
>   }
> }
>
>
> This function can be made more general (pass in dynamic, hairpin
> length, etc.). However, it does show that you can simplify and hide
> these constructs when desired. The syntax is very adequate for this.

There is a bit of confusion in this statement: the _parser_ may be
adequate in that it allows you to create \endHairpin, a new piece of
user-accessible syntax, to deal with the problem in a nicer way.

It's a bit like saying "the car is not broken since you can just open
the hood, wrap the towing rope that is part of the car's equipment
around the crankshaft and pull to start it, without the need for any
non-included tools".

You get practice with that after a while, but it is sort of
inconvenient.

-- 
David Kastrup




reply via email to

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