\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@hiddenProducer ~ Composer ~ Instrumentalist ~ Educator
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-