Manipulating HarmonicParenthesesItem stuff within tie callback [was Re: [frogs] How can I obtain articulation informations?] |
[ Thread Index |
Date Index
| More lilynet.net/frogs Archives
]
- To: Neil Puttock <n.puttock@xxxxxxxxx>
- Subject: Manipulating HarmonicParenthesesItem stuff within tie callback [was Re: [frogs] How can I obtain articulation informations?]
- From: Marc Hohl <marc@xxxxxxxxxx>
- Date: Fri, 11 Jun 2010 11:36:27 +0200
- Cc: "frogs@xxxxxxxxxxx" <frogs@xxxxxxxxxxx>
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; t=1276248988; l=1102; s=domk; d=hohlart.de; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:References: Subject:CC:To:MIME-Version:From:Date:X-RZG-CLASS-ID:X-RZG-AUTH; bh=x6xj25C62xkZzujIU4u8UGWO/Ko=; b=cAbj+TY4Nmm9BJlc6N4D4b3atJWqPsgdUgL2ULNg07mG/si3DxumMklsyTikXTXb0JP ymSuEQS+C93AL8swePzXHzPGOXVs2YlbzG5xW0InuuEnGBUKm8PG+SorObXHnFib9oJFE UPEziQH/Yr/eP/zLtf6P+tBnco+6mI/pMpM=
Neil Puttock schrieb:
[...]
OK, but surely you need to work with tie::handle-tab-note-head? IIRC,
the parentheses on the tied notes come via a stencil override, not
from ParenthesesItem.
Can I manipulate HarmonicParenthesesItem #'stencil or ~ #'transparent
within the callback tie::handle-tab-note-head (to be found in
scm/tablature.scm)?
I can obtain the TabNoteHead via ly:spanner-bound, and I can check
whether the TabNoteHead includes a harmonic-event.
Now, similarly to the code for making the TabNoteHead invisible,
I have to do something like
\once \override HarmonicParenthesesItem #'transparent = ##t
within the callback. This means I need to code
(ly:grob-set-property! harmonic-brackets 'transparent #t)
where harmonic-brackets ist the grob I am aiming for.
Am I on the right track here? I have already covered the case where
a fret number is parenthesized *and* a harmonic, i.e. (<7>),
but the "simple" case where an "empty" tab note head has
surrounding harmonic brackets < > that have to be removed is
still open...
Thanks in advance,
Marc
---
----
Join the Frogs!