lilypond-devel
[Top][All Lists]
Advanced

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

Re: Document <> and improve other simultanous music documentation. (issu


From: David Kastrup
Subject: Re: Document <> and improve other simultanous music documentation. (issue 6248080)
Date: Sat, 02 Jun 2012 09:28:02 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux)

"Keith OHara" <address@hidden> writes:

> On Fri, 01 Jun 2012 23:26:57 -0700, <address@hidden> wrote:
>
>> The intent of the examples is to show equivalences.  Of course, only one
>> of the equivalences is ever needed.  At this section of the manual, more
>> complex/abstract constructs that are _better_ solved using <> and/or
>> parallel music are not easy to come by without exceeding the complexity
>> already understood by the reader.
>
>> So I welcome any examples/passages which do the job better.
>
>  music = \relative c'' { e16 d c d }
>  { f'4 <>\marcato \music r <>^"smorz." \mp \> \music <>\! }

Incidentally, something like
atLast =
#(define-music-function (parser location post music)
   (ly:event? ly:music?)
   (let ((final
          (fold-some-music
           (lambda (m) (or (music-is-of-type? m 'rhythmic-event)
                           (music-is-of-type? m 'event-chord)))
           (lambda (m p) m)
           #f
           music)))
     (if final
         (set! (ly:music-property final 'articulations)
               (cons post (ly:music-property final 'articulations)))
         (ly:music-warning music "No place for post-event"))
     music))

music = \relative c'' { e16 d c d }
{ f'4 <>\marcato \music r <>^"smorz." \mp \> \atLast \! \music }

looks nicer, but is not exactly manual material.

-- 
David Kastrup



reply via email to

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