Hi,

is it really true we have no viable method to use pitched rests in TabStaff?
Or am I overlooking something?

Some code to play with:

\version "2.19.49"

ps = { e,4 f, g, a, b, c d e f g a b c' d' e' f' g' a' b' c'' }

<<
  \new TabStaff \ps
  \new TabStaff \with { \revert Rest.stencil }
    \transpose c c'
    $(make-sequential-music
      (map
        (lambda (p)
          (make-music 'RestEvent 'duration (ly:make-duration 2) 'pitch p))
        (event-chord-pitches ps)))
>>

What would be a reasonable method to implement (or work around) it?

One could think of using staff-position, but I _want_ the rests transposable.
Maybe creating a restToFretFunction like noteToFretFunction, not sure
where the noteToFretFunction gets it's arguments from, though.
Likely from Tab_note_heads_engraver. That would mean to write a
Tab_rest_engraver

Any other hints?

Thanks,
  Harm

_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to