[Top][All Lists]

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

Re: Adjustment to tablature output

From: Choan Gálvez
Subject: Re: Adjustment to tablature output
Date: Thu, 10 May 2012 16:11:50 +0200
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.5; rv:12.0) Gecko/20120428 Thunderbird/12.0.1


On 5/10/12 14:33 , David Nalesnik wrote:
Hi Carl,

    I'm pretty sure he wants to use the *baseline* of the characters to
    relative to the staff line.

Ah, OK.  Looking at the examples he's provided I see that that's exactly
what he wants.

    So you can't use tab-note-head::print, since
    it centers the *total extent* of the characters.

    You need to find the character lookup from tab-note-head::print, and use
    the character lookup to get the markup to be displayed, and offset that
    from the staff line.  You'll have to do all the calculations to get
    to the
    right string, I think.

I hadn't thought to look at the markup for the text.  Doing that I see
that it's a vertically centered column.  So using your tips, I get the
following which I think is a step in the right direction:

\new TabStaff
    tablatureFormat = #fret-letter-tablature-format
    \override TabNoteHead #'whiteout = ##f
    \override TabNoteHead #'font-shape = #'italic
    \override TabNoteHead #'stencil = #(lambda (grob)
      (grob-interpret-markup grob (markup->string (ly:grob-property grob
    e' f' fis' g' gis' a' ais' b' c'' cis'' d'' dis'' e'' f'' fis'' g''

(@Choan: is this what you have in mind?)

This looks very nice and it's _exactly_ what I had in mind :)

But that's my opinion, I'm not the OP -- Christopher Webster is.

Choan Gálvez

reply via email to

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