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: Reggie
Subject: Re: How to fix this divisi please
Date: Thu, 7 Feb 2019 08:16:28 -0700 (MST)

Valentin Villenave-3 wrote
> Here is how I would type your example, using many variables (and no
> \tags, like I did earlier). As you can see, everything with notes is
> defined first, and _then_ comes every structural information: what
> should be printed where, in which group, coming after this and before
> that, etc. I think it’s a bit cleaner that way.
> 
> %%%%%%%%%%%
> 
> 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
>       }
>   \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
>   }
> }
> 
> %%%%%%%%%%%

Thank you V but this does not compile. What did I do wrong? Copy paste into
file and errors.  error: syntax error, unexpected \layout
    
    \layout {




--
Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html



reply via email to

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