[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
still problems with accidental shift
From: |
Han-Wen |
Subject: |
still problems with accidental shift |
Date: |
Thu, 25 Jul 2002 10:55:29 +0200 |
address@hidden writes:
> 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).
OK. Now I checked; there is a little hairy thing going on (which I
probably should document, but I haven't figured out where yet.) The
accs are put on the note heads (in Y direction), the proper code is
like this:
#(define (make-acc-position-checker pos)
(lambda (elt)
(and
(not (eq? #f (memq 'accidental-interface
(ly-get-grob-property elt 'interfaces))))
(eq? (ly-get-grob-property
(ly-get-parent elt 1) 'staff-position) pos))))
> BTW, how do I activate AccidentalPlacement again for the next chords?
\property Staff.AccidentalPlacement \unset
> \context Staff \outputproperty #(make-acc-position-checker 3)
> #'extra-offset = #'(-4 . 0)
> d!4
> eis
> gis
> d'!
Staff position is measured from the center line; the positions should
be 2 3 5 9.
--
Han-Wen Nienhuys | address@hidden | http://www.cs.uu.nl/~hanwen