lilypond-devel
[Top][All Lists]
Advanced

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

Re: unfoldRepeats can be restricted to certain repeat-types (issue 31889


From: thomasmorley65
Subject: Re: unfoldRepeats can be restricted to certain repeat-types (issue 318890043 by address@hidden)
Date: Sat, 03 Dec 2016 03:26:54 -0800

On 2016/12/02 19:45:02, dak wrote:
However, people might get surprised by

#(unfoldRepeats 'tremolo m)

not working.

Btw, it turned out the previous unfold-repeats destructively changed the
music-argument, if called directly. See:

\version "2.19.51"

m =
  \repeat volta 2 {
          \repeat percent 2 { c'1 }
          \repeat tremolo 4 { c'16 d' }
          f'2
  }
  \alternative {
          { d'1 }
          { e'1 }
  }

\new Staff \m
\new Staff $(unfold-repeats m)
\new Staff \m

Using ly:music-deep-copy cures it.




https://codereview.appspot.com/318890043/



reply via email to

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