lilypond-devel
[Top][All Lists]
Advanced

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

still problems with accidental shift


From: Werner LEMBERG
Subject: still problems with accidental shift
Date: Thu, 25 Jul 2002 03:47:46 +0200 (CEST)

[CVS 07-25 02:25]

LilyPond no longer crashes, but it still doesn't work.  Turning off
AccidentalPlacement moves all accents to a zero position, but I can't
apply an offset again.

I assume something like the code below is the right way to do it
(following Hanwen's instructions).

BTW, how do I activate AccidentalPlacement again for the next chords?


    Werner

======================================================================

#(define (make-acc-position-checker pos)
  (lambda (elt)
    (and
      (eq? (ly-get-grob-property elt 'staff-position) pos)
      (not (eq? #f (memq 'accidental-interface
                    (ly-get-grob-property elt 'interfaces)))))))

\score {
  \context Voice \notes \relative c'' {
    <
\property Staff.AccidentalPlacement = \turnOff
\context Staff \outputproperty #(make-acc-position-checker 15)
                               #'extra-offset = #'(-1 . 0)
\context Staff \outputproperty #(make-acc-position-checker 8)
                               #'extra-offset = #'(-2 . 0)
\context Staff \outputproperty #(make-acc-position-checker 5)
                               #'extra-offset = #'(-3 . 0)
\context Staff \outputproperty #(make-acc-position-checker 3)
                               #'extra-offset = #'(-4 . 0)
      d!4
      eis
      gis
      d'!
    >
  }
  \paper {
    linewidth = -1
  }
}



reply via email to

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