bug-lilypond
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tablatures] tremolos in tablature


From: Marc Hohl
Subject: Re: [tablatures] tremolos in tablature
Date: Tue, 24 Aug 2010 14:50:14 +0200
User-agent: Thunderbird 2.0.0.24 (X11/20100317)

Carl Sorensen schrieb:

On 8/23/10 3:28 PM, "Marc Hohl" <address@hidden> wrote:

Carl Sorensen schrieb:
[...]
It seems that we should use 0.48 times the *actual* staff space, rather than
the default staff space.
Um, after reading your answer twice - it should be the other way round,
isn't it?

Oops, yes, of course.  But this makes the problem a bit harder.  I guess
using the 0.32 instead o 0.48 is probably as good an idea as I can come up
with.....
Ok, so here is a patch. I had to adjust length-fraction as well, and
it is strange that this is somewhat hard-coded in lily/stem-tremolo.cc,
but since the default is 1, it probably doesn't matter.

Marc
Thanks,

Carl



>From 7aa51698d5030faffc04d0024e722650119c5e2f Mon Sep 17 00:00:00 2001
From: Marc Hohl <address@hidden>
Date: Tue, 24 Aug 2010 14:46:45 +0200
Subject: [PATCH] Tablature: support StemTremolo correctly

---
 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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]