lilypond-user
[Top][All Lists]
Advanced

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

Re: using lilypond tab for French lute tab


From: Jan Nieuwenhuizen
Subject: Re: using lilypond tab for French lute tab
Date: 24 May 2003 12:16:04 +0200
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3

Laura Conrad <address@hidden> writes:

> Now, the next question is, "How do I raise the letters so that they're
> in the spaces between the lines and not on the lines?"


The tab-note-heads-engraver explicitely denies note heads on the
lines:

      int pos = 2 * tab_string - number_of_strings - 1; // No tab-note between 
the string !!!

so you'll have to use LilyPond's \override mechanism with extra-offset.

Jan.


% lilypond 1.6.x
\version "1.6.10"

#(define (fret-letter-tablature-format string tuning pitch)
   (make-string 1 (integer->char
    (+ (char->integer #\a)
    (- (pitch-semitones pitch)
       (list-ref tuning (- string 1)))))))
tablature =         \notes {
%
%lutes are tuned g c f a d g
    \property TabStaff.stringTunings =  #'(7 0 -7 -15 -22 -29)
%let's not print the stems here
\property TabStaff.Stem \override #'transparent = ##t
%use letters instead of numbers for the fret names
\property TabStaff.tablatureFormat = #fret-letter-tablature-format
    <g'4\1 c'4\2 g4\3 b,4\4> <g'8\1 c'8\2 g8\3 b,8\4>  <g'8\1 c'8\2 g8\3 b,8\4>
<g'4.\1 c'4.\2 g4.\3 b,4.\4> <g'8\1 c'8\2 g8\3 b,8\4> <g'2.\1 c'2.\2 g2.\3 
b,2.\4> <g'4\1 c'4\2 g4\3 b,4\4> 
         }

\score { 
    \context TabStaff {
        \property TabStaff.TabNoteHead \override #'extra-offset = #'(0 . 0.5)
        \tablature
    }
}

-- 
Jan Nieuwenhuizen <address@hidden> | GNU LilyPond - The music typesetter
http://www.xs4all.nl/~jantien       | http://www.lilypond.org





reply via email to

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