<!-- header_tag --> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html401/loose.dtd"> <html> <!-- Copyright C 1999-2009 por los autores 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. The translation of the following copyright notice is provided for courtesy to non-English speakers, but only the notice in English legally counts. 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". --> <!-- Created on el 15 diciembre 2009 by texi2html 1.82 texi2html was written by: Lionel Cons <Lionel.Cons@cern.ch> (original author) Karl Berry <karl@freefriends.org> Olaf Bachmann <obachman@mathematik.uni-kl.de> and many others. Maintained by: Many creative people. Send bugs and suggestions to <texi2html-bug@nongnu.org> --> <head> <title>Manual de aprendizaje de GNU LilyPond: 3.3.5 Adding and removing engravers</title> <meta name="description" content="Manual de aprendizaje de GNU LilyPond: 3.3.5 Adding and removing engravers"> <meta name="keywords" content="Manual de aprendizaje de GNU LilyPond: 3.3.5 Adding and removing engravers"> <meta name="resource-type" content="document"> <meta name="distribution" content="global"> <meta name="Generator" content="texi2html 1.82"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <link href="index.es.html#Top" rel="start" title="GNU LilyPond: Manual de aprendizaje"> <link href="LilyPond-index.es.html#LilyPond-index" rel="index" title="D. LilyPond index"> <link href="index_toc.es.html#SEC_Contents" rel="contents" title="Índice General"> <link href="index_abt.es.html#SEC_About" rel="help" title="Acerca de este documento"> <link href="Contexts-and-engravers.es.html#Contexts-and-engravers" rel="up" title="3.3 Contexts and engravers"> <link href="LilyPond-index.es.html#LilyPond-index" rel="next" title="D. LilyPond index"> <link href="Modifying-context-properties.es.html#Modifying-context-properties" rel="previous" title="3.3.4 Modifying context properties"> <link rel="stylesheet" type="text/css" title="Patrick McCarty's design" href="lilypond-mccarty.css"> <link rel="alternate stylesheet" type="text/css" href="lilypond.css" title="Andrew Hawryluk's design"> <link rel="alternate stylesheet" type="text/css" href="lilypond-blue.css" title="Kurt Kroon's blue design"> <!--[if lte IE 7]> <link href="lilypond-ie-fixes.css" rel="stylesheet" type="text/css"> <![endif]--> </head> <body lang="es" bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000"> <div id="main"> <a name="Adding-and-removing-engravers"></a> <table class="nav_table"> <tr><td valign="middle" align="left" colspan="1">[<a href="Fundamental-concepts.es.html#Fundamental-concepts" title="Inicio de este capítulo o capítulo anterior"> << Fundamental concepts </a>]</td><td valign="middle" align="center" colspan="3">[<a href="index.es.html#Top" title="Portada del documento" rel="start">Arriba</a>][<a href="index_toc.es.html#SEC_Contents" title="Índice general" rel="contents">Índice general</a>][<a href="LilyPond-index.es.html#LilyPond-index" title="Índice" rel="index">Índice</a>][<a href="index_abt.es.html#SEC_About" title="Acerca de (página de ayuda)" rel="help"> ? </a>]</td><td valign="middle" align="right" colspan="1">[<a href="Tweaking-output.es.html#Tweaking-output" title="Capítulo siguiente"> Tweaking output >> </a>]</td></tr><tr><td valign="middle" align="left" colspan="2">[<a href="Modifying-context-properties.es.html#Modifying-context-properties" title="Sección anterior en orden de lectura" accesskey="p" rel="previous"> < Modifying context properties </a>]</td><td valign="middle" align="center" colspan="1">[<a href="Contexts-and-engravers.es.html#Contexts-and-engravers" title="Subir sección" accesskey="u" rel="up"> Subir : Contexts and engravers </a>]</td><td valign="middle" align="right" colspan="2">[<a href="Extending-the-templates.es.html#Extending-the-templates" title="Sección siguiente en orden de lectura" accesskey="n" rel="next"> Extending the templates > </a>]</td></tr></table> <a name="Adding-and-removing-engravers"></a> <h3 class="subsection">3.3.5 Adding and removing engravers</h3> <a name="index-grabadores_002c-adicion"></a> <a name="index-grabadores_002c-eliminacion"></a> <a name="index-adicion-de-grabadores"></a> <a name="index-eliminacion-de-grabadores"></a> <a name="index-_005cconsists"></a> <a name="index-_005cconsists-1"></a> <a name="index-consists"></a> <a name="index-consists-1"></a> <a name="index-_005cremove"></a> <a name="index-_005cremove-1"></a> <a name="index-remove"></a> <a name="index-remove-1"></a> <p>Hemos visto que cada uno de los contextos contiene varios grabadores, cada uno de los cuales a su vez es responsable de la producción de una fracción particular del resultado impreso, como líneas divisorias, pentagramas, cabezas, plicas, etc. Si un grabador es eliminado de un contexto, ya no podrá producir su salida impresa. Es una forma algo radical de modificar la salida, pero a veces puede ser útil. </p> <a name="Changing-a-single-context"></a> <h4 class="subsubheading">Changing a single context</h4> <p>Para eliminar un grabador de un contexto único, usamos la instrucción <code>\with</code> situada inmediatamente después de la instrucción que crea el contexto, como en la sección anterior. </p> <p>Como ilustración, repitamos un ejemplo extraído de la sección anterior con las líneas del pentagrama eliminadas. Recuerde que las líneas del pentagrama están dibujadas por el grabador <code>Staff_symbol_engraver</code>. </p> <blockquote><pre class="verbatim">\new Staff \with { \remove Staff_symbol_engraver } \relative c' { c4 \set fontSize = #-4 % make note heads smaller d e \set fontSize = #2.5 % make note heads larger f g \unset fontSize % return to default size a b } </pre><p> <a href="../d6/lily-4e513b79.ly"> <img align="middle" border="0" src="../d6/lily-4e513b79.png" alt="[image of music]"> </a> </p> </blockquote> <a name="index-ambito_002c-grabador-del"></a> <p>Los grabadores también se pueden añadir a los contextos individuales La instrucción que lo hace es </p> <p><code>\consists <var>Nombre_del_grabador</var></code>, </p> <p>situada dentro de un bloque <code>\with</code>. Ciertas partituras vocales tienen una indicación de ámbito o tesitura situada al principio del pentagrama para indicar el ámbito de notas en dicho pentagrama, véase <a name="index-ambitus"></a> <a href="../music-glossary/ambitus.es.html#ambitus">ambitus</a>. El ambitus se produce por parte del grabador <code>Ambitus_engraver</code>, que normalmente no está incluido en ningún contexto. Si lo añadimos al contexto <code>Voice</code>, calcula el rango a partir de esa única voz: </p> <blockquote><pre class="verbatim">\new Staff << \new Voice \with { \consists Ambitus_engraver } \relative c'' { \voiceOne c a b g } \new Voice \relative c' { \voiceTwo c e d f } >> </pre><p> <a href="../5a/lily-1a7ef6c3.ly"> <img align="middle" border="0" src="../5a/lily-1a7ef6c3.png" alt="[image of music]"> </a> </p> </blockquote> <p>pero si añadimos el grabador de ámbito al contexto de <code>Staff</code>, calcula el rango de todas las notas en todas las voces de ese pentagrama: </p> <blockquote><pre class="verbatim">\new Staff \with { \consists Ambitus_engraver } << \new Voice \relative c'' { \voiceOne c a b g } \new Voice \relative c' { \voiceTwo c e d f } >> </pre><p> <a href="../0d/lily-d7b96de6.ly"> <img align="middle" border="0" src="../0d/lily-d7b96de6.png" alt="[image of music]"> </a> </p> </blockquote> <a name="Changing-all-contexts-of-the-same-type"></a> <h4 class="subsubheading">Changing all contexts of the same type</h4> <a name="index-_005clayout-2"></a> <a name="index-_005clayout-3"></a> <a name="index-layout-3"></a> <a name="index-layout-4"></a> <p>Los ejemplos anteriores muestran la manera de eliminar o añadir grabadores a los contextos individuales. También es posible eliminar o añadir grabadores a todos los contextos de un tipo específico, situando las instrucciones en el contexto correspondiente dentro de un bloque <code>\layout</code>. Por ejemplo, si queremos mostrar los rangos de tesitura para todos los pentagramas de una partitura de cuatro pautas, podemos escribir </p> <blockquote><pre class="verbatim">\score { << \new Staff << \relative c'' { c a b g } >> \new Staff << \relative c' { c a b g } >> \new Staff << \clef "G_8" \relative c' { c a b g } >> \new Staff << \clef "bass" \relative c { c a b g } >> >> \layout { \context { \Staff \consists Ambitus_engraver } } } </pre><p> <a href="../e6/lily-052402f6.ly"> <img align="middle" border="0" src="../e6/lily-052402f6.png" alt="[image of music]"> </a> </p> </blockquote> <p>Los valores predeterminados de las propiedades de los contextos también se pueden establecer para todos los contextos de un tipo en particular incluyendo la instrucción <code>\set</code> dentro de un bloque <code>\context</code> de la misma forma. </p> <a name="Vease-tambien-14"></a> <h4 class="subsubheading">Véase también</h4> <p>Referencia de la notación: <a name="index-Modifying-context-plug_002dins"></a> <a href="../lilypond/Modifying-context-plug_002dins.es.html#Modifying-context-plug_002dins">Modifying context plug-ins</a>, <a name="index-Changing-context-default-settings-1"></a> <a href="../lilypond/Changing-context-default-settings.es.html#Changing-context-default-settings">Changing context default settings</a>. </p> <hr size="6"> <table class="nav_table"> <tr><td valign="middle" align="left" colspan="1">[<a href="Fundamental-concepts.es.html#Fundamental-concepts" title="Inicio de este capítulo o capítulo anterior"> << Fundamental concepts </a>]</td><td valign="middle" align="center" colspan="3">[<a href="index.es.html#Top" title="Portada del documento" rel="start">Arriba</a>][<a href="index_toc.es.html#SEC_Contents" title="Índice general" rel="contents">Índice general</a>][<a href="LilyPond-index.es.html#LilyPond-index" title="Índice" rel="index">Índice</a>][<a href="index_abt.es.html#SEC_About" title="Acerca de (página de ayuda)" rel="help"> ? </a>]</td><td valign="middle" align="right" colspan="1">[<a href="Tweaking-output.es.html#Tweaking-output" title="Capítulo siguiente"> Tweaking output >> </a>]</td></tr><tr><td valign="middle" align="left" colspan="2">[<a href="Modifying-context-properties.es.html#Modifying-context-properties" title="Sección anterior en orden de lectura" accesskey="p" rel="previous"> < Modifying context properties </a>]</td><td valign="middle" align="center" colspan="1">[<a href="Contexts-and-engravers.es.html#Contexts-and-engravers" title="Subir sección" accesskey="u" rel="up"> Subir : Contexts and engravers </a>]</td><td valign="middle" align="right" colspan="2">[<a href="Extending-the-templates.es.html#Extending-the-templates" title="Sección siguiente en orden de lectura" accesskey="n" rel="next"> Extending the templates > </a>]</td></tr></table> <!-- footer_tag --> <div class="footer"> <p class="footer_version"> This page is for LilyPond-2.12.3 (stable-branch). </p> <p class="footer_report"> Your <a href="http://lilypond.org/web/devel/participating/documentation-adding">suggestions for the documentation</a> are welcome, please report errors to our <a href="http://post.gmane.org/post.php?group=gmane.comp.gnu.lilypond.bugs">bug list</a>. </p> </div> <p id="languages"> Other languages: <a href="Adding-and-removing-engravers.html">English</a>, <a href="Adding-and-removing-engravers.fr.html">français</a>, <a href="Adding-and-removing-engravers.de.html">deutsch</a>. <br> </p> <!-- FOOTER --> <!-- end div#main here --> </div> <div id="tocframe"> <p class="toc_uplink"><a href="../index.es.html" title="Documentation Index"><< Volver al índice de la documentación</a></p> <h4 class="toc_header"><a href="index.es.html#Top" title="Start of the manual">Manual de aprendizaje</a></h4> <div class="contents"> <ul class="toc"> <li><a name="toc-Preface-1" href="Preface.es.html#Preface">Preface</a> </li> <li><a name="toc-Introduction-1" href="Introduction.es.html#Introduction">1. Introduction</a> <ul class="toc"> <li><a name="toc-Background-1" href="Background.es.html#Background">1.1 Background</a> </li> <li><a name="toc-About-the-documentation-1" href="About-the-documentation.es.html#About-the-documentation">1.2 About the documentation</a> </li> </ul> </li> <li><a name="toc-Tutorial-1" href="Tutorial.es.html#Tutorial">2. Tutorial</a> <ul class="toc"> <li><a name="toc-First-steps-1" href="First-steps.es.html#First-steps">2.1 First steps</a> </li> <li><a name="toc-Single-staff-notation-1" href="Single-staff-notation.es.html#Single-staff-notation">2.2 Single staff notation</a> </li> <li><a name="toc-Multiple-notes-at-once-1" href="Multiple-notes-at-once.es.html#Multiple-notes-at-once">2.3 Multiple notes at once</a> </li> <li><a name="toc-Songs-1" href="Songs.es.html#Songs">2.4 Songs</a> </li> <li><a name="toc-Final-touches-1" href="Final-touches.es.html#Final-touches">2.5 Final touches</a> </li> </ul> </li> <li class="toc_current"><a name="toc-Fundamental-concepts-1" href="Fundamental-concepts.es.html#Fundamental-concepts">3. Fundamental concepts</a> <ul class="toc"> <li><a name="toc-How-LilyPond-input-files-work-1" href="How-LilyPond-input-files-work.es.html#How-LilyPond-input-files-work">3.1 How LilyPond input files work</a> </li> <li><a name="toc-Voices-contain-music-1" href="Voices-contain-music.es.html#Voices-contain-music">3.2 Voices contain music</a> </li> <li class="toc_current"><a name="toc-Contexts-and-engravers-1" href="Contexts-and-engravers.es.html#Contexts-and-engravers">3.3 Contexts and engravers</a> <ul class="toc"> <li><a name="toc-Contexts-explained-1" href="Contexts-explained.es.html#Contexts-explained">3.3.1 Contexts explained</a> </li> <li><a name="toc-Creating-contexts-1" href="Creating-contexts.es.html#Creating-contexts">3.3.2 Creating contexts</a> </li> <li><a name="toc-Engravers-explained-1" href="Engravers-explained.es.html#Engravers-explained">3.3.3 Engravers explained</a> </li> <li><a name="toc-Modifying-context-properties-1" href="Modifying-context-properties.es.html#Modifying-context-properties">3.3.4 Modifying context properties</a> </li> <li class="toc_current"><a name="toc-Adding-and-removing-engravers-1" href="Adding-and-removing-engravers.es.html#Adding-and-removing-engravers">3.3.5 Adding and removing engravers</a> </li> </ul> </li> <li><a name="toc-Extending-the-templates-1" href="Extending-the-templates.es.html#Extending-the-templates">3.4 Extending the templates</a> </li> </ul> </li> <li><a name="toc-Tweaking-output-1" href="Tweaking-output.es.html#Tweaking-output">4. Tweaking output</a> <ul class="toc"> <li><a name="toc-Tweaking-basics-1" href="Tweaking-basics.es.html#Tweaking-basics">4.1 Tweaking basics</a> </li> <li><a name="toc-The-Internals-Reference-manual-1" href="The-Internals-Reference-manual.es.html#The-Internals-Reference-manual">4.2 The Internals Reference manual</a> </li> <li><a name="toc-Appearance-of-objects-1" href="Appearance-of-objects.es.html#Appearance-of-objects">4.3 Appearance of objects</a> </li> <li><a name="toc-Placement-of-objects-1" href="Placement-of-objects.es.html#Placement-of-objects">4.4 Placement of objects</a> </li> <li><a name="toc-Collisions-of-objects-1" href="Collisions-of-objects.es.html#Collisions-of-objects">4.5 Collisions of objects</a> </li> <li><a name="toc-Further-tweaking-1" href="Further-tweaking.es.html#Further-tweaking">4.6 Further tweaking</a> </li> </ul> </li> <li><a name="toc-Working-on-LilyPond-projects-1" href="Working-on-LilyPond-projects.es.html#Working-on-LilyPond-projects">5. Working on LilyPond projects</a> <ul class="toc"> <li><a name="toc-Suggestions-for-writing-LilyPond-files-1" href="Suggestions-for-writing-LilyPond-files.es.html#Suggestions-for-writing-LilyPond-files">5.1 Suggestions for writing LilyPond files</a> </li> <li><a name="toc-When-things-don_0027t-work-1" href="When-things-don_0027t-work.es.html#When-things-don_0027t-work">5.2 When things don’t work</a> </li> <li><a name="toc-Scores-and-parts-1" href="Scores-and-parts.es.html#Scores-and-parts">5.3 Scores and parts</a> </li> </ul> </li> <li><a name="toc-Templates-1" href="Templates.es.html#Templates">A. Templates</a> <ul class="toc"> <li><a name="toc-Single-staff-1" href="Single-staff.es.html#Single-staff">A.1 Single staff</a> </li> <li><a name="toc-Piano-templates-1" href="Piano-templates.es.html#Piano-templates">A.2 Piano templates</a> </li> <li><a name="toc-String-quartet-2" href="String-quartet.es.html#String-quartet">A.3 String quartet</a> </li> <li><a name="toc-Vocal-ensembles-1" href="Vocal-ensembles.es.html#Vocal-ensembles">A.4 Vocal ensembles</a> </li> <li><a name="toc-Ancient-notation-templates-1" href="Ancient-notation-templates.es.html#Ancient-notation-templates">A.5 Ancient notation templates</a> </li> <li><a name="toc-Jazz-combo-1" href="Jazz-combo.es.html#Jazz-combo">A.6 Jazz combo</a> </li> <li><a name="toc-lilypond_002dbook-templates-1" href="lilypond_002dbook-templates.es.html#lilypond_002dbook-templates">A.7 lilypond-book templates</a> </li> </ul> </li> <li><a name="toc-Scheme-tutorial-1" href="Scheme-tutorial.es.html#Scheme-tutorial">B. Scheme tutorial</a> <ul class="toc"> <li><a name="toc-Tweaking-with-Scheme-1" href="Tweaking-with-Scheme.es.html#Tweaking-with-Scheme">B.1 Tweaking with Scheme</a> </li> </ul> </li> <li><a name="toc-GNU-Free-Documentation-License-1" href="GNU-Free-Documentation-License.es.html#GNU-Free-Documentation-License">C. GNU Free Documentation License</a> </li> <li><a name="toc-LilyPond-index-1" href="LilyPond-index.es.html#LilyPond-index">D. LilyPond index</a> </li> </ul> </div> </div> </body> </html>