What is programming setting-rule of the optical spacing in LP?tisimst wrote:Thanks, OCTO! Yes, the optical spacing is automatic, but can be turned on/off at-will.OCTO wrote:I wonder if the optical spacing in M26 / RH / beat 1 / voice 2 - is done automatically?
[Lilypond] Optical spacing
[Lilypond] Optical spacing
Split theme from another thread.
Re: [Lilypond] Optical spacing
LilyPond's optical spacing is governed by a handful of tweakable properties. Normally, spacing is NOT truly proportional, but more generally based on the width of the black notehead (NHW). Thus, the duration that is deemed "most common" in a passage will have a minimum horizontal space of 1 NHW between symbols. For example, if a quaver (OCTO wrote:What is programming setting-rule of the optical spacing in LP?tisimst wrote:Yes, the optical spacing is automatic, but can be turned on/off at-will.




Localized spacing corrections are done by the NoteSpacing object, which accounts for the following:
- Spacing of notes between kneed beams (or cross-staff beams) where stems are both up and down and the beam is between them.
- Spacing of notes when the stems are the same direction
- Spacing of notes when the stems are in opposing directions
For more global tweaks, the SpacingSpanner object takes care of that with a handful of properties, including:
- Uniform spacing, which means that spaces between notes will stretch proportionally to their natural separation based on durations. This looks better in complex polyphonic patterns.
- Strict note spacing, which means that "musical" symbols (e.g., notes, accidentals) are given spacing priority over "non-musical" symbols (e.g., clefs)
- Strict grace note spacing, which means that the notes that grace notes are attached to are given spacing priority, thus moving grace notes more left than they would normally be.
There is also a general Score property called "proportionalNotationDuration" which is useful for turning on truly proportional spacing, meaning that the horizontal space a minim takes up is the same as 4 quavers.
There are other things about how or why some decisions are made that I don't understand yet, but hopefully that helps a little.
Music Typeface Designer & Engraver - LilyPond | Sibelius | Finale | MuseScore | Dorico | SMuFL | Inkscape | FontForge
Re: [Lilypond] Optical spacing
See
http://lilypondblog.org/2015/12/optical ... -a-swan-1/
http://lilypondblog.org/2015/12/optical ... an-part-2/
(unfortunately the third post is still to be written)
http://lilypondblog.org/2015/12/optical ... -a-swan-1/
http://lilypondblog.org/2015/12/optical ... an-part-2/
(unfortunately the third post is still to be written)