On 13/07/10 11:51, Nick Payne wrote:
This ossia just extends for part of a bar:

<< { g'32_( fis) e_( fis) }
        \new Staff \with {
            alignAboveContext = #"guitar"
            fontSize = #-4
            \override StaffSymbol #'staff-space = #(magstep -4)
            \override StaffSymbol #'thickness = #(magstep -4)
            \remove "Time_signature_engraver"
            explicitKeySignatureVisibility = #end-of-line-invisible
        }
        {
            \key g \major
            \clef "treble_8"
            \stemUp \slurDown
            { \times 4/5 { fis32( g fis) e( fis) } }
        } >>

1. How can I move the ossia stave up slightly so that it isn't contacting the beam of the 32nd notes in the main stave?

2. Is it possible to put a vertical dotted/dashed line at the beginning of the ossia from the bottom of the main stave to the top of the ossia stave?
Well to answer my own question, I used a couple of hacks. (1) by putting a blank markup below the ossia stave, and (2) with some Postscript and trial and error with the values:

#(define ossialine "0.07 setlinewidth [0.85 0.25] 0 setdash -1.7 2.9 moveto 0 -11.5 rlineto stroke")

<< { <g'-4>32_( <fis-2>) <e-0>_( fis) }
        \new Staff \with {
            alignAboveContext = #"guitar"
            fontSize = #-4
            \override StaffSymbol #'staff-space = #(magstep -4)
            \override StaffSymbol #'thickness = #(magstep -4)
            \remove "Time_signature_engraver"
            explicitKeySignatureVisibility = #end-of-line-invisible
        }
        {
            \key g \major
            \clef "treble_8"
            \stemUp \slurDown
{ \times 4/5 { fis32_\markup { \postscript # ossialine }( g_\markup { " " } fis) e( fis) } }
        } >>

<<attachment: ossia.png>>

_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to