|
From: | David Nalesnik |
Subject: | Re: centering text on a measure |
Date: | Tue, 4 Oct 2011 20:35:38 -0500 |
Hi David,
I'm only a musician and music-teacher without any previous programming-experience, trying to learn scheme and to dive into lilypond-internals deeper and deeper. So excuse me if I remark some moonshine. :)
Regarding the idea of defining custom-properties I thought: What could be done with such a property? After defining a name, the needed type of argument and the description - give it functionality. At first, I thought about rebuilding an existent renamed property. But how?
(x-y-offset ,pair? "Rebuild extra-offset")\version "2.14.2"
#(define (define-grob-custom-property symbol type? description)
(if (not (equal? (object-property symbol 'backend-doc) #f))
(ly:error (_ "symbol ~S redefined") symbol))
(set-object-property! symbol 'backend-type? type?)
(set-object-property! symbol 'backend-doc description)
symbol)
#(define all-user-grob-custom-properties
(map
(lambda (x)
(apply define-grob-custom-property x))
`(
)))
\relative c' {
\override TextScript #'x-y-offset = #'(1 . 1)
c1-"hello"
}This does nothing (of course not)!
Maybe I'm wrong, but I thought adding an interface could be the solution. If not, how to do?
Many thanks for all the fine functions you've created!!
center-between3.ly
Description: Binary data
center-between3.png
Description: PNG image
[Prev in Thread] | Current Thread | [Next in Thread] |