lilypond-user
[Top][All Lists]
Advanced

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

Re: Multiple-staff ossia


From: Siska Ádám
Subject: Re: Multiple-staff ossia
Date: Sat, 7 Apr 2012 17:13:52 +0200

On 2012.04.07., at 16:16, Phil Holmes wrote:
> ----- Original Message ----- From: "Siska Ádám" <address@hidden>
> To: "lilypond-user Users" <address@hidden>
> Sent: Saturday, April 07, 2012 2:05 PM
> Subject: Multiple-staff ossia
> 
> 
> Dear List,
> 
> 
> is there a way to create a multiple-staff ossia? I need to expand a divisi 
> section in a string part score that lasts a couple of bars only. The basic 
> idea would be to have a StaffGroup that starts in the middle of the page (at 
> the point where the divisi section begins) and which end at the end of the 
> divisi section. I tried the same solution that works for single-stave ossias 
> as explained in the Documentation, but unfortunately that doesn't work (the 
> main problem is that the bracket starts at the beginning of the line and also 
> it was not possible to assign instrumentName and/or shordInstrumentName 
> values to the ossia staves created that way).
> 
> 
> Thank you for any help,
> Ádám
> 
> 
> ===============================================
> 
> From your description, I'm not sure what you're trying to do.  Could you 
> provide a small graphic showing what you have, and another edited version to 
> show what you want?
> 
> --
> Phil Holmes


Dear Phil,


in the meantime I almost solved it, you'll find my current solution with some 
dummy minimal-example material at the end of this mail. What I'm still missing 
here is the ability of giving instrument names (like 1, 2, 3 etc.) to the ossia 
staves.


Thanks,
Ádám

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\version "2.14.2"
\score {
  \new Staff = "main" {
      \relative c' {
        \clef treble \time 4/4
        % Example played by all strings
        c4 d e f
        % Example played divisi
        <<
          % Main material
          { <c d e f g>1^"div." \glissando <g' f e d c>1 \glissando <c, d e f 
g> }
          % Ossia staves explaining how to make the glissandi
          \new StaffGroup \with {
            alignAboveContext = #"main"
            fontSize = #-3
            \override StaffSymbol #'staff-space = #(magstep -4)
            \override SpanBar #'transparent = ##t
            \override BarLine #'transparent = ##t
            \override StaffGrouper #'staff-staff-spacing #'minimum-distance = #0
            \override StaffGrouper #'staff-staff-spacing #'basic-distance = #0
            \override SystemStartBracket #'X-offset = #0
          } <<
            \new Staff \with { \remove "Time_signature_engraver" } {
              \relative c' {
                \clef treble c1 \glissando g'1 \glissando c,1
              }
            }
            \new Staff \with { \remove "Time_signature_engraver" } {
              \relative c' {
                \clef treble d1 \glissando f1 \glissando d1
              }
            }
            \new Staff \with { \remove "Time_signature_engraver" } {
              \relative c' {
                \clef treble e1 \glissando \hideNotes e128 \unHideNotes 
\stopStaff \once \override TextScript #'Y-offset = #-0.5 s4^"etc."
              }
            }
            \new Staff \with { \remove "Time_signature_engraver" } {
              \relative c' {
                \clef treble f1 \glissando d1 \glissando f1
              }
            }
            \new Staff \with { \remove "Time_signature_engraver" } {
              \relative c' {
                \clef treble g'1 \glissando c,1 \glissando g'1
              }
            }
          >>
        >>
        % Example played by all strings
        f4 e d c
    }
  }
  % Increase glissando visibility
  \layout { \context { \Voice \override Glissando #'thickness = #3 } }
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%




reply via email to

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