Re: [frogs] chord name engraver plus capo |
[ Thread Index |
Date Index
| More lilynet.net/frogs Archives
]
- To: Wols Lists <antlists@xxxxxxxxxxxxxxx>
- Subject: Re: [frogs] chord name engraver plus capo
- From: Neil Puttock <n.puttock@xxxxxxxxx>
- Date: Wed, 25 Aug 2010 20:44:30 +0100
- Cc: "frogs@xxxxxxxxxxx" <frogs@xxxxxxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=SjuRm3k5xHJvzCoZ0/muhWrfpHxqHT8KbhSgQl42wjI=; b=xzCFSc5Gv2z1iuc07FgvppOlJrf0KPvRwB6aYomxQaMH9toHthmqQZw8Ovf+i+aYwo xZykN8df8rBG0Ac1KQBPQFvyp/K8rueAu7LUZZe9vQL1W3SMvF2s6jYHQoBT5mPAChbT bFKLJwnsvw7/QptvuQZi9bXxdhz2G/pyBEMEs=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=K7eaT02c2+tmAUMvZCMPfFL01DAfvaDjLQe3pIctFjLaSWkxdElxUf564dFmTJ1BKc 8zZONY24mJAk+26aiqXki+dgzDzZRQD5+QciiD+JuXTltCtiKGnz+QVN4jnJci+5EREM 0cEWDcUVhneTpXCqilT6YCeeT5AgnDp1cFxns=
On 25 August 2010 18:02, Wols Lists <antlists@xxxxxxxxxxxxxxx> wrote:
> How do I actually get hold of the property capoFret?
get_property ("capoFret");
You could do context ()->get_property ("...") but there's no need
since get_property is overloaded for translators:
this->get_property ("...")
is equivalent to
daddy_context_->get_property ("...")
where daddy_context_ is the context where the engraver's defined
(i.e., ChordNames).
> And how do I combine the markups? I'm not going to bother with vertical
> markup at the moment. That'll be easier once I've got to grips with the
> rest of it.
This is really something that should be done in scheme, since it's
tedious in C++ to call markup commands (see clef-engraver.cc for a
simple example using \vcenter).
Ideally you'd get the formatting done in the existing chord name formatter.
Cheers,
Neil
---
----
Join the Frogs!