On Thu, Sep 11, 2025 at 3:37 PM Walt North <waltno...@gmail.com> wrote:
> For some reason my replies don't seem to be making back to the user > list. Will try one more time - apologies if this ends up being a > duplicate. > > -------------------- > > In my attempt to keep the example trimmed down I ended up leaving out > key details. So I have some stuff back in. And some of the stuff would > be hiding in include files but they are included in this example. > > The goal is to have two or more verse/chorus sets of notes. Normally > there would be chord symbols etc. The notes would be backing notes > behind the vocal and I have left the vocal stuff out. The backing notes > can be played on either a standard guitar tuning or on a steel guitar C6 > tuning. So depending on the note sequence run, the frets and strings > used would differ depending what instrument they are being played on. > My goal is to define the note sequence once and then fill in any > specific instrument fretting/string details as needed. In this made up > example set of notes I would want the fist measure of the verse and the > first measure of the chorus to use default fretting and strings. The > second measure would want to start on a specific fret and for the last > note to specify a string. Again... just a made up example to demonstrate > what I'm trying to do. Eventually after I get this working some of the > boiler plate stuff would be in include files. > I've taken your code and tried to simplify as much as possible to get the functionality I think you want. The "details" portions only set up the appropriate stringTunings and tablature settings. They contain no notes. The notes are in their own variable. The spacing needed to get the tuning changes in the appropriate locations are placed in parallel with the notes. The resulting code has the first bar in guitar-tuning, the second and third bars in the steel guitar tuning, and the last bar in guitar-tuning. I think this is what you want, and I believe this is the best way to get it. You can use tags as desired to get things set up to look like this for different parts. HTH, Carl %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \version "2.24.2" \language "english" steelGuitarSixStringCSixTuning = \stringTuning <c e g a c' e'> bckngNotes = \relative c' { d,8 e f g a b c d | d, e f g a b c d | } gtrBackingNoteDetails = { \set Staff.stringTunings = #guitar-tuning | \set restrainOpenStrings = ##t \set minimumFret = #3 } stlBackingNoteDetails = { \set Staff.stringTunings = \steelGuitarSixStringCSixTuning | \set restrainOpenStrings = ##t \set minimumFret = #2 } fullScore = { \new TabStaff{ << {s1 \stlBackingNoteDetails s1} \bckngNotes >> <<{s1 \gtrBackingNoteDetails s1} \bckngNotes>> } } \score{ \fullScore } %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%