Jump to content

Drawing skyline outline: Difference between revisions

From LilyPond wiki
Import snippet from LSR
 
m New category
 
(2 intermediate revisions by 2 users not shown)
Line 3: Line 3:
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...)
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...)


<lilypond version="2.24.0" full>
<lilypond version="2.24" full>
%% http://lsr.di.unimi.it/LSR/Item?id=256
%% http://lsr.di.unimi.it/LSR/Item?id=256


Line 25: Line 25:
[[Category:Scheme]]
[[Category:Scheme]]
[[Category:Really cool]]
[[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
}