[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Transposing instruments
From: |
Gilles Sadowski |
Subject: |
Re: Transposing instruments |
Date: |
Fri, 8 Jun 2012 14:25:01 +0200 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Fri, Jun 08, 2012 at 02:03:49PM +0200, David Kastrup wrote:
> Gilles Sadowski <address@hidden> 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