[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
followKey
From: |
Erik Sandberg |
Subject: |
followKey |
Date: |
Thu, 23 Feb 2006 10:26:16 +0100 |
User-agent: |
KMail/1.8.3 |
Hi,
Here's a function that makes alterations follow the current key signature.
IIRC, this has been discussed a couple of times before, but it wasn't
implemented because developers didn't think it would be useful enough. I
can't recall if anyone actually _tested_ it though, so here it is.
A known problem is that this command doesn't work together with the
\interpolate command I wrote yesterday.
Syntax:
\followKey { music }
Behaviour:
All pitch alterations are taken relative the default of the current key
signature. So, in C major, nothing happens, while in G major, an f becomes a
fis and a fes becomes an f.
Example:
\relative {
\key cis\major
\followKey { c d e f \key d\major g a b ces des }
}
=>
\relative {
\key cis\major
{ cis dis eis fis \key d\major g a b c des }
}
--
Erik
follow-key.ly
Description: Text document
- followKey,
Erik Sandberg <=