lilypond-user
[Top][All Lists]
Advanced

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

"Quote" Chord Track in another Staff


From: sir.teddy.the.first
Subject: "Quote" Chord Track in another Staff
Date: Sat, 8 Feb 2020 12:42:07 +0100

Hi all,

please consider the following snippet:

 

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\version "2.19.83"

 

notes = \relative c' {

  \repeat unfold 8 {

    c4 d e f |

  }

}

 

otherNotes = \relative c' {

  c1 d e f g^\markup "C" a^\markup "D" b c

}

 

chordTrack = \chordmode {

  \repeat unfold 2 {

    c1 d e f |

  }

}

 

\score {

  <<

  \new ChordNames \chordTrack

  \new Staff \notes

  \new Staff \otherNotes

  >>

}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

 

I’ve got the normal chords at the top and I would like to have parts of that chord-track again over the second staff (simulated with the two markup-commands).

Of course I could just use a second variable containing only the chords I want and leaving the rest blank, but I’m curious if there is a way to re-use the first chords.

How can this be done in a more “elegant” way?

 

Thanks in advance


reply via email to

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