2012/7/29 David Nalesnik <david.nales...@gmail.com>: > 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 _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user