<!-- 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>Referencia de la notación de GNU LilyPond: 5.1.3 Modifying context plug-ins</title> <meta name="description" content="Referencia de la notación de GNU LilyPond: 5.1.3 Modifying context plug-ins"> <meta name="keywords" content="Referencia de la notación de GNU LilyPond: 5.1.3 Modifying context plug-ins"> <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#index" rel="start" title="GNU LilyPond: Manual de referencia de la notación"> <link href="LilyPond-command-index.es.html#LilyPond-command-index" rel="index" title="E. LilyPond command 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="Interpretation-contexts.es.html#Interpretation-contexts" rel="up" title="5.1 Interpretation contexts"> <link href="LilyPond-index.es.html#LilyPond-index" rel="next" title="F. LilyPond index"> <link href="Creating-contexts.es.html#Creating-contexts" rel="previous" title="5.1.2 Creating contexts"> <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="Modifying-context-plug_002dins"></a> <table class="nav_table"> <tr><td valign="middle" align="left" colspan="1">[<a href="Changing-defaults.es.html#Changing-defaults" title="Inicio de este capítulo o capítulo anterior"> << Changing defaults </a>]</td><td valign="middle" align="center" colspan="3">[<a href="index.es.html#index" 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-command-index.es.html#LilyPond-command-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="Interfaces-for-programmers.es.html#Interfaces-for-programmers" title="Capítulo siguiente"> Interfaces for programmers >> </a>]</td></tr><tr><td valign="middle" align="left" colspan="2">[<a href="Creating-contexts.es.html#Creating-contexts" title="Sección anterior en orden de lectura" accesskey="p" rel="previous"> < Creating contexts </a>]</td><td valign="middle" align="center" colspan="1">[<a href="Interpretation-contexts.es.html#Interpretation-contexts" title="Subir sección" accesskey="u" rel="up"> Subir : Interpretation contexts </a>]</td><td valign="middle" align="right" colspan="2">[<a href="Changing-context-default-settings.es.html#Changing-context-default-settings" title="Sección siguiente en orden de lectura" accesskey="n" rel="next"> Changing context default settings > </a>]</td></tr></table> <a name="Modifying-context-plug_002dins"></a> <h3 class="subsection">5.1.3 Modifying context plug-ins</h3> <p>Los contextos de notación (como <code>Score</code> y <code>Staff</code>) no sólo almacenan propiedades, también contienen «plug-ins» o complementos llamados ‘grabadores’ que crean elementos de notación. Por ejemplo, el contexto <code>Voice</code> contiene un grabador <code>Note_head_engraver</code> que crea las cabezas de nota y el contexto <code>Staff</code> contiene un grabador <code>Key_signature_engraver</code> que crea la indicación de compás. </p> <p>Para ver una descripción completa de todos y cada uno de los complementos, consulte <a name="index-Engravers-and-Performers-1"></a> <a href="../lilypond-internals/Engravers-and-Performers.es.html#Engravers-and-Performers">Engravers and Performers</a>. Cada contexto que se describe en <a name="index-Contexts-1"></a> <a href="../lilypond-internals/Contexts.es.html#Contexts">Contexts</a> relaciona los grabadores que se usan para ese contexto. </p> <p>Puede ser de utilidad jugar un poco con estos complementos. Se hace iniciando un contexto nuevo con <code>\new</code> o <code>\context</code> y modificándolo: </p> <a name="index-_005cwith"></a> <a name="index-_005cwith-1"></a> <blockquote><pre class="example">\new <var>contexto</var> \with { \consists … \consists … \remove … \remove … <em>etc.</em> } { <em>..música..</em> } </pre></blockquote> <p>donde los … debe ser el nombre de un grabador. Aquí tenemos un ejemplo sencillo que suprime los grabadores <code>Time_signature_engraver</code> y <code>Clef_engraver</code> de un contexto <code>Staff</code>: </p> <blockquote><pre class="verbatim"><< \new Staff { f2 g } \new Staff \with { \remove "Time_signature_engraver" \remove "Clef_engraver" } { f2 g2 } >> </pre><p> <a href="../7d/lily-077f1c55.ly"> <img align="middle" border="0" src="../7d/lily-077f1c55.png" alt="[image of music]"> </a> </p> </blockquote> <p>En el segundo pentagrama no hay indicación de compás ni clave. Éste es un método bastante rudimentario de hacer que desaparezcan los objetos porque afecta a todo el pentagrama. Este método también afecta al espaciado, lo que puede ser deseable o no serlo. Se muestran métodos más sofisticados para quitar objetos en <a name="index-Visibility-and-color-of-objects"></a> <a href="../lilypond-learning/Visibility-and-color-of-objects.es.html#Visibility-and-color-of-objects">Visibility and color of objects</a>. </p> <p>El ejemplo siguiente muestra una aplicación práctica. Normalmente las líneas divisorias y las indicaciones de compás están sincronizadas a lo largo de toda la partitura. Lo hacen los grabadores <code>Timing_translator</code> y <code>Default_bar_line_engraver</code>. Estos complementos mantienen al día la administración de las indicaciones de compás, posición dentro del compás, etc. Moviendo estos grabadores desde el contexto de <code>Score</code> al de <code>Staff</code>, podemos conseguir una partitura en la que cada pentagrama tiene su propio compás independiente. </p> <a name="index-polimetricas_002c-partituras"></a> <a name="index-compases-distintos-al-mismo-tiempo"></a> <blockquote><pre class="verbatim">\new Score \with { \remove "Timing_translator" \remove "Default_bar_line_engraver" } << \new Staff \with { \consists "Timing_translator" \consists "Default_bar_line_engraver" } { \time 3/4 c4 c c c c c } \new Staff \with { \consists "Timing_translator" \consists "Default_bar_line_engraver" } { \time 2/4 c4 c c c c c } >> </pre><p> <a href="../5f/lily-e6f300f0.ly"> <img align="middle" border="0" src="../5f/lily-e6f300f0.png" alt="[image of music]"> </a> </p> </blockquote> <hr size="6"> <table class="nav_table"> <tr><td valign="middle" align="left" colspan="1">[<a href="Changing-defaults.es.html#Changing-defaults" title="Inicio de este capítulo o capítulo anterior"> << Changing defaults </a>]</td><td valign="middle" align="center" colspan="3">[<a href="index.es.html#index" 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-command-index.es.html#LilyPond-command-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="Interfaces-for-programmers.es.html#Interfaces-for-programmers" title="Capítulo siguiente"> Interfaces for programmers >> </a>]</td></tr><tr><td valign="middle" align="left" colspan="2">[<a href="Creating-contexts.es.html#Creating-contexts" title="Sección anterior en orden de lectura" accesskey="p" rel="previous"> < Creating contexts </a>]</td><td valign="middle" align="center" colspan="1">[<a href="Interpretation-contexts.es.html#Interpretation-contexts" title="Subir sección" accesskey="u" rel="up"> Subir : Interpretation contexts </a>]</td><td valign="middle" align="right" colspan="2">[<a href="Changing-context-default-settings.es.html#Changing-context-default-settings" title="Sección siguiente en orden de lectura" accesskey="n" rel="next"> Changing context default settings > </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="Modifying-context-plug_002dins.html">English</a>, <a href="Modifying-context-plug_002dins.fr.html">français</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#index" title="Start of the manual">Manual de referencia de la notación</a></h4> <div class="contents"> <ul class="toc"> <li><a name="toc-Musical-notation-1" href="Musical-notation.es.html#Musical-notation">1. Musical notation</a> <ul class="toc"> <li><a name="toc-Pitches-1" href="Pitches.es.html#Pitches">1.1 Pitches</a> </li> <li><a name="toc-Rhythms-1" href="Rhythms.es.html#Rhythms">1.2 Rhythms</a> </li> <li><a name="toc-Expressive-marks-1" href="Expressive-marks.es.html#Expressive-marks">1.3 Expressive marks</a> </li> <li><a name="toc-Repeats-1" href="Repeats.es.html#Repeats">1.4 Repeats</a> </li> <li><a name="toc-Simultaneous-notes-1" href="Simultaneous-notes.es.html#Simultaneous-notes">1.5 Simultaneous notes</a> </li> <li><a name="toc-Staff-notation-1" href="Staff-notation.es.html#Staff-notation">1.6 Staff notation</a> </li> <li><a name="toc-Editorial-annotations-1" href="Editorial-annotations.es.html#Editorial-annotations">1.7 Editorial annotations</a> </li> <li><a name="toc-Text-1" href="Text.es.html#Text">1.8 Text</a> </li> </ul> </li> <li><a name="toc-Specialist-notation-1" href="Specialist-notation.es.html#Specialist-notation">2. Specialist notation</a> <ul class="toc"> <li><a name="toc-Vocal-music-1" href="Vocal-music.es.html#Vocal-music">2.1 Vocal music</a> </li> <li><a name="toc-Keyboard-and-other-multi_002dstaff-instruments-1" href="Keyboard-and-other-multi_002dstaff-instruments.es.html#Keyboard-and-other-multi_002dstaff-instruments">2.2 Keyboard and other multi-staff instruments</a> </li> <li><a name="toc-Unfretted-string-instruments-1" href="Unfretted-string-instruments.es.html#Unfretted-string-instruments">2.3 Unfretted string instruments</a> </li> <li><a name="toc-Fretted-string-instruments-1" href="Fretted-string-instruments.es.html#Fretted-string-instruments">2.4 Fretted string instruments</a> </li> <li><a name="toc-Percussion-1" href="Percussion.es.html#Percussion">2.5 Percussion</a> </li> <li><a name="toc-Wind-instruments-1" href="Wind-instruments.es.html#Wind-instruments">2.6 Wind instruments</a> </li> <li><a name="toc-Chord-notation-1" href="Chord-notation.es.html#Chord-notation">2.7 Chord notation</a> </li> <li><a name="toc-Ancient-notation-1" href="Ancient-notation.es.html#Ancient-notation">2.8 Ancient notation</a> </li> <li><a name="toc-World-music-1" href="World-music.es.html#World-music">2.9 World music</a> </li> </ul> </li> <li><a name="toc-General-input-and-output-1" href="General-input-and-output.es.html#General-input-and-output">3. General input and output</a> <ul class="toc"> <li><a name="toc-Input-structure-1" href="Input-structure.es.html#Input-structure">3.1 Input structure</a> </li> <li><a name="toc-Titles-and-headers-1" href="Titles-and-headers.es.html#Titles-and-headers">3.2 Titles and headers</a> </li> <li><a name="toc-Working-with-input-files-1" href="Working-with-input-files.es.html#Working-with-input-files">3.3 Working with input files</a> </li> <li><a name="toc-Controlling-output-1" href="Controlling-output.es.html#Controlling-output">3.4 Controlling output</a> </li> <li><a name="toc-MIDI-output-1" href="MIDI-output.es.html#MIDI-output">3.5 MIDI output</a> </li> </ul> </li> <li><a name="toc-Spacing-issues-1" href="Spacing-issues.es.html#Spacing-issues">4. Spacing issues</a> <ul class="toc"> <li><a name="toc-Paper-and-pages-1" href="Paper-and-pages.es.html#Paper-and-pages">4.1 Paper and pages</a> </li> <li><a name="toc-Music-layout-1" href="Music-layout.es.html#Music-layout">4.2 Music layout</a> </li> <li><a name="toc-Breaks-1" href="Breaks.es.html#Breaks">4.3 Breaks</a> </li> <li><a name="toc-Vertical-spacing-1" href="Vertical-spacing.es.html#Vertical-spacing">4.4 Vertical spacing</a> </li> <li><a name="toc-Horizontal-spacing-1" href="Horizontal-spacing.es.html#Horizontal-spacing">4.5 Horizontal spacing</a> </li> <li><a name="toc-Fitting-music-onto-fewer-pages-1" href="Fitting-music-onto-fewer-pages.es.html#Fitting-music-onto-fewer-pages">4.6 Fitting music onto fewer pages</a> </li> </ul> </li> <li class="toc_current"><a name="toc-Changing-defaults-1" href="Changing-defaults.es.html#Changing-defaults">5. Changing defaults</a> <ul class="toc"> <li class="toc_current"><a name="toc-Interpretation-contexts-1" href="Interpretation-contexts.es.html#Interpretation-contexts">5.1 Interpretation contexts</a> <ul class="toc"> <li><a name="toc-Contexts-explained-1" href="Contexts-explained.es.html#Contexts-explained">5.1.1 Contexts explained</a> </li> <li><a name="toc-Creating-contexts-1" href="Creating-contexts.es.html#Creating-contexts">5.1.2 Creating contexts</a> </li> <li class="toc_current"><a name="toc-Modifying-context-plug_002dins-1" href="Modifying-context-plug_002dins.es.html#Modifying-context-plug_002dins">5.1.3 Modifying context plug-ins</a> </li> <li><a name="toc-Changing-context-default-settings-1" href="Changing-context-default-settings.es.html#Changing-context-default-settings">5.1.4 Changing context default settings</a> </li> <li><a name="toc-Defining-new-contexts-1" href="Defining-new-contexts.es.html#Defining-new-contexts">5.1.5 Defining new contexts</a> </li> <li><a name="toc-Aligning-contexts-1" href="Aligning-contexts.es.html#Aligning-contexts">5.1.6 Aligning contexts</a> </li> </ul> </li> <li><a name="toc-Explaining-the-Internals-Reference-1" href="Explaining-the-Internals-Reference.es.html#Explaining-the-Internals-Reference">5.2 Explaining the Internals Reference</a> </li> <li><a name="toc-Modifying-properties-1" href="Modifying-properties.es.html#Modifying-properties">5.3 Modifying properties</a> </li> <li><a name="toc-Useful-concepts-and-properties-1" href="Useful-concepts-and-properties.es.html#Useful-concepts-and-properties">5.4 Useful concepts and properties</a> </li> <li><a name="toc-Advanced-tweaks-1" href="Advanced-tweaks.es.html#Advanced-tweaks">5.5 Advanced tweaks</a> </li> </ul> </li> <li><a name="toc-Interfaces-for-programmers-1" href="Interfaces-for-programmers.es.html#Interfaces-for-programmers">6. Interfaces for programmers</a> <ul class="toc"> <li><a name="toc-Music-functions-1" href="Music-functions.es.html#Music-functions">6.1 Music functions</a> </li> <li><a name="toc-Programmer-interfaces-1" href="Programmer-interfaces.es.html#Programmer-interfaces">6.2 Programmer interfaces</a> </li> <li><a name="toc-Building-complicated-functions-1" href="Building-complicated-functions.es.html#Building-complicated-functions">6.3 Building complicated functions</a> </li> <li><a name="toc-Markup-programmer-interface-1" href="Markup-programmer-interface.es.html#Markup-programmer-interface">6.4 Markup programmer interface</a> </li> <li><a name="toc-Contexts-for-programmers-1" href="Contexts-for-programmers.es.html#Contexts-for-programmers">6.5 Contexts for programmers</a> </li> <li><a name="toc-Scheme-procedures-as-properties-1" href="Scheme-procedures-as-properties.es.html#Scheme-procedures-as-properties">6.6 Scheme procedures as properties</a> </li> <li><a name="toc-Using-Scheme-code-instead-of-_005ctweak-1" href="Using-Scheme-code-instead-of-_005ctweak.es.html#Using-Scheme-code-instead-of-_005ctweak">6.7 Using Scheme code instead of <code>\tweak</code></a> </li> <li><a name="toc-Difficult-tweaks-1" href="Difficult-tweaks.es.html#Difficult-tweaks">6.8 Difficult tweaks</a> </li> </ul> </li> <li><a name="toc-Literature-list-1" href="Literature-list.es.html#Literature-list">A. Literature list</a> </li> <li><a name="toc-Notation-manual-tables-1" href="Notation-manual-tables.es.html#Notation-manual-tables">B. Notation manual tables</a> <ul class="toc"> <li><a name="toc-Chord-name-chart-1" href="Chord-name-chart.es.html#Chord-name-chart">B.1 Chord name chart</a> </li> <li><a name="toc-Common-chord-modifiers-1" href="Common-chord-modifiers.es.html#Common-chord-modifiers">B.2 Common chord modifiers</a> </li> <li><a name="toc-Predefined-fretboard-diagrams-1" href="Predefined-fretboard-diagrams.es.html#Predefined-fretboard-diagrams">B.3 Predefined fretboard diagrams</a> </li> <li><a name="toc-MIDI-instruments-1" href="MIDI-instruments.es.html#MIDI-instruments">B.4 MIDI instruments</a> </li> <li><a name="toc-List-of-colors-1" href="List-of-colors.es.html#List-of-colors">B.5 List of colors</a> </li> <li><a name="toc-The-Feta-font-1" href="The-Feta-font.es.html#The-Feta-font">B.6 The Feta font</a> </li> <li><a name="toc-Note-head-styles-1" href="Note-head-styles.es.html#Note-head-styles">B.7 Note head styles</a> </li> <li><a name="toc-Text-markup-commands-1" href="Text-markup-commands.es.html#Text-markup-commands">B.8 Text markup commands</a> </li> <li><a name="toc-Text-markup-list-commands-1" href="Text-markup-list-commands.es.html#Text-markup-list-commands">B.9 Text markup list commands</a> </li> <li><a name="toc-List-of-articulations-1" href="List-of-articulations.es.html#List-of-articulations">B.10 List of articulations</a> </li> <li><a name="toc-Percussion-notes-1" href="Percussion-notes.es.html#Percussion-notes">B.11 Percussion notes</a> </li> <li><a name="toc-All-context-properties-1" href="All-context-properties.es.html#All-context-properties">B.12 All context properties</a> </li> <li><a name="toc-Layout-properties-1" href="Layout-properties.es.html#Layout-properties">B.13 Layout properties</a> </li> <li><a name="toc-Identifiers-1" href="Identifiers.es.html#Identifiers">B.14 Identifiers</a> </li> <li><a name="toc-Scheme-functions-1" href="Scheme-functions.es.html#Scheme-functions">B.15 Scheme functions</a> </li> </ul> </li> <li><a name="toc-Cheat-sheet-1" href="Cheat-sheet.es.html#Cheat-sheet">C. Cheat sheet</a> </li> <li><a name="toc-GNU-Free-Documentation-License-1" href="GNU-Free-Documentation-License.es.html#GNU-Free-Documentation-License">D. GNU Free Documentation License</a> </li> <li><a name="toc-LilyPond-command-index-1" href="LilyPond-command-index.es.html#LilyPond-command-index">E. LilyPond command index</a> </li> <li><a name="toc-LilyPond-index-1" href="LilyPond-index.es.html#LilyPond-index">F. LilyPond index</a> </li> </ul> </div> </div> </body> </html>