[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Double key signature
From: |
Janek Warchoł |
Subject: |
Re: Double key signature |
Date: |
Wed, 25 Jun 2014 08:25:37 +0200 |
2014-06-25 5:14 GMT+02:00 Keith OHara <address@hidden>:
> Pierre Perol-Schneider <pierre.schneider.paris <at> gmail.com> writes:
>
>> On the french list we are working on a Merulo score with an 8 lines
> staff, 2 clefs and 2 key signature
>
>> As you can notice, I still have to manually set the distance between the
> key signatures.
>
> LilyPond supports custom key signatures, and will print this for d\minor
> if you ask for an extended range of printed flats:
>
> \new Staff
> \with {
> \override StaffSymbol.line-count = #8
> \override KeySignature.flat-positions = #'((-7 . 6))
> \override KeyCancellation.flat-positions = #'((-7 . 6))
> % presumably sharps are also printed in both octaves
> \override KeySignature.sharp-positions = #'((-6 . 7))
> \override KeyCancellation.sharp-positions = #'((-6 . 7))
> \override Clef.stencil = #
> (lambda (grob)(grob-interpret-markup grob
> #{ \markup\combine
> \musicglyph #"clefs.C"
> \translate #'(0.9 . -2) \musicglyph #"clefs.F"
> #}))
> clefPosition = #1
> middleCPosition = #1
> middleCClefPosition = #1
> } {
> \key d\minor
> \time 4/4 R1
> }
>
> You might like \translate, in units of staff spaces, in place of \vspace.
Wow! That's awesome - i didn't realize LilyPond can do this, i thought
that the solution would have to be to duplicate the stencil and
translate it by an octave (as opposed to creating two stencils and
aligning them manually).
If i had more time, i'd write a post about this on Scores of Beauty...
LilyPond rocks!!