Very powerful function. Nice to know about.
this worked for me. I found that rest durations are not the same as note durations so the following notes have to be specified.
putting in the line
\quoteDuring flute s1
added another staff so I deleted it.
Bill
%%%%
\version "2.19.83"
fluteNotes = \relative {
a'4 gis g gis | b4^\markup {quoted} r8 ais8\p a4( f)
}
oboeNotes = \relative {
c''4 cis c b\quoteDuring flute { e4 r8 ais8 b4 a }
}
\addQuote "flute" { \fluteNotes }
\score {
<<
\new Staff \with { instrumentName = "Flute" } \fluteNotes
\new Staff \with { instrumentName = "Oboe" } \oboeNotes
>>
}
%%%%%