<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <!-- header_tag --> <html lang="es"> <head> <title>Repeticiones normales - Referencia de la notación de GNU LilyPond</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="description" content="Referencia de la notación de GNU LilyPond"> <meta name="generator" content="makeinfo 4.11"> <link title="Top" rel="start" href="index.es.html#Top"> <link rel="up" href="Writing-long-repeats.es.html#Writing-long-repeats" title="Escribir repeticiones largas"> <link rel="next" href="Manual-repeat-marks.es.html#Manual-repeat-marks" title="Marcas de repetición manual"> <link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage"> <!-- Copyright (C) 1999--2007 por los autores _The translation of the following copyright notice is provided for courtesy to non-English speakers, but only the notice in English legally counts._ _La traducción de la siguiente nota de copyright se ofrece como cortesía para las personas de habla no inglesa, pero únicamente la nota en inglés tiene validez legal._ Se otorga permiso para copiar, distribuir y/o modificar este documento bajo los términos de la Licencia de Documentación Libre de GNU, versión 1.1 o cualquier versión posterior publicada por la Free Software Foundation; sin ninguna de las secciones invariantes. Se incluye una copia de esta licencia dentro de la sección titulada ``Licencia de Documentación Libre de GNU''. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation; with no Invariant Sections. A copy of the license is included in the section entitled ``GNU Free Documentation License''. --> <meta http-equiv="Content-Style-Type" content="text/css"> <style type="text/css"><!-- pre.display { font-family:inherit } pre.format { font-family:inherit } pre.smalldisplay { font-family:inherit; font-size:smaller } pre.smallformat { font-family:inherit; font-size:smaller } pre.smallexample { font-size:smaller } pre.smalllisp { font-size:smaller } span.sc { font-variant:small-caps } span.roman { font-family:serif; font-weight:normal; } span.sansserif { font-family:sans-serif; font-weight:normal; } hr { border:0; height:1; color: #000000; background-color: #000000; } /* hr { border: none; height: 1px; color: #666666; background-color: #666666; } body { border-left: 1px solid #666666; border-right: 1px solid #666666; color: #332d28; margin-right: auto; margin-left: auto; width: 60em; list-style-type: square; font-family: Arial,Helvetica,sans-serif; padding-right: 1em; padding-left: 1em; } a { border-bottom: 1px dashed #344242; text-decoration: none; color: #344242; } a:link { text-decoration: none; } a:visited { border-bottom: 1px dashed #666666; color: #666666; } a:active { border-bottom: 1px solid #00cccc; color: #00cccc; } a:hover { border-bottom: 1px solid #1d7b85; color: #1d7b85; } blockquote { border: 1px solid #cccccc; padding: 3px; width: 40em; } .node { border-left: 1px solid #666666; margin: -0.5em 0px 1em; padding: 2px 1px 0px; font-style: italic; } .node a { border: none; text-decoration: underline; font-style: normal; font-weight: bold; } .verbatim { font-family: "Courier New",Courier,monospace; } .unnumberedsubsubsec { font-size: large; color: #1d7b85; } .subsubheading { font-size: large; color: #3b220d; } .contents { border: 1px dashed #339999; margin: 3px 2em; list-style-type: square; padding-right: 1em; width: 40em; background-color: #fcfff9; } .contents a { border-bottom: 1px dashed #423d34; text-decoration: none; color: #423d34; } .contents a:visited { border-bottom: 1px dashed #666666; color: #666666; } .contents a:active { border-bottom: 1px solid #f0d86d; color: #f0d86d; } .contents a:hover { border-bottom: 1px solid #3b220d; color: #3b220d; } .menu { border-left: 1px dashed #339999; margin: 3px 2em 1em; list-style-type: square; padding-left: 1.4em; width: 40em; } .unnumbered { } h2 { font-size: x-large; color: #1d7b85; } */ --></style> </head> <BODY BGCOLOR=WHITE TEXT=BLACK> <div class="node"> <p> <a name="Normal-repeats"></a> Siguiente: <a rel="next" accesskey="n" href="Manual-repeat-marks.es.html#Manual-repeat-marks">Marcas de repetición manual</a>, Arriba: <a rel="up" accesskey="u" href="Writing-long-repeats.es.html#Writing-long-repeats">Escribir repeticiones largas</a> <hr> </div> <h5 class="subsubsection">1.4.1.1 Repeticiones normales</h5> <p>La sintaxis de una repetición simple es <pre class="example">\repeat <var>variante</var> <var>número_de_repeticiones</var> <var>cuerpo_de_la_repetición</var> </pre> <p>donde <var>cuerpo_de_la_repetición</var> es una expresión musical. <p>Repeticiones normales sin finales alternativos: <blockquote> <pre class="verbatim"> \repeat volta 2 { c4 d e f } c2 d \repeat volta 2 { d4 e f g } </pre> <p> <a href="../ca/lily-5564a9c5.ly"> <img align="middle" border="0" src="../ca/lily-5564a9c5.png" alt="[image of music]"> </a> </p> </blockquote> <p>Repeticiones normales con primera y segunda vez: <blockquote> <pre class="verbatim"> \repeat volta 2 { g f e d } \alternative { { cis2 g' } { cis,2 b } } c1 </pre> <p> <a href="../08/lily-4adf5d64.ly"> <img align="middle" border="0" src="../08/lily-4adf5d64.png" alt="[image of music]"> </a> </p> </blockquote> <p>Repeticiones con anacrusa: <blockquote> <pre class="verbatim"> \new Staff { \partial 4 e | \repeat volta 4 { c2 d2 | e2 f2 | } \alternative { { g4 g g e } { a a a a | b2. } } } </pre> <p> <a href="../03/lily-3f34ec89.ly"> <img align="middle" border="0" src="../03/lily-3f34ec89.png" alt="[image of music]"> </a> </p> </blockquote> <p class="noindent">o bien <blockquote> <pre class="verbatim"> \new Staff { \partial 4 \repeat volta 4 { e | c2 d2 | e2 f2 | } \alternative { { \partial 4*3 g4 g g } { a a a a | b2. } } } </pre> <p> <a href="../66/lily-2d8d9cba.ly"> <img align="middle" border="0" src="../66/lily-2d8d9cba.png" alt="[image of music]"> </a> </p> </blockquote> <p><a name="index-g_t_005crepeatTie-784"></a><a name="index-g_t_005crepeatTie-785"></a> <p>Se pueden añadir ligaduras de unión al segundo final: <blockquote> <pre class="verbatim"> c1 \repeat volta 2 {c4 d e f ~ } \alternative { {f2 d} {f\repeatTie f,} } </pre> <p> <a href="../38/lily-732ff0ac.ly"> <img align="middle" border="0" src="../38/lily-732ff0ac.png" alt="[image of music]"> </a> </p> </blockquote> <p>De manera predeterminada, los corchetes de primera y segunda vez se dibujan por encima de todo el fragmento de finales alternativos, pero es posible acortar los corchetes de primera y segunda vez estableciendo <code>voltaSpannerDuration</code>. En el ejemplo siguiente, el corchete sólo dura un compás, lo que supone una duración de 3/4. <blockquote> <pre class="verbatim"> \time 3/4 c c c \set Score.voltaSpannerDuration = #(ly:make-moment 3 4) \repeat volta 5 { d d d } \alternative { { e e e f f f } { g g g } } </pre> <p> <a href="../e9/lily-8cb87ba3.ly"> <img align="middle" border="0" src="../e9/lily-8cb87ba3.png" alt="[image of music]"> </a> </p> </blockquote> <p>El grabador <code>Volta_engraver</code> reside de manera predeterminada dentro del contexto Score, y así los corchetes de las repeticiones se imprimen solamente por encima del pentagrama superior. Se puede ajustar esto añadiento el grabador <code>Volta_engraver</code> al contexto Staff en que queremos que aparezcan los corchetes; véase <a href="Modifying-context-plug_002dins.es.html#Modifying-context-plug_002dins">Modificar los complementos (plug-ins) de contexto</a> y <a href="../../../input/lsr/lilypond-snippets/Repeats.html#Repeats">Repeticiones</a>. <blockquote> <pre class="verbatim"> \score { << \new Staff { \repeat volta 2 { c'1 } \alternative { c' } } \new Staff { \repeat volta 2 { c'1 } \alternative { c' } } \new Staff \with { \consists Volta_engraver } { c'2 g' e' a' } \new Staff { \repeat volta 2 { c'1 } \alternative { c' } } >> } </pre> <p> <a href="../7b/lily-75157a81.ly"> <img align="middle" border="0" src="../7b/lily-75157a81.png" alt="[image of music]"> </a> </p> </blockquote> <!-- Is there a way to have a final bar ("|.") at the end of the --> <!-- previous line? Doesn't seem to be. --> <p>Si quiere comenzar una repetición al principio de una línea y tiene una doble barra al final de la línea anterior, utilice <blockquote> <pre class="verbatim"> c4 c c c \bar "||:" \break \repeat volta 2 { c4 d e f } </pre> <p> <a href="../25/lily-eeed1fb0.ly"> <img align="middle" border="0" src="../25/lily-eeed1fb0.png" alt="[image of music]"> </a> </p> </blockquote> <p>consulte <a href="Bar-lines.es.html#Bar-lines">Barras de compás</a> para ver más información. <p class="noindent"> <h5 class="subsubheading">Véase también</h5> <p class="indent"> <p>Glosario musical: <a name="index-repeat-786"></a><a href="../music-glossary/repeat.es.html#repeat">repetición</a>. <!-- FIXME : add @rglos{volta} after glossary addition --> <p>Referencia de la notación: <a href="Bar-lines.es.html#Bar-lines">Barras de compás</a>, <a href="Modifying-context-plug_002dins.es.html#Modifying-context-plug_002dins">Modificar los complementos (plug-ins) de contexto</a>. <p>Fragmentos de código: <a href="../../../input/lsr/lilypond-snippets/Repeats.html#Repeats">Repeticiones</a>. <p>Referencia de funcionamiento interno: <a name="index-VoltaBracket-787"></a><a href="../lilypond-internals/VoltaBracket.es.html#VoltaBracket">VoltaBracket</a>, <a name="index-RepeatedMusic-788"></a><a href="../lilypond-internals/RepeatedMusic.es.html#RepeatedMusic">RepeatedMusic</a>, <a name="index-VoltaRepeatedMusic-789"></a><a href="../lilypond-internals/VoltaRepeatedMusic.es.html#VoltaRepeatedMusic">VoltaRepeatedMusic</a>, <a name="index-UnfoldedRepeatedMusic-790"></a><a href="../lilypond-internals/UnfoldedRepeatedMusic.es.html#UnfoldedRepeatedMusic">UnfoldedRepeatedMusic</a>. <!-- Ejemplos: --> <p class="noindent"> <h5 class="subsubheading">Advertencias y problemas conocidos</h5> <p><a name="index-repetici_00c3_00b3n-ambigua-791"></a> Una repetición anidada como <pre class="example">\repeat ... \repeat ... \alternative </pre> <p class="noindent">es ambigua porque no está claro a qué <code>\repeat</code> pertenece la <code>\alternative</code>. Esta ambigüedad se resuelve haciendo que la <code>\alternative</code> pertenezca siempre a la <code>\repeat</code> más interna. Para más claridad, se recomienda usar llaves en tales situaciones. <p>La información del contador de tiempo no se recuerda al comienzo de una alternativa, por ello después de una repetición la información de la cuenta de tiempo se debe reajustar manualmente; por ejemplo, estableciendo el valor de <code>Score.measurePosition</code> o introduciendo <code>\partial</code>. De forma similar, las ligaduras de expresión o de unión tampoco se repiten. <!-- footer_tag --><br><hr> <div class="node"> <p> Siguiente: <a rel="next" accesskey="n" href="Manual-repeat-marks.es.html#Manual-repeat-marks">Marcas de repetición manual</a>, Arriba: <a rel="up" accesskey="u" href="Writing-long-repeats.es.html#Writing-long-repeats">Escribir repeticiones largas</a> </div> <div style="background-color: #e8ffe8; padding: 2; border: #c0ffc0 1px solid;"> <p> <font size="-1"> Esta página corresponde a LilyPond-2.11.57 (rama de desarrollo). <br> <address> Informe de los fallos a través de la lista en español <a href="http://es.groups.yahoo.com/group/lilypond-es/">lilypond-es</a>, o en inglés a través de <a href="http://post.gmane.org/post.php?group=gmane.comp.gnu.lilypond.bugs">http://post.gmane.org/post.php?group=gmane.comp.gnu.lilypond.bugs</a>. </address> <br> Se agradecen las <a href="http://lilypond.org/web/devel/participating/documentation-adding">sugerencias para la documentación</a>. </font> </p> </div> <P> Otros idiomas: <a href="Normal-repeats.html">English</a>. <BR> </P> </BODY></html>