lilypond-user
[Top][All Lists]
Advanced

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

"unroll code"


From: Gianmaria Lari
Subject: "unroll code"
Date: Fri, 13 May 2016 23:01:12 +0200

Is there any tool to "unroll" the code. For instance, suppose you have
something like this...

\version "2.19.40"

fragment.1 =
{
  a b c d
}

fragment.2 =
{
  e f g a
}

music =
{
  \repeat  unfold 3 {\fragment.1}
  \repeat  unfold 2 {\fragment.1 \fragment.2}
}

\score
{
    \music
    \layout{}
}

.... is there any way to transform it in this:

\score
{
    {
    a b c d
    a b c d
    a b c d
    a b c d
    e f g a
    a b c d
    e f g a
   }
    \layout{}
}

?



reply via email to

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