I sort of forgot to include my example… '-_-

2016-02-24 11:34 GMT-05:00 Pierre-Luc Gauthier <[email protected]>:
> Hi there,
>
> I'm going through my LilyPond testing folder.
>
> And there is this situation I never quite resolved.
>
> I love the fact that I can centralize the structure of a song into a
> single variable.
>
> e.g.
>
> structure = {
>   \key a \major
>   \time 4/4
>   \tempo 4=112
>   s1 |
>   \repeat volta 2 {
>     s1 |
>   }
>   s2. s4\fermata |
>   \bar "|."
> }
>
> I found it has many advantages :
> Everything that is common to everybody *is* and should be in that variable.
>
> Well, most everything:
> My problem is with volta.
>
> The cool thing though is that it gets correctly displayed.
> The problem arrise when \unfoldRepeat is used in the midi score.
> Then the structure get unfolded but not the music.
>
> Volta (well in most songs anyway) are something that relates to every
> body in the band.
> Therefore it should not be repeated in every musical expression.
>
> Say you have a 20 piece orchestra and you want to repeat a section 4
> times instead of 2.
> Should you go and change all those 20 2s to 4s ?
>
> Maybe my approach is wrong.
> Is there another way to go about centralizing everything in a single variable.
>
> It is something I want to optimize in my workflow
> by not having to maintain different parts of a song that should
> actually be the same throughout.
>
>
> Any thoughts?
>
> Have a good day
> --
> Pierre-Luc Gauthier



-- 
Pierre-Luc Gauthier
\version "2.18.2"
\language "english"

\header {
  title = \markup {\smallCaps "unfold the music"}
  subtitle = \markup {\italic "(Y U No)"}
}

structure = {
  \key a \major
  \time 4/4
  \tempo 4=112
  s1 |
  \repeat volta 2 {
    s1 |
  }
  s2. s4\fermata |
  \bar "|."
}

music = \relative c' {
  cs4 d e fs |
  gs a b cs |
  d e fs gs |
}

scoreContent = {
  \new Staff \new Voice << \structure \music >>
}

\score {
  \header {
    piece = "Correctly displayed"
  }
  \scoreContent
  \layout { }
}
\score {
  \header {
    piece = "Partialy unfolded"
  }
  \unfoldRepeats
  \scoreContent
  \layout {}
  \midi {}
}
_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to