#### 3.14.11 Quoting other voices

With quotations, fragments of other parts can be inserted into a part directly. Before a part can be quoted, it must be marked especially as quotable. This is done with code `\addquote` command. The quotation may then be done with `\quote`

         \addquote name music
         \quote name duration

Here, name is an identifying string. The music is any kind of music. This is an example of `\addquote`

    \addquote clarinet \notes\relative c' {
      f4 fis g gis
    }

During a part, a piece of music can be quoted with the `\quote` command.

         \quote clarinet 2.

This would cite 3 quarter notes (a dotted half note) of the previously added clarinet voice.

Quotations take into account the transposition both source and target instruments, if they are specified using the `\transposition` command.

>          \addquote clarinet \notes\relative c' {
>            \transposition bes
>            f4 fis g gis
>          }
>          \score {
>            \notes {
>            e'8 f'8 \quote clarinet 2
>          } }

##### Bugs

Only the contents of the first Voice occurring in an `\addquote` command will be considered for quotation, so music can not contain `\new` and `\context Voice` statements that would switch to a different Voice.

##### See also

In this manual: Instrument transpositions.

Examples: input/regression/quote.ly input/regression/quote-transposition.ly

Program reference: QuoteMusic.

Read comments on this page, or add one. This page is for LilyPond-2.2.5 (stable-branch).