[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: state-of-the-art multi-instrumental/transposing mechanism
From: |
Kieren MacMillan |
Subject: |
Re: state-of-the-art multi-instrumental/transposing mechanism |
Date: |
Sun, 5 Mar 2017 19:15:46 -0500 |
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