Hi all,

I created a simple function which helps handle chords when using
\autochange, but although the function works great I get some warning
messages. This is the code:

\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''
}

It outputs 4 warning messages, two for each chord, like this one: warning:
cannot find context to switch to \autochord   <d' f'>

Am I doing something wrong here?

Cheers,
Gilberto



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

_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to