lilypond-devel
[Top][All Lists]
Advanced

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

updated files for (doc help) applyMusic -> music functions: unfold-all-r


From: Michael Meixner
Subject: updated files for (doc help) applyMusic -> music functions: unfold-all-repeats.ly
Date: Wed, 7 Jun 2006 10:14:23 +0000 (UTC)
User-agent: Loom/3.14 (http://gmane.org/)

Hello!

Here are my attempts in updating for snippets for the Tricks & Tips section.
They compile correctly on my LP ver. 2.9.7

"unfold-all-repeats.ly"

% ****************************************************************
% Start cut-&-pastable-section 
% ****************************************************************

\paper {
 #(define dump-extents #t)
 
 indent = 0\mm
  line-width = 160\mm
}

\layout {
 
}



% ****************************************************************
% ly snippet:
% ****************************************************************
\sourcefilename "unfold-all-repeats.ly"


\header { 
texidoc = "Applying the standard function @code{unfold-repeats} unfolds 
recursively all repeats for a correct MIDI output."
}

unfoldAll = 
        #(define-music-function (parser location music )
                        (ly:music?)
        #{
                \unfoldRepeats $music
        #})


mel =  \context Staff {
  \repeat tremolo 8 {c'32 e' }
  \repeat percent 2 { c''8 d'' }
  \repeat volta 2 {c'4 d' e' f'} 
  \alternative {
    { g' a' a' g' }
    {f' e' d' c' }
  }
  \bar "|."
}

\score {  {
  \mel \break
  \unfoldAll \mel
 }
}






reply via email to

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