lilypond-user
[Top][All Lists]
Advanced

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

Re: How to fix this divisi please


From: Valentin Villenave
Subject: Re: How to fix this divisi please
Date: Thu, 7 Feb 2019 16:31:40 +0000

On 2/7/19, Reggie <address@hidden> wrote:
> Thank you V but this does not compile. What did I do wrong?

Oh yes, I made a mistake when pasting into my previous message. Try this:

%%%%%%%%%%%%%%%%%%%%%
 scoreAViolinIbegin = \relative c'' {
   \repeat unfold 10 c1
   ges1
 }
 scoreAViolinImiddle = \relative c' {
   \repeat unfold 10 {c2 d}
 }
 scoreAViolinIend = \relative c' {
   \repeat unfold 20 fes1
 }
 scoreAViolinDivI = \relative c'' {
   \repeat unfold 10 g1:32
 }
 scoreAViolinDivII = \relative c'' {
   \repeat unfold 10 bes1:32
 }
 scoreAViolinDivIII = \relative c' {
   \repeat unfold 10 f1:32
 }
 scoreAViolinDivIV = \relative c'' {
   \repeat unfold 10 as1:32
 }

 scoreAViolinII = \relative c'' {
   \repeat unfold 50 d1
 }

 scoreAViola = \relative c' {
   \clef alto
   \repeat unfold 50 e1
 }

 scoreACello = \relative c {
   \clef bass
   \repeat unfold 50 f1
 }

 scoreAContrabass = \relative c {
   \clef bass
   \repeat unfold 50 g1
 }

 violinDivGroupName=\markup \center-column {Vl. "(div. a 4)"}

 %% Big violin Staff and additional divisi.
 %% (This will be used only in the full score.)

 scoreAViolinConductor = {
   \scoreAViolinIbegin
   <<
     \scoreAViolinImiddle \break
     \new miniStaffGroup \with {
       instrumentName = \violinDivGroupName
       shortInstrumentName = \violinDivGroupName
     } <<
       \new miniStaff \scoreAViolinDivI
       \new miniStaff \scoreAViolinDivII
       \new miniStaff \scoreAViolinDivIII
       \new miniStaff \with {
         \override BarLine.allow-span-bar = ##f
       } \scoreAViolinDivIV
     >>
   >>
   \scoreAViolinIend
 }

 \score {
   \header { title = "Full Score." }
   \new StaffGroup <<
     \new Staff = "ViolinMain" \with {
       instrumentName = "Violin I"
       shortInstrumentName = "Vl. 1"
     } \scoreAViolinConductor
     \new Staff \with {
       instrumentName = "Violin II"
       shortInstrumentName = "Vl. 2"
     } \scoreAViolinII
     \new Staff \with {
       instrumentName = "Viola"
       shortInstrumentName = "Vla."
     } \scoreAViola
     \new Staff \with {
       instrumentName = "Cello"
       shortInstrumentName = "Vlc."
     } \scoreACello
     \new Staff \with {
       instrumentName = "Double Bass"
       shortInstrumentName = "Cb."
     } \scoreAContrabass
   >>
   %% Here’s the layout for _this_ \score only.
   %% (it doesn’t apply to individual parts.)
   \layout {
     \context {
       \Staff
       \name "miniStaff"
       alignAboveContext = "ViolinMain"
       fontSize = #-2
       \override StaffSymbol.color = #grey
       \remove Time_signature_engraver
     }
     \context {
       \StaffGroup
       \name "miniStaffGroup"
       \accepts "miniStaff"
       systemStartDelimiter = #'SystemStartSquare
     }
     \context {
       \StaffGroup
       \accepts "miniStaffGroup"
     }
   }
 }

 \paper {
   #(set-paper-size "a4")
   top-margin = 15\mm
   left-margin = 25\mm
   right-margin = 25\mm
   bottom-margin = 15\mm
 }

 \bookpart {
   \header {
     title = "Violin Part (main)"
   }
   \new Staff {
     \scoreAViolinIbegin
     \scoreAViolinImiddle
     \scoreAViolinIend
   }
 }

 \bookpart {
   \header {
     title = "Violin Part (div. 1)"
   }
   \new Staff {
     \scoreAViolinIbegin
     \scoreAViolinDivI
     \scoreAViolinIend
   }
 }

 \bookpart {
   \header {
     title = "Violin Part (div. 2)"
   }
   \new Staff {
     \scoreAViolinIbegin
     \scoreAViolinDivII
     \scoreAViolinIend
   }
 }

 %%%%%%%%%%%


V.



reply via email to

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