My case is that I have some notes that may be played on guitars with differing turnings.  To accomplish this I would like to separate the fret specifics from the actual notes. What is happening is that only the first section of music reflects the fret details for a given tuning.  Following is a trimmed down example with just two measures along with result screen shots.

\version "2.24.2"

\language "english"

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

bckngNotes = \relative c' {
  b'1 |
}

gtrBackingNoteDetails = {
  \set restrainOpenStrings = ##t
  \set minimumFret = #12
  s1 |
}

verseScore = <<
  \tag #'gtrBackingNotes \context TabStaff = "gtrBackingNotes"
  << \bckngNotes \gtrBackingNoteDetails >>

>>

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

bckngNotes = \relative c' {
  b1 |
}

gtrBackingNoteDetails = {
  \set restrainOpenStrings = ##t
  \set minimumFret = #4
  s1 |
}

chorusScore = <<
  \tag #'gtrBackingNotes \context TabStaff = "gtrBackingNotes"
  << \bckngNotes \gtrBackingNoteDetails >>

>>

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
fullScore = {
  \verseScore
  \chorusScore
}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\book {
  \score {
    <<
      \keepWithTag #'(gtrBackingNotes)
      \fullScore
    >>
  }
}


Here is a screen shot of the result.  What I was hoping for is that the second measure would indicate the 4th fret.

fullScore = {
  \verseScore
  \chorusScore
}

If I flip the verse and chorus measures I get and would have wanted the second measure to be 12.

fullScore = {
  \chorusScore
  \verseScore
}


Walt

Reply via email to