[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Determine if a stem is present
From: |
Urs Liska |
Subject: |
Determine if a stem is present |
Date: |
Mon, 27 Mar 2017 11:38:28 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.6.0 |
Hi all,
I want to know if a given notehead has a stem attached. Obviously even
whole notes do have a stem object, but with zero extent.
I've found the following calculation to be reliable, but I can't imagine
it has to be so complicated:
(if (or (= +inf.0 (car stem-y-extent))
(= -inf.0 (car stem-y-extent))
(= +inf.0 (cdr stem-y-extent))
(= -inf.0 (cdr stem-y-extent)))
(with stem-y-extent being the Y-extent property of the stem object).
I think there should be some property I can ask directly about this? But
I didn't find any suspicious entry for Stem or stem-interface.
Any suggestions?
Urs
--
address@hidden
https://openlilylib.org
http://lilypondblog.org
- Determine if a stem is present,
Urs Liska <=