[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Complex chords with splayed stems - Script-positioning
From: |
Thomas Morley |
Subject: |
Re: Complex chords with splayed stems - Script-positioning |
Date: |
Sun, 29 Jul 2012 00:35:51 +0200 |
2012/7/29 David Nalesnik <address@hidden>:
> Hi Harm,
>
> This is cool!
>
> The problem is in the definition of splayedStemChord: NoteHead is the
> X-parent of Script, so you're missing a step en route to NoteColumn.
> Also, it turns out you need to override 'after-line-breaking rather
> than 'before-line-breaking.
Hi David,
overriding 'before-line-breaking returns the NoteColumn as X-parent of Script:
\once \override Score.Script #'before-line-breaking =
#(lambda (grob)
(let* ((nc (ly:grob-parent grob X))
(nh (ly:grob-array->list (ly:grob-object nc 'note-heads))))
(newline)(display "nc---------- ")(display nc)
(set! (ly:grob-parent grob X)
(car nh))))
log:
GNU LilyPond 2.15.39
Processing `splayed-stems-post.ly'
Parsing...
Interpreting music...
Preprocessing graphical objects...
nc---------- #<Grob NoteColumn >
...
so I didn't rethink it.
The approach via 'after-line-breaking works!
Many thanks,
Harm