lilypond-user
[Top][All Lists]
Advanced

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

Re: flatten ties ~ proportional notation.


From: Rob Canning
Subject: Re: flatten ties ~ proportional notation.
Date: Fri, 19 Dec 2008 11:20:51 +0000
User-agent: Mozilla-Thunderbird 2.0.0.17 (X11/20081018)


This is the easiest way to do it, assuming you don't have any tied chords:

\override TieColumn #'tie-configuration =
  #(lambda (grob)
      (let* ((notehead (ly:grob-parent grob X))
              (y-off (* 2 (ly:grob-property notehead 'Y-offset))))
        (list (cons y-off 0))))

thanks neil,

this nearly works and certainly gives me alot to look at in terms of doing intersting things with the syntax...

on its own this works fine but if i combine it with somthing else it fails - not sure what i am doing wrong here...

if for example i add:

\override Tie #'details #'height-limit = #0

 \override TieColumn #'tie-configuration =
  #(lambda (grob)
      (let* ((notehead (ly:grob-parent grob X))
              (y-off (* 2 (ly:grob-property notehead 'Y-offset))))
        (list (cons y-off 0))))


lilypond fails with error:

Drawing systems...1002-proportional.ly:295:22: In procedure * in expression (* 2 (ly:grob-property notehead #)):
1002-proportional.ly:295:22: Wrong type: ()

thanks,

rob





reply via email to

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