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] <
[email protected]> 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] <http:///user/SendEmail.jtp?type=node&node=186260&i=0>
> 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 [email protected]
> To unsubscribe from Lilypond, click here
> <http://lilypond.1069038.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=2&code=dGlzaW1zdC5saWx5cG9uZEBnbWFpbC5jb218Mnw4MzU3Njg3MDU=>
> .
> NAML
> <http://lilypond.1069038.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Access-a-stem-s-notehead-tp186260p186262.html
Sent from the User mailing list archive at Nabble.com.
_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to