lilypond-user
[Top][All Lists]
Advanced

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

Re: Learn from Finale 2014 (seriously)?


From: Johan Vromans
Subject: Re: Learn from Finale 2014 (seriously)?
Date: Thu, 14 Nov 2013 14:36:44 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux)

Urs Liska <address@hidden> writes:

> But I often have to do things like
>
> <<
>   {
>     \voiceOne d'4 \oneVoice r \voiceOne d'
>   }
>   \new Voice {
>     \voiceTwo d4 s d
>   }
>>>

For this purpose I once wrote a function:

  \dual {
    g'4 \rr4 g'
  } {
    d'4 s d'
  }

-- Johan

rr =
#(define-music-function
   (parser location dur)
   (ly:duration?)
   #{ \oneVoice #(make-music 'RestEvent 'duration dur) \voiceOne #}
 )

dual =
#(define-music-function
   (parser location one two)
   (ly:music? ly:music?)
   #{ << { \voiceOne #one }
         \new Voice { \voiceTwo #two }
      >>
      \oneVoice
   #}
 )



reply via email to

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