Jump to content

Drawing skyline outline: Difference between revisions

From LilyPond wiki
No edit summary
m New category
 
Line 24: Line 24:
[[Category:Spacing]]
[[Category:Spacing]]
[[Category:Scheme]]
[[Category:Scheme]]
[[Category:Really cool]][[Category:Snippet]]
[[Category:Really cool]]
[[Category:Snippet]]

Latest revision as of 23:19, 21 November 2025

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"

%% 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
}