Previous: Quoting other voices, Up: Orchestral music



5.15.13 Formatting cue notes

The previous section deals with inserting notes from another voice. There is a more advanced music function called \cueDuring, which makes formatting cue notes easier.

The syntax is

  \cueDuring #name #updown music

This will insert notes from the part name into a Voice (lilypond-internals) called cue. This happens simultaneously with music, which usually is a rest. When the cue notes start, the staff in effect becomes polyphonic for a moment. The argument updown determines whether the cue notes should be notated as a first or second voice.

smaller = {
  \set fontSize = #-2
  \override Stem #'length = #5.5
  \override Beam #'thickness = #0.384
  \override Beam #'space-function =
    #(lambda (beam mult) (* 0.8 (Beam::space_function beam mult)))
}

\addquote clarinet \relative {
  R1*20
  r2 r8 c f f
}

\new Staff \relative  <<

  % setup a context for  cue  notes.
  \context Voice = cue { \smaller \skip 1*21 }

  \set Score.skipBars = ##t

  \new Voice {
    R1*20
    \cueDuring #"clarinet" #1 {
      R1
    }
    g4 g2.
  }
>>

[image of music]

Here are a couple of hints for successful cue notes

Read comments on this page, or add one.

This page is for LilyPond-2.5.11 (development-branch).

Report errors to <bug-lilypond@gnu.org>.

Other languages: English.
Using automatic language selection.