I know I can put \tabChordRepeats before each TabVoice variable to make it work:

\new TabVoice { \voiceOne \tabChordRepeats \upper }
...

The actual question is why the two commands differ.

I see that hideSplitTiedTabNotes is just a list of overrides:

hideSplitTiedTabNotes = {
\override TabVoice.TabNoteHead.details.tied-properties.break-visibility = #all-invisible \override TabVoice.TabNoteHead.details.tied-properties.parenthesize = ##f \override TabVoice.TabNoteHead.details.repeat-tied-properties.note-head-visible = ##f \override TabVoice.TabNoteHead.details.repeat-tied-properties.parenthesize = ##f
}

while the other command is Scheme:

tabChordRepeats =
#(define-music-function (event-types music)
  ((list? '()) ly:music?)
  "Walk through @var{music} putting the notes, fingerings and string
numbers of the previous chord into repeat chords, as well as an
optional list of @var{event-types} such as @code{#'(articulation-event)}."
  #{ \chordRepeats
     #(append '(string-number-event fingering-event) event-types)
     #music
  #})

But on the user perspective it's a bit confusing.

Il giorno dom 12 lug 2015 alle 12:22, Federico Bruni <[email protected]> ha scritto:
In the example below, \hideSplitTiedTabNotes is working while \tabChordRepeats doesn't.
I cannot find the proper place to make it work in that score block.

Any hint appreciated.
Thanks in advance
Federico

\version "2.19.22"

upper = \relative {
  r8 <a-3\4 cis-2\3 e-1\2>~ q4 q8~ 8 q4~ \break |
  q1
}

lower = \relative {
  a,1
}

\score {
  \new StaffGroup <<
    \new Staff { \clef "treble_8" << \upper \\ \lower >> }
    \new TabStaff \with {
      \tabChordRepeats
      \hideSplitTiedTabNotes
      \clef moderntab
    } <<
      \new TabVoice { \voiceOne \upper }
      \new TabVoice { \voiceTwo \lower }
    >>
  >>
  \layout { }
}
_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to