lilypond-user
[Top][All Lists]

## Re: Help with spacing spanner, i.e., horizontal spacing between notes

 From: Trevor Bača Subject: Re: Help with spacing spanner, i.e., horizontal spacing between notes Date: Thu, 26 Jul 2007 08:06:36 -0500

On 7/25/07, peterwinson <address@hidden> wrote:


I have read the horizontal spacing section in the manual and have tried to
replicated the code in my own ly file but \override SpacingSpanner
#'base-shortest-duration = #(ly:make-moment 1 4) doesn't seem to work.

Here is what I want to do.  The music is composed mostly of 1/8 notes.  So
if I make the base-shortest-duration to be 1/4 note then the spacing between
the notes would be shorter. Right?

However, no matter what I make base-shortest-duration to be, nothing
changes.  HELP!

Here is the code

http://www.nabble.com/file/p11803568/matins1_a.ly matins1_a.ly


Hi,

Does it work to simply make the line width shorter? Ie, you can add

line-width = 5\in

in the paper block to see what this looks like.

In general, Lily likes to fill lines completely from left to right,
like fully justifying paragraphs of text, and I think that's why your
short, one-line example is stretched. If you add in several more lines
of music, Lily will optimize line spacing better. If, however, your
scores all are short like this, then consider setting

ragged-last = ##f

in the layout block, which will tell Lily *not* to justify the last
(or in your case, the only) line. And while you're playing with
spacing, it's sometimes helpful to set

ragged-right = ##t

also in the layout block, which will tell Lily *not* to justify all
lines in the score. In a one-line score, ragged-right = ##t should
carry the same effect as ragged-last = ##f.

Trevor.

--
Trevor Bača
{"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 1, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.9241790771484375, "perplexity": 7199.092672950567}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2015-06/segments/1422115860277.59/warc/CC-MAIN-20150124161100-00039-ip-10-180-212-252.ec2.internal.warc.gz"}