lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Flatten a tie without hardcoding control points?


From: James Harkins
Subject: Re: Flatten a tie without hardcoding control points?
Date: Sun, 22 Apr 2012 11:50:41 +0800
User-agent: Wanderlust/2.15.6 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (Gojō) APEL/10.7 Emacs/23.1 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO)

At Sat, 21 Apr 2012 11:24:50 +0100,
James wrote:
> If you can come up with a simple example, we (or you even) could add
> it to the LilyPond snippet repository

Like this, perhaps? I can add it if this looks OK.

\version "2.15.36"
\include "english.ly"

\relative c'' {
  % normal tie
  d4 ~

  % Longer ties so you can see the shapes better
  % Since the minimum-length is longer, the "normal" but wider tie
  % is taller than the normal, short tie.
  \override Tie #'minimum-length = #7
  d ~

  % Low ratio = flattened
  \once \override Tie #'details #'ratio = #0.05
  d ~

  % High ratio = taller than normal
  \once \override Tie #'details #'ratio = #1
  d ~

  % Reduce height = not as tall, but less flat than ratio = 0.05
  \once \override Tie #'details #'height-limit = #0.5
  d ~

  % Large height-limit
  % The tie still doesn't reach the full height limit
  % because 'ratio' is at its default of 0.333 here.
  \once \override Tie #'details #'height-limit = #3
  d4 ~

  % With both tweaks you get a big, loopy tie.
  \once \override Tie #'details #'ratio = #1
  \once \override Tie #'details #'height-limit = #3
  d4 ~
  d4
}

> We don't generally document tweaks directly in the Notation Reference
> manuals - there are some but they are the exception than the rule -
> however we do often link the more useful/commonly asked tweaks as
> 'snippets' if appropriate. They will also appear in the autogenerated
> 'snippets' documentation
> 
> http://lilypond.org/doc/v2.14/Documentation/snippets/index.html

Understood. I realized later that what threw me about the Tie reference was the 
formatting of 'details:

'((ratio . 0.333) (center-staff-line-clearance . 0.6) (tip-staff-line-clearance 
. 0.45) (note-head-gap . 0.2) (stem-gap . 0.35) (height-limit . 1.0) 
(horizontal-distance-penalty-factor . 10) (same-dir-as-stem-penalty . 8) 
(min-length-penalty-factor . 26) (tie-tie-collision-distance . 0.45) 
(tie-tie-collision-penalty . 25.0) (intra-space-threshold . 1.25) 
(outer-tie-vertical-distance-symmetry-penalty-factor . 10) 
(outer-tie-length-symmetry-penalty-factor . 10) 
(vertical-distance-penalty-factor . 7) (outer-tie-vertical-gap . 0.25) 
(multi-tie-region-size . 3) (single-tie-region-size . 4) (between-length-limit 
. 1.0))

vs, maybe something like this:

'(
  (ratio . 0.333)
  (center-staff-line-clearance . 0.6)
  (tip-staff-line-clearance . 0.45)
  (note-head-gap . 0.2)
  (stem-gap . 0.35)
  (height-limit . 1.0)
  (horizontal-distance-penalty-factor . 10)
  (same-dir-as-stem-penalty . 8)
  (min-length-penalty-factor . 26)
  (tie-tie-collision-distance . 0.45)
  (tie-tie-collision-penalty . 25.0)
  (intra-space-threshold . 1.25)
  (outer-tie-vertical-distance-symmetry-penalty-factor . 10)
  (outer-tie-length-symmetry-penalty-factor . 10)
  (vertical-distance-penalty-factor . 7)
  (outer-tie-vertical-gap . 0.25)
  (multi-tie-region-size . 3)
  (single-tie-region-size . 4)
  (between-length-limit . 1.0)
)

In the latter, it's very easy for the eye to scan the "detail" names.

hjh


--
James Harkins /// dewdrop world
address@hidden
http://www.dewdrop-world.net

"Come said the Muse,
Sing me a song no poet has yet chanted,
Sing me the universal."  -- Whitman

blog: http://www.dewdrop-world.net/words
audio clips: http://www.dewdrop-world.net/audio
more audio: http://soundcloud.com/dewdrop_world/tracks



reply via email to

[Prev in Thread] Current Thread [Next in Thread]