[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
pitched rests in TabStaff !?
From: |
Thomas Morley |
Subject: |
pitched rests in TabStaff !? |
Date: |
Sun, 30 Oct 2016 02:15:25 +0200 |
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
- pitched rests in TabStaff !?,
Thomas Morley <=