lilypond-user
[Top][All Lists]
Advanced

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

Re: Two questions concerning ossias


From: Nick Payne
Subject: Re: Two questions concerning ossias
Date: Fri, 16 Jul 2010 08:31:28 +1000
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.10) Gecko/20100528 Thunderbird/3.0.5

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
Description: PNG image


reply via email to

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