lilypond-user
[Top][All Lists]
Advanced

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

[WISH] A form of \noBreak that accepts a music expression?


From: Jim Long
Subject: [WISH] A form of \noBreak that accepts a music expression?
Date: Thu, 17 Oct 2013 11:20:56 -0700
User-agent: Mutt/1.5.21 (2010-09-15)

Sometimes I want to protect a short passage of music from being
broken onto separate systems.  Are there better ways of writing:

\repeat unfold 6 { c1 | \noBreak }
\break
\repeat unfold 6 { c1 | \noBreak }

for passages that one wishes to keep all on one system?

Would there be any community need for something like the badly-named:

\noBreakMusic {
  c1 | c1 | c1 |
  c1 | c1 | c1 |
}
\break
\noBreakMusic {
  c1 | c1 | c1 |
  c1 | c1 | c1 |
}

A technique like this might also be workable, but IMO a little
less elegant syntactically:

\set unbreakableMusic = ##t
\repeat unfold 6 c1
\break
\repeat unfold 6 c1
\revert unbreakableMusic

This is not a huge priority, just a curiousity.


Jim



reply via email to

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