Home
Random
Log in
Settings
About LilyPond wiki
LilyPond wiki
Search
Editing
Two cue voices
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
By default, LilyPond directs all simultaneous cues into a single voice. Here is a solution that uses two voices for two different cues. <lilypond version="2.24"> cueDuringAlt = #(define-music-function (what dir main-music) (string? ly:dir? ly:music?) (_i "Create a cue. This function inserts the contents of quote @var{what} corresponding to @var{main-music}, in a @code{CueVoice} context called @code{cueAlt} oriented by @var{dir}.") (make-music 'QuoteMusic 'element main-music 'quoted-context-type 'CueVoice 'quoted-context-id "cueAlt" 'quoted-music-name what 'quoted-voice-direction dir)) sop = \new Voice = "sop" \relative c''' { \repeat unfold 8 g4 } bass = \new Voice = "bass" \relative c' { \repeat unfold 8 b4 } first = \new Voice \relative c' { c4 d c d \cueDuring #"sop" #UP \cueDuringAlt #"bass" #DOWN { \override MultiMeasureRest.staff-position = 0 R1 } } \addQuote #"sop" \sop \addQuote #"bass" \bass { \first } { \second } </lilypond> [[Category:Simultaneous notes]] [[Category:Staff notation]] [[Category:Preparing parts]] [[Category:Snippet]]
Summary:
Please note that all contributions to LilyPond wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Meta:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)