lilypond-user
[Top][All Lists]
Advanced

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

Re: tablature characters alignment


From: Éditions IN NOMINE
Subject: Re: tablature characters alignment
Date: Fri, 30 Jul 2010 16:14:27 +0200
User-agent: Thunderbird 2.0.0.24 (X11/20100411)

This works perfectly ! Many thanks : that was my last wish before sending my tab template !

Best regards

JMarc

Neil Puttock a écrit :
On 29 July 2010 14:47, Éditions IN NOMINE <address@hidden> wrote:

  
If it is so, my question is : which trick could make all the letters align
on the same line ?
    

You need to find the definition of `fret-letter-tablature-format'
(it's in scm/translation-functions.scm) and tweak it slightly so it
doesn't centre the letters:

(define-public (fret-letter-tablature-format
                context string-number fret-number)
 (let ((labels (ly:context-property context 'fretLabels)))
  ;; changed from make-vcenter-markup
  (make-simple-markup
   (cond
    ((= 0 (length labels))
     (string (integer->char (+ fret-number (char->integer #\a)))))
    ((and (<= 0 fret-number) (< fret-number (length labels)))
     (list-ref labels fret-number))
    (else
     (ly:warning "No label for fret ~a (on string ~a);
only ~a fret labels provided"
                 fret-number string-number (length labels))
       ".")))))

Cheers,
Neil

  

reply via email to

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