|
From: | Stefano Troncaro |
Subject: | Re: Moving a Clef bellow notes in other Staff to save horizontal space? |
Date: | Thu, 9 May 2019 00:15:44 -0300 |
\version "2.19.83"
\language "english"
toL = { \change Staff = "LH" }
toR = { \change Staff = "RH" }
blb-offsetClefXExtentCar =
#(define-scheme-function (v) (number?)
(lambda (grob)
(let ((x-ext (ly:grob-property grob 'X-extent #f)))
(ly:grob-set-property! grob 'X-extent (cons
(+ (car x-ext) v)
(cdr x-ext))))))
\new PianoStaff <<
\new Staff = "RH" \relative {
\time 2/4
r4 \toL c'16 \toR e' d e |
R2
}
\new Staff = "LH" \relative {
r4 s |
\once \override Staff.Clef.before-line-breaking = \blb-offsetClefXExtentCar 0.7
\clef F <g c,>4 r
}
>>
Hi Stefano,
> I've been searching but have been unable to figure out a solution to this one.
How about something like:
\once \override Staff.Clef.X-extent = #empty-interval
\once \override Staff.Clef.X-offset = #-2.5
\clef F <g c,>4 r
I tried \tweak versions, but couldn’t solve it that way, and couldn’t spend more time working on it.
Hope this helps!
Kieren.
________________________________
Kieren MacMillan, composer
‣ website: www.kierenmacmillan.info
‣ email: address@hidden
[Prev in Thread] | Current Thread | [Next in Thread] |