[Top][All Lists]
[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
- Re: Decrescendo on accented whole note, (continued)
Re: Decrescendo on last note, Keith OHara, 2012/10/02
- Re: Decrescendo on last note, Stemby, 2012/10/02
- Re: Decrescendo on last note, Carlo Stemberger, 2012/10/02
- Re: Decrescendo on last note, Joseph Rushton Wakeling, 2012/10/02
- Re: Decrescendo on last note, Keith OHara, 2012/10/03
- Re: Decrescendo on last note, Carlo Stemberger, 2012/10/03
- Re: Decrescendo on last note, Francisco Vila, 2012/10/03
- Re: Decrescendo on last note, Jay Anderson, 2012/10/03
- Re: Decrescendo on last note,
David Kastrup <=
Re: Decrescendo on last note, Joseph Rushton Wakeling, 2012/10/02