Hi Kieren,
now I had a look into the autotranspose code. The problem is the order
of context properties set in the Staff. If you change the transposed
code to:
\new Staff \with \autoTranspose << \global \flutepart >>
It should get the key-signatures right. Though this is only a hint where
the autotransposer fails. I'll search a way to make the engraver act
later - perhaps in the acknowledger slot. But still I have to set the
Staff-context-properties, so that accidentals are set right.
Jan-Peter
Am 06.03.2017 um 01:15 schrieb Kieren MacMillan:
Hi Urs,
it's too late for me right now to properly understand the issue
1. Thanks for responding anyway! =)
2. Looks like you do understand most of the issue.
but I wanted to direct you to Jan-Peter's
https://github.com/openlilylib/snippets/tree/master/editorial-tools/auto-transpose,
not knowing if it's even *related* to your question.
It is!
In the modified snippet (below), I use \autotranspose. It works great
EXCEPT the [abstracted] key signature part. If we could just figure
out how to have the key signature properly displayed in the transposed
part, I think we’d be most of the way to a complete solution (though
admittedly I don’t know the internals of this engraver yet, so there
may be other issues it doesn’t or can’t handle.
Thanks!
Kieren.
%%% SNIPPET BEGINS
\version "2.19.56"
\include
"openlilylib/snippets/editorial-tools/auto-transpose/definitions.ily"
\paper { line-width = 6\in }
flute = {
\set Staff.instrumentName = "Flute"
\set Staff.shortInstrumentName = "Fl."
\transposition c'
}
altoflute = {
\set Staff.instrumentName = "Alto Flute"
\set Staff.shortInstrumentName = "A. Fl."
\transposition g
}
toF = \markup "take flute"
toAF = \markup "take alto flute"
global = {
\key c \major s1 \break
\key d \major s1 \break
\key e \major s1 \break
}
flutepart = {
\flute
a'2 r^\toAF
\altoflute
a'2 r^\toF
\flute
a'2 r
}
\markup \bold "C score:"
\score {
\new Staff << \global \flutepart >>
}
\markup \vspace #4
\markup \bold "Transposed score/part (incorrect):"
\score {
\new Staff \with \autoTranspose << \global \flutepart >>
}
%%% SNIPPET BEGINS
________________________________
Kieren MacMillan, composer
‣ website: www.kierenmacmillan.info
‣ email: address@hidden
_______________________________________________
lilypond-user mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/lilypond-user
_______________________________________________
lilypond-user mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/lilypond-user