lilypond-user
[Top][All Lists]
Advanced

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

Re:\transposedQuoteDuring


From: Flaming Hakama by Elaine
Subject: Re:\transposedQuoteDuring
Date: Wed, 1 May 2019 15:33:53 -0700




On Wed, May 1, 2019 at 7:14 AM <address@hidden> wrote:
---------- Forwarded message ----------
From: Pierre-Luc Gauthier <address@hidden>
To: lilypond-user <address@hidden>
Cc: 
Bcc: 
Date: Wed, 1 May 2019 09:53:40 -0400
Subject: \transposedQuoteDuring
Hi there,

Is there a way to transpose a quotation, say, an octave higher ?

m.e.g.:

\version "2.19.83"

quoted = {c'4 d' e' f' g'}
\addQuote "quoted" \quoted

quoting = \quoteDuring "quoted" {s1}

\new Staff \with {instrumentName = "Quoted"} \quoted
\new Staff \with {instrumentName = "Quoting"} \quoting



\addQuote "quoted" \transpose c' c'' \quoted
Is unacceptable because it would transpose all the quotations.

This :
\transposedQuoteDuring "quotedMusic" c'' { s1| }
would have been perfect but this command does not exist.

And :
quoting = \quoteDuring "quoted" \transpose c' c'' {s1}
does not work.

Any hints?
Thanks for any pointers.
--
Pierre-Luc Gauthier


\version "2.19.83"


%  Here is one approach with tags,
%  which are always a lot of fun.

%  MWE based on http://lilypond.org/doc/v2.19/Documentation/notation/writing-parts#quoting-other-voices

%  This actually shows doing a quote an octave lower,
%  but the same principle applies to getting a higher octave.

%  Start by putting the passages
%  that will appear in more than one octave
%  in their own variables

notesToBeQuoted = \relative c'' {
    b4^"quoted" r8 ais\p a4 ( f )
}

%  Define a master variable for the part-to-be-quoted
%  that has versions of the material in both octaves,
%  identified by tags.

allFluteNotes = \relative {

    a'4 gis g gis |

    \tag #'cuedOctave \transpose c c, \notesToBeQuoted
    \tag #'normalOctave \notesToBeQuoted
   
    gis4 g gis a
}

%  Define the normal version of the part,
%  and define something quoteable based on that

fluteNotes = \keepWithTag #'normalOctave \allFluteNotes
\addQuote "flute" { \fluteNotes }


%  Define the version of the part for transposed cues,
%  and define something quoteable based on that

fluteNotesForCues = \keepWithTag #'cuedOctave \allFluteNotes
\addQuote "fluteTransposed" { \fluteNotesForCues }


%  Use the appropriate quotables in parts

oboeNotes = \relative {
    c''4 cis c b \quoteDuring #"flute" { s1 }
    b4 c cis c
}

celloNotesWithCueAtPitch = \relative c {
    a4 a a a
    \quoteDuring #"flute" { s1 }
    a4 a a a
}

celloNotesWithTransposedCue = \relative c {
    a4 a a a
    \quoteDuring #"fluteTransposed" { s1 }
    a4 a a a
}


%  Use the parts with the various quotes

\score {
    <<
        \new Staff \with { instrumentName = "Flute" } \fluteNotes
        \new Staff \with { instrumentName = "Oboe" } \oboeNotes
        \new Staff \with { instrumentName = \markup \center-column { "Cello with" "cue at pitch" } } {
            \clef bass
            \celloNotesWithCueAtPitch
        }
        \new Staff \with { instrumentName = \markup \center-column { "Cello with" "transposed cue" } } {
            \clef bass
            \celloNotesWithTransposedCue
        }
    >>
    \layout {
        indent = 4\cm
    }
}



HTH,

Elaine Alt
415 . 341 .4954                                           "Confusion is highly underrated"
address@hidden
Producer ~ Composer ~ Instrumentalist ~ Educator
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

reply via email to

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