lilypond-user
[Top][All Lists]
Advanced

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

Re: temporary staff for divisi


From: Simon Bailey
Subject: Re: temporary staff for divisi
Date: Wed, 11 Nov 2009 15:14:45 +0100

figured this one out:

On 11 Nov 2009, at 14:56, Stefan Thomas wrote:
I have a last question.
Why is the shortInstrumentName for Violin one solo not shown?

because the staff only just started. lily puts the instrumentName at the beginning of the first line of a staff. (naïve explanation, trying to sound like i know what i'm talking about).

Here the snippet:
\version "2.12.2"
 violineA = \context Staff ="ViolineA"
 { \set Staff.instrumentName = "Violine 1"
  \set Staff.shortInstrumentName="Vlne.1"


   c'' 4 d'' e'' f'' g'' a'' b'' c'''\break
 <<
   \new Staff \with { alignAboveContext = "ViolineA" }
{ \set Staff.shortInstrumentName="Vlne. 1 solo" %why is this not shown?
%add this here:
      \set Staff.instrumentName="Vlne. 1 solo"

     c'''4^"solo"( d''' e''' f''' g''' a''' b''' c'''') }
   { c'' 4 d'' e'' f'' g'' a'' b'' c''' } >>
 }
 violineB = \context Staff ="ViolineB"
 { \set Staff.instrumentName = "Violine 2"
   \set Staff.shortInstrumentName="Vlne. 2"
   \repeat "unfold" 2 { c'' 4 b' a' g' f' e' d' c' }}
\score {
 \new StaffGroup <<
 \new GrandStaff \violineA
  \violineB >>

}


hth,
sb
--
Simon Bailey
Oompa Loompa of Science
+43 699 190 631 25





reply via email to

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