lilypond-user
[Top][All Lists]
Advanced

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

Re: Ossia with dashed span bars


From: tisimst
Subject: Re: Ossia with dashed span bars
Date: Wed, 30 Dec 2015 23:28:11 -0700 (MST)

Ralph,


Ralph Palmer wrote
> [...] I need dashed span bars between the lower normal staff and
> the ossia staff. I've tried everthing I could think of, using the LSR and
> the Notation Reference, but no luck. I could see what I want, but with
> only
> a single bar line, in the Notation Reference, and an even better one, but
> without the staff group in the LSR
> (http://lsr.di.unimi.it/LSR/Item?id=125,
> "Inserting a temporary ossia"). I couldn't figure out how to use either
> example in my situation.
> 
> Here's my code (and I'm attaching the output "
> 
> %%%% start snippet %%%%%%%%%%%
> 
> \version "2.19.33"
> 
> % Ossia Problem
> 
> %%%%%%%%%%%% YAY!!!! WORKS!!!! %%%%%%%%%%%%%%%%%%
> 
> \language "english"
> 
> FourA =
> \relative c'' {
>   \key fs \minor
>   \time 4/4
> 
>   e4 e cs2 |
>   d4 d b2 |
>   cs4 cs8 b a4 d4 |
>   cs4 cs8 b a4 d |
>   cs4 e b2 |
>   \break
> 
>   % bar 6
>   b'4 b gs2 |
>   a4 a fs2 |
>   gs4 gs8 fs e4 a |
>   gs8 gs gs fs e4 a |
>   gs4 b fs2 |
> }
> 
> 
> 
> FourB =
> \relative c'' {
>   \key fs \minor
>   \time 4/4
> 
>   r2 a4 a |
>   fs2 gs4 gs |
>   e2 fs4 fs8 gs |
>   a4 e fs fs8 gs |
>   a4 e a gs8 fs |
> 
>   % bar 6
>   gs4 b e e8 ds |
>   cs2 e4 ds8 cs |
>   bs2 ds4 ds8 cs |
>   bs4 bs e8 e ds cs |
>   bs2. ds8 cs |
> }
> 
> \defineBarLine "-dashedSpan" #'("" "" "!")
> 
> FourOssia =
> \relative c''' {
>   \key fs \minor
>   \time 4/4
> 
>   s1*5
> 
>   % bar 6
>   gs4 gs gs ds8 cs |
>   b2 ds4 cs8 b |
>   a2 ds4 cs8 b |
>   a4 a~ a8 e' ds cs |
>   b2. ds8 cs |
> }
> 
> 
> \score {
>   <<
>     \new GrandStaff <<
>       \new Staff << \FourA >>
>       \new Staff << \FourB >>
>     >>
>     \new Staff \with {
>       \remove "Time_signature_engraver"
>       fontSize = #-3
>       \override StaffSymbol.staff-space = #(magstep -3)
>       \override StaffSymbol.thickness = #(magstep -3)
>       \override VerticalAxisGroup.remove-first = ##t
>     }
>     << \FourOssia >>
>   >>
> 
>   \header {
>     piece = "Song"
> 
>   }
>   \layout {
>     \context {
>       \Staff \RemoveEmptyStaves
>     }
>   }
> }
> 
> %%%%% end snippet %%%%%%%
> [...]
> I'm grateful for any help!

Here's one way to do it. Put the GrandStaff (should it be a PianoStaff?) and
the Ossia staff within a StaffGroup, setting the StaffGroup's SpanBar to
dashed "!". This will override the internal GrandStaff's SpanBar, so it has
to be reset back to solid "|". And finally, remove the StaffGroup's
System_start_delimiter_engraver to get rid of the bracket at the beginning
of each system because you don't need/want it. Here's the updated \score
code:

%<-------------- SNIP ----------------

\score {
  \new StaffGroup \with {
    \override SpanBar.glyph-name = #"!"
    \remove System_start_delimiter_engraver
  } <<
    \new GrandStaff \with {
      \override SpanBar.glyph-name = #"|"
    } <<
      \new Staff << \FourA >>
      \new Staff << \FourB >>    
    >>
    \new Staff \with {      
      \remove "Time_signature_engraver"
      fontSize = #-3
      \override StaffSymbol.staff-space = #(magstep -3)
      \override StaffSymbol.thickness = #(magstep -3)
      \override VerticalAxisGroup.remove-first = ##t      
    } << \FourOssia >>
  >>
  
  \header { 
    piece = "Song"

  }
  \layout { 
    \context {
      \Staff \RemoveEmptyStaves       
    } 
  }
}

%<-------------- SNIP ----------------

HTH,
Abraham

add-dashed-spanbar-to-ossia-staff.png
<http://lilypond.1069038.n5.nabble.com/file/n185379/add-dashed-spanbar-to-ossia-staff.png>
  



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Ossia-with-dashed-span-bars-tp185371p185379.html
Sent from the User mailing list archive at Nabble.com.



reply via email to

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