On Fri, Jun 08, 2012 at 02:03:49PM +0200, David Kastrup wrote: > Gilles Sadowski <gil...@harfang.homelinux.org> writes: > > >> oboe = \relative c'' { \key g \minor d16 d8. ~ d4 } > >> clarinetB = \relative c'' { \transposition bes c16 c8. ~ c4 } > >> hornF = \relative c'' { \transposition f d16 d8. ~ d4 } > >> > >> \score > >> { > >> << > >> \new Staff \with { midiInstrument="oboe" } { \oboe } > >> \new Staff \with { midiInstrument="clarinet" } { \clarinetB } > >> \new Staff \with { midiInstrument="french horn" } { \hornF } > >> >> > >> \layout {} > >> \midi {} > >> } > >> > >> I think this is straight forward as the \transposition affects the > >> MIDI output only. And: it's well documented, I must admit. > >> http://www.lilypond.org/doc/v2.15/Documentation/notation/displaying-pitches#instrument-transpositions > > > > It is not more coding; and it is more efficient in the long term > > (maintenance): the more you separate contents (notes) from layout (\key, > > \transpose, \transposition), the eaiser it is to change one or the other. > > >> > \transposition bes { % make MIDI sound right > >> > \transpose bes c { % transpose to clarinet notation > >> > << > >> > \global > >> > \transpose c bes { % transpose to concert pitch > >> > \clarinetNotes > >> > } > >> > >> > >> > } > >> > } > > If you really, really, really want to have the key from the default > declarations, it is much more straightforward to write > > \transposition bes % This does not take an argument, it is a declaration
Thanks for the info. > << \transpose bes c \global % default key shown in clarinet transposition > \clarinetNotes > >> TIMTOWTDI, as they say in a language that was not yet suggested in that other thread. ;-) Gilles _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user