Drawing skyline outline

Revision as of 22:39, 26 October 2025 by Jean Abou Samra (talk | contribs) (Import snippet from LSR)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

By setting the 'debug-skylines Scheme property, you can turn your score into a nice funky artwork :-)

More seriously, drawing this skyline can be helpful to debug spacing and collision issues. (Still, it does make your score pretty; so just try it, no matter how much you really need to...)

\version "2.24.0"

%% http://lsr.di.unimi.it/LSR/Item?id=256

%here starts the snippet:

#(ly:set-option 'debug-skylines)

{
  a,,1 | a'4 b' c'' d'' \break
  \repeat unfold 2 {a' b' c'' d''} | b''''1
}

\paper {
  ragged-right = ##t
  tagline = ##f
}