[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Ambitus
From: |
Neil Puttock |
Subject: |
Re: Ambitus |
Date: |
Sun, 31 Jan 2010 16:51:40 +0000 |
On 30 January 2010 13:42, Bertalan Fodor (LilyPondTool)
<address@hidden> wrote:
> I checked the doc and couldn't find an easy way. Perhaps looking at the
> ambitus engraver source code would help more. Actually I think implementing
> tis possibility wouldn't be that hard for a developer.
Here's a quick hack using AmbitusLine:
shiftAmbitusHead =
#(define-music-function (parser location offset) (number?)
#{
\override AmbitusLine #'before-line-breaking =
#(lambda (grob)
(let* ((heads (ly:grob-object grob 'note-heads))
(up-head (ly:grob-array-ref heads 1)))
(ly:grob-set-property! up-head 'X-offset $offset)))
#})
\new Voice \with { \consists Ambitus_engraver }
\relative c' {
\shiftAmbitusHead #3
c4 d e f
g4 a b c
}
Cheers,
Neil
- Ambitus, northofscotland, 2010/01/27