[PATCH] Tablature: support StemTremolo correctly

[ Thread Index | Date Index | More lilynet.net/tablatures Archives ]


---
 ly/engraver-init.ly |    6 ++++++
 ly/property-init.ly |    1 +
 2 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/ly/engraver-init.ly b/ly/engraver-init.ly
index 6ecba2d..a27e4d6 100644
--- a/ly/engraver-init.ly
+++ b/ly/engraver-init.ly
@@ -725,6 +725,11 @@ context."
   %% too big. We have to adjust the beam settings:
   \override Beam #'beam-thickness = #0.32
   \override Beam #'length-fraction = #0.62
+  %% the same goes for tremolo beams
+  \override StemTremolo #'beam-thickness = #0.32
+  \override StemTremolo #'length-fraction = #0.67
+  %% NOTE: in lily/stem-tremolo.cc, we have length-fraction = 1,
+  %% and the tablature staff space is scaled by 1.5, so we use 1/1.5=0.67
 
   %% No accidental in tablature !
   \remove "Accidental_engraver"
@@ -744,6 +749,7 @@ context."
   autoBeaming = ##f
   %% remove beams, dots and rests ...
   \override Beam #'stencil = ##f
+  \override StemTremolo #'stencil = ##f
   \override Dots #'stencil = ##f
   \override Rest #'stencil = ##f
   \override MultiMeasureRest #'stencil = ##f
diff --git a/ly/property-init.ly b/ly/property-init.ly
index 0b1f2a2..5a60e0e 100644
--- a/ly/property-init.ly
+++ b/ly/property-init.ly
@@ -415,6 +415,7 @@ tabFullNotation = {
   \revert NoteColumn #'ignore-collision
   % beams, dots
   \revert TabVoice.Beam #'stencil
+  \revert TabVoice.StemTremolo #'stencil
   \revert TabVoice.Dots #'stencil
   \revert TabVoice.Tie #'stencil
   \revert TabVoice.Tie #'after-line-breaking
-- 
1.5.4.3


--------------050509000608080008080100--



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/