\version "2.24.2" \include "TudoBem-guitsolo.ly" \include "TudoBem-guitbase.ly" BothVoices = { << \new Voice = "upper" { \set Staff.midiInstrument = "acoustic guitar (nylon)" \set Staff.midiPanPosition = -0.67 \tempo 4 = 96 \clef "treble_8" { \voiceOne \omit Voice.StringNumber \Upper \magnifyStaff #4/7 \override TextScript.size = 0.8 \repeat percent 5 \Upper \magnifyStaff #1 \CodaUpper } } \new Voice = "lower" { \Fretdiagoptions \clef "treble_8" { \voiceTwo \omit Voice.StringNumber \Lower \magnifyStaff #4/7 \override TextScript.size = 0.8 \repeat percent 5 \Lower \magnifyStaff #1 \override TextScript.size = 1.2 \CodaLower } } >> } \score { \new StaffGroup << \new Staff \with { instrumentName = "Guitar" } \SoloMusiq \new Staff \with { instrumentName = "Guitar" } \BothVoices >> \layout { } } \score { \unfoldRepeats \new StaffGroup << \new Staff \with { instrumentName = "Guitar" } \SoloMusiq \new Staff \with { instrumentName = "Guitar" } \BothVoices >> \midi { } }