%% Generated by lilypond-book
%% Options: [exampleindent=10.16\mm,indent=0\mm,line-width=160\mm,paper-height=845.047\pt,paper-width=597.508\pt,papersize='(cons (* 597.508 pt) (* 845.047 pt))]
\include "lilypond-book-preamble.ly"


% ****************************************************************
% Start cut-&-pastable-section
% ****************************************************************

#(ly:set-option 'eps-box-padding 3.000000)



\paper {
  #(set-paper-size '(cons (* 597.508 pt) (* 845.047 pt)))
  indent = 0\mm
  line-width = 160\mm
  % offset the left padding, also add 1mm as lilypond creates cropped
  % images with a little space on the right
  line-width = #(- line-width (* mm  3.000000) (* mm 1))
}

\layout {
  
}




% ****************************************************************
% ly snippet:
% ****************************************************************
\sourcefilename "snippets/measure-spanner.ly"
\sourcefileline 0
%% DO NOT EDIT this file manually; it was automatically
%% generated from the LilyPond Wiki
%% (https://wiki.lilypond.community).
%%
%% Make any changes in the Wiki itself, or in
%% `Documentation/snippets/new/`, then run
%% `scripts/auxiliar/makelsr.pl`.
%%
%% This file is in the public domain.

\version "2.24.0"

\header {
%% Translation of GIT committish: de1e42ce512f3690387cdd065109bddff1b7bd6d
  texidocfr = "
Les bandeaux sur mesure sont un moyen alternatif d'imprimer un crochet
annoté. Contrairement aux crochets horizontaux, ces bandeaux s'étendent
entre deux barres de mesure plutôt qu'entre deux notes. Le texte est
centré sur l'empan du crochet.
"

  doctitlefr = "Crochet de mesure"

%% Translation of GIT committish: c5cb44a3f4ba9768485cdb6baa6d861bcddcfe62
  texidoces = "
Los elementos de extensión de compases son una forma alternativa
de imprimir corchetes anotados.  A diferencia de los corchetes
horizontales, estos se extienden entre dos líneas divisorias en
lugar de hacerlo entre dos notas.  El texto se imprime en el
centro del corchete.
"

  doctitlees = "Corchete que abarca varios compases"
  categories = "Contexts and engravers, Editorial annotations"

  texidoc = "
Measure spanners are an alternate way to print annotated brackets. As
opposed to horizontal brackets, they extend between two bar lines
rather than two notes. The text is displayed in the center of the
bracket.
"

  doctitle = "Measure spanner"
} % begin verbatim


\layout {
  \context {
    \Staff
    \consists Measure_spanner_engraver
  }
}

<<
  \new Staff \relative c'' {
    \key d \minor
    R1*2
    \tweak text "Answer"
    \startMeasureSpanner
    \tuplet 3/2 8 {
      a16[ b c] d[ c b]  c[ d e] f[ e d]
    }
    e8 a gis g
    fis f e d~ d c b e
    \stopMeasureSpanner
  }
  \new Staff \relative c' {
    \key d \minor
    \tweak text "Subject"
      \tweak direction #DOWN
      \startMeasureSpanner
    \tuplet 3/2 8 {
      d16[ e f] g[ f e] f[ g a] bes[ a g]
    }
    a8 d cis c
    b bes a g~ g f e a
    \stopMeasureSpanner
    \tweak text "Counter-subject"
      \tweak direction #DOWN
      \startMeasureSpanner
    f8 e a r r16 b, c d e fis g e
    a gis a b c fis, b a gis e a4 g8
    \stopMeasureSpanner
  }
>>



% ****************************************************************
% end ly snippet
% ****************************************************************
