lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: dashed span bar for ossia


From: Nick Payne
Subject: Re: dashed span bar for ossia
Date: Sat, 09 Oct 2010 20:58:37 +1100
User-agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.9) Gecko/20100915 Thunderbird/3.1.4

In guitar scores I use Postscript to put a dotted line between the main and ossia stave. The value for rlineto will need changing if the distance between the staves changes:

\version "2.13.35"

#(define ossialine "0.07 setlinewidth [0.85 0.25] 0 setdash 0 -3 moveto 0 -5 rlineto stroke")

\new Staff = main \relative c' {
    \key a \major
    \clef "treble_8"
gis16 b e b' e e, b' e gis,, b e b' e e, b' e\mark\markup { \postscript #ossialine }
<<
    {
        gis,,, a' cis e a cis, e a gis,, a' cis e a cis, e a |
    }
        \new Staff \with {
            alignAboveContext = #"main"
            fontSize = #-4
            \override StaffSymbol #'staff-space = #(magstep -4)
            \override StaffSymbol #'thickness = #(magstep -4)
            \remove "Time_signature_engraver"
            \remove "Clef_engraver"
            \override KeySignature #'transparent = ##t
            \override KeySignature #'X-extent = #'(0 . 0)
        }
        {
            \clef "treble_8"
            \key a \major
                gis,16 a cis e a cis, e a gis, a cis e a cis, e a |

        }
>>
}

Nick

On 08/10/10 23:13, carbon14 wrote:


Robin Bannister wrote:

This works with 2.12.3 (I can't test it with 2.12.4!) :

   \override Score.SpanBar #'glyph-name = #"dashed"


This is the right property, but I can't make this work the way I need.

My original example was too simple really.  My piano staff has two staves,
the SpanBars between those should remain solid, but the SpanBar between the
treble staff and the ossia staff should be dashed.

I think that StaffGroup.SpanBar #'glyph-name = #"dashed" should be part of
what I need, but I can't see how I would get the ossia and treble into a
StaffGroup context, within the PianoStaff context.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]