lilypond-user
[Top][All Lists]
Advanced

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

Re: Access a stem’s notehead


From: tisimst
Subject: Re: Access a stem’s notehead
Date: Fri, 22 Jan 2016 06:29:04 -0700 (MST)

Here's the commands I was told to use (assuming "grob" is the NoteColumn):

   (let ((notes (ly:grob-object grob 'note-heads)))
     (if (ly:grob-array? notes)
         (for-each
          (lambda (note)
... do something to the NoteHead... ))))

HTH,
Abraham

On Fri, Jan 22, 2016 at 5:47 AM, Simon Albrecht-2 [via Lilypond] <[hidden email]> wrote:
Hello,

I want to write a before-line-breaking callback for stem and need the
staff-position of the associated NoteHead.  (There aren’t going to be
any chords.)  This
%%%%%
\version "2.19.35"
{
   \override Stem.before-line-breaking =
   #(lambda (grob) (format #t "~a\n"
                    (ly:grob-parent grob 0)))
   b'4
}
%%%%%
tells me that the parent is the NoteColumn. How do I retrieve the
NoteHead from the Column?

TIA, Simon

_______________________________________________
lilypond-user mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/lilypond-user



If you reply to this email, your message will be added to the discussion below:
http://lilypond.1069038.n5.nabble.com/Access-a-stem-s-notehead-tp186260.html
To start a new topic under User, email [hidden email]
To unsubscribe from Lilypond, click here.
NAML



View this message in context: Re: Access a stem’s notehead
Sent from the User mailing list archive at Nabble.com.

reply via email to

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