[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Positioning text below notes at the same height
From: |
address@hidden |
Subject: |
Re: Positioning text below notes at the same height |
Date: |
Thu, 02 Aug 2012 19:16:01 +0200 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; rv:14.0) Gecko/20120713 Thunderbird/14.0 |
On 2012-08-02 18:46, Thomas Morley wrote:
fN =
#(define-music-function (parser location fretp) (string?)
(let ((m (make-music 'TextScriptEvent 'text fretp)))
(set! (ly:music-property m 'tweaks)
(acons 'staff-padding 4 (ly:music-property m 'tweaks)))
m))
Hello Thomas,
You almost nailed it! I wanted a box around the fretnumber. changed your
function to this which I'm happy with!
fN =
#(define-music-function (parser location fretp) (string?)
(let ((m (make-music 'TextScriptEvent 'text (markup #:line (#:box
fretp)))))
(set! (ly:music-property m 'tweaks)
(acons 'staff-padding 5 (ly:music-property m 'tweaks)))
m))
Thank you very much for all your help!
// Anders
--
English isn't my first language.
So any error or strangeness is due to the translation.
Please correct my English so that I may become better.