lilypond-user
[Top][All Lists]
Advanced

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

Understanding ly:grob-original and ly:spanner-broken-into


From: Urs Liska
Subject: Understanding ly:grob-original and ly:spanner-broken-into
Date: Wed, 8 Mar 2017 10:47:09 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.6.0

Hi,

I have a hard time understanding ly:grob-original and whether I need it.
I'm working on a custom slur stencil and now have to support broken slurs.

I looked into the implementation of \shape (which is only partially
appropriate because it doesn't create a stencil but property overrides)
and found that it splits the grob into its siblings using this code:

(let* ((orig (ly:grob-original grob))
            (siblings (if (ly:spanner? grob)
                          (ly:spanner-broken-into orig) '()))

I don't really see why "orig" is created here. What's the difference
between the last line of the example and using (ly:spanner-broken into
grob) here? As usual the documentation on the Scheme-functions page
isn't helpful ...

TIA
Urs

-- 
address@hidden
https://openlilylib.org
http://lilypondblog.org




reply via email to

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