Re: [frogs] Chord-name-engraver plus capo - pitches

[ Thread Index | Date Index | More lilynet.net/frogs Archives ]


 On 27/08/10 15:15, Trevor Daniels wrote:
>
> Wols Lists wrote Friday, August 27, 2010 1:15 PM
>>
>> On 27/08/10 09:54, Trevor Daniels wrote:
>>>
>>> transposedPitch = originalPitch->transposed (Pitch (0, 0, Rational
>>> (-capo/2)));
>>>
>> I think I tried something like that ... I found those files, having had
>>
>> (Bear in mind, with your suggestion, "capo" is an int. So it's a bit
>> more complicated than that ... and I don't think you can pass floating
>> points to Rational)
>
> 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.
>
> (Sorry, I'm not set up to try this at the moment, so it
> might still bomb.)
As I say, I've got that working. I strongly don't think it's that simple
:-( because Pitch seems to work on the tonal scale. Rational is used
purely for adjustments, not for thinking in semitones :-( because it
needs to deal with quarter tones and other such stuff.

I'm just going to submit the working code, and wait for a "hey, you
shouldn't do it that way!" :-)

Cheers,
Wol

---
----
Join the Frogs!


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/