lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: difficulty getting quoteDuring to work in combination with transposi


From: David Kastrup
Subject: Re: difficulty getting quoteDuring to work in combination with transposition
Date: Sun, 02 Aug 2015 20:50:23 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

user3871075 <address@hidden> writes:

> David,
>
> Based on this statement from the documentation:
>
> http://www.lilypond.org/doc/v2.18/Documentation/notation/writing-parts#quoting-other-voices
>
> *The \quoteDuring command uses the \transposition settings of both quoted
> and quoting parts to produce notes for the quoting part that have the same
> sounding pitch as those in the quoted part.*
>
> it would seem to me like what I've done ought to be correct.  (But I don't
> deny that it's not working as I would expect! :))  Since the effective
> transposition of trumpetNotes is c' c', then when that gets quoted into a
> part with \transposition bes, lilypond should realized that it needs to
> automatically \transpose c bes that particular passage from trumpetNotes.
>
> Regardless, I tried your various suggestions, and they do indeed fix the
> problem in the clarinet part, but the alto sax part stubbornly prints a C
> instead of a G.  If you have the time and inclination, perhaps you could
> post an example where all three parts print correctly...?
>
> Thanks again!

You don't post your attempts so it is impossible to comment on them.

\version "2.18.2"

trumpetNotes = \transpose c bes \relative c'' {
  c4
  c4
  c4
  c4 |
}

\addQuote "trumpet" \trumpetNotes

clarinetNotes = \transpose c bes \relative c'' {
  g4
  \quoteDuring #"trumpet" { s4 }
  g4
  g4 |
}

altoSaxNotes = \clarinetNotes

<<
  \new Staff \with { instrumentName = "trumpet" } \transpose bes c {
    \key bes\major
    \transposition bes \trumpetNotes }
  \new Staff \with { instrumentName = "clarinet" } \transpose bes c {
    \key bes\major
     \transposition bes \clarinetNotes }
  \new Staff \with { instrumentName = "alto sax" } \transpose ees c {
    \key bes\major
    \transposition ees \altoSaxNotes }
>>

-- 
David Kastrup

reply via email to

[Prev in Thread] Current Thread [Next in Thread]