[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: creating a stringHarmonic function
From: |
Neil Puttock |
Subject: |
Re: creating a stringHarmonic function |
Date: |
Fri, 15 May 2009 22:14:39 +0100 |
2009/5/15 Kieren MacMillan <address@hidden>:
> I'm trying to come up with a Scheme function to generate string harmonics
> automatically.
Why on earth would you want to do that. ;)
You might like to take a look at Valentin's function here (though it
uses separate voices):
http://repo.or.cz/w/opera_libre.git?a=blob;f=definitions/functions.ly;hb=86fde82d901b42d33ed736d802f9d5174b2be36a#l306
> Questions:
> 1. Is this a good way to go about formatting the note(head)s?
Yes.
> 2. Is #'duration-log the best way to force the sounding pitch to look like a
> quarter-note head, regardless of the chord's native duration? [Obviously the
> sounding pitch adjustment should have no effect on the timing of the chord.]
It's probably the only way. :)
> 3. How can I turn off the stem of the sounding pitch? [n.b. I know I could put
> it in a separate Voice context, but I'd like to avoid that if possible.]
Tricky without another voice, since there's only one stem for all the
noteheads. You can change the length of a stem by overriding 'length,
but you'd need to be careful about stem direction because negative
values will be required, and you won't be able to start a stem on the
parenthesized note:
\stemUp
\once \override ParenthesesItem #'font-size = #-1
\once \override Stem #'length = #-4
<c' f'\harmonic
\tweak #'font-size #-2
\tweak #'duration-log #4
\parenthesize
c'''
>8
Regards,
Neil