Re: [frogs] Chord-name-engraver plus capo - pitches |
[ Thread Index |
Date Index
| More lilynet.net/frogs Archives
]
- To: Trevor Daniels <t.daniels@xxxxxxxxxxx>
- Subject: Re: [frogs] Chord-name-engraver plus capo - pitches
- From: Neil Puttock <n.puttock@xxxxxxxxx>
- Date: Fri, 27 Aug 2010 16:00:26 +0100
- Cc: Wols Lists <antlists@xxxxxxxxxxxxxxx>, 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 :content-transfer-encoding; bh=lgXvEHiePEelqLJIGMTBx//HpWiXyFN2J0fCHsKjC78=; b=OUbGAR1iC6HmD7j8VPTPF8AffvTioFLF/A0wvkPVL8rgUrLWdMBGdLRAiQbjQH+DV+ gYXr22yUA47zG1CSqd6UDlDSuGzr3a47uSMV15ww6e4WyY0uk37hrXViXuZmoXZyf4k2 HJwlFSUca6I5JnFil1TFUpd+ugsW67l/SnwLA=
- 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:content-transfer-encoding; b=gPvZ9XZqKp3aZaFcPIODHzzps/5rUwGW+q+en4zhY3G3lp2/Al0hhc+m76s5XsyPEw ZPul3dbEmLSIseb8wdSAGLAefWqGcnoGAn1ywYgp/1JpRCSRUnRvN8ZIhuBE75mpkTrb eoHv98ybPw7MX7h3LXJ49hXoB4GxG3cbG6Zt4=
On 27 August 2010 15:15, Trevor Daniels <t.daniels@xxxxxxxxxxx> wrote:
> No, you're right, you can't. I didn't intend to, but I
> did get it wrong. It should be Rational (-capo, 2) I think.
> This should instantiate a Rational with value -capo/2.
You didn't get it wrong. It's perfectly possible to use a double
here, though less efficient; see line 266 in rational.cc.
The only thing to be aware of when transposing pitches is the
limitation on alteration size: pitches can't have alterations larger
than a double, so Pitch (0, 0, Rational (-3/2)) isn't wise; it would
require normalizing (which would produce a B double flat).
Cheers,
Neil
---
----
Join the Frogs!