lilypond-user
[Top][All Lists]
Advanced

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

Re: breaking chords with \autochange


From: Gilberto Agostinho
Subject: Re: breaking chords with \autochange
Date: Fri, 18 Dec 2015 09:01:58 -0700 (MST)

Hi all,

I am so sorry, I pasted the wrong code in my first post... :-( Obviously the
function needs a second argument, and that's the correct code below:

\version "2.19.32"

autochord = #(define-music-function
     (parser location chordDown chordUp)
     (ly:music? ly:music?)
      #{
        <<
          {
            \oneVoice \change Staff = "down" $chordDown 
          }
          \\
          {
            \oneVoice \change Staff = "up" $chordUp 
          }
        >>
      #}
     )

\autochange {
  c c 
  \autochord   <d' f'>
  c 
  c'' c''
  \autochord   <d' f'>
  c''
}

Which outputs:

<http://lilypond.1069038.n5.nabble.com/file/n184865/26.png> 

So basically what I am trying to do is to create a function that helps
breaking a chord down into two halves when using \autochange, since the
latter only considers the bottom note of a chord and place it in a single
staff (as opposed to breaking it down into two). This has been previously
discussed here:
https://lists.gnu.org/archive/html/lilypond-user/2007-06/msg00376.html

Cheers,
Gilberto



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/breaking-chords-with-autochange-tp184833p184865.html
Sent from the User mailing list archive at Nabble.com.



reply via email to

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