Hi again,

On Thu, Nov 27, 2014 at 2:39 PM, David Nalesnik <david.nales...@gmail.com>
wrote:

>
>
> You could search the music expression for context modifications.
>

Try running this to see what kind of information would be accessible to you
from the music expression you'd be running \naturalizeMusic on:

\displayMusic {
  \key e \major
  cis''1
  \key c \major
  c''1
}

Comparing the output you can see (thankfully) that the 'KeyChangeEvent
reflects the transposition:

\displayMusic {
  \transpose c d {
    \key e \major
    cis''1
    \key c \major
    c''1
  }
}

You'd have to make sure that the expression on which you run
\naturalizeMusic contains the initial key, though.

HTH,
David
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to