openlilylib / snippets

A place to store useful pieces of LilyPond code - custom functions, engravers, hacks, templates, examples etc.
Other
119 stars 39 forks source link

shapeII behaves weirdly #24

Open jan-warchol opened 10 years ago

jan-warchol commented 10 years ago

Investigate these: http://lists.gnu.org/archive/html/lilypond-user/2013-11/msg00839.html http://lists.gnu.org/archive/html/lilypond-devel/2013-11/msg00290.html http://lists.gnu.org/archive/html/lilypond-user/2014-01/msg00462.html

jan-warchol commented 10 years ago

Also this: http://lists.gnu.org/archive/html/lilypond-user/2014-02/msg00437.html (\shapeII notehead-placement doesn't work with ties).

IstarIlmaro commented 9 years ago

workaround: use \attach function for outer control-points http://lists.gnu.org/archive/html/lilypond-user/2015-07/msg00349.html

sincere-music commented 7 years ago

Here’s a somewhat minimal example of a seemingly related problem.

\version "2.19.47"
\include "notation-snippets/shaping-bezier-curves/shapeII.ily"

#(ly:set-option 'debug-skylines #t)
\paper {
  %annotate-spacing = ##t
  #(set-paper-size "a5" 'landscape)
}

%{
shapeII =
#(define-music-function (all-specs item) (list? symbol-list-or-music?)
   (propertyTweak 'color red item))
%}

right = \relative {
  \voiceOne
  R1*5
  \break

  R1
  r4 \shapeII #'((h 0 1.2)(p 30 0.4)(p 30 0.4)(h)) Slur r8 g'( fis4) r8 g(
  fis4) r8 g( fis4) r8 g(
  fis4) r8 fis r2
  R1*2

  \break
  R1*5
}

left = \relative {
  R1*15
}

\score {
  <<
    \new Staff = "right" \right
    \new Staff = "left" \left
  >>
}

shapeii-debug