]> git.donarmstrong.com Git - lilypond.git/blobdiff - Documentation/snippets/using-ly-grob-object-to-access-grobs-with--tweak.ly
Change stringTunings from list of semitones to list of pitches
[lilypond.git] / Documentation / snippets / using-ly-grob-object-to-access-grobs-with--tweak.ly
index 5e38377ccfaa3773894baf2080609d9872d650da..bd20f30da6883be78bad943f0f968ef45f45dbb7 100644 (file)
@@ -1,15 +1,56 @@
-%% Do not edit this file; it is automatically
-%% generated from LSR http://lsr.dsi.unimi.it
-%% This file is in the public domain.
-\version "2.13.10"
+% Do not edit this file; it is automatically
+% generated from Documentation/snippets/new
+% This file is in the public domain.
+%% Note: this file works from version 2.13.36
+\version "2.13.46"
 
 \header {
+%% Translation of GIT committish: a874fda3641c9e02f61be5c41b215b8304b8ed00
+
+  texidoces = "
+
+Se puede acceder @qq{lateralmente} a algunos grobs desde dentro de la
+función de callback de otro grob.  Éstos se encuentran relacionados
+normalmente como @qq{layout objects} (objetos de presentación) en la
+sección @qq{Internal properties} (propiedades internas) de un
+interface de grob.  Se usa la función @code{ly:grob-object} para
+acceder a estos grobs.
+
+
+Se presentan más abajo como ejemplo algunas formas de addecer a grobs
+desde dentro de una función de callback de NoteHead, pero la técnica
+no se limita a las cabezas de nota.  Sin embargo, la función de
+callback de NoteHead es especialmente importante, porque es la función
+de callback implícita que utiliza la instrucción @code{\\tweak}.
+
+
+La función de ejemplo que se define abajo (\"display-grobs\") no es
+probablemente tan útil, pero muestra que se está accediendo
+efectivamente a los grobs.
+
+
+Salida de ejemplo de la consola:
+
+
+@example
+--------------------
+#-Grob Accidental -
+#-Grob Arpeggio -
+#-Grob Stem -
+@end example
+
+
+"
+
+  doctitlees = "Utilizar ly:grob-object para acceder a los grobs con \\tweak"
+
+
   lsrtags = "tweaks-and-overrides"
 
   texidoc = "
 Some grobs can be accessed @qq{laterally} from within another grob's
-callback. These are usually listed as @qq{layout objects} in the
-@qq{Internal properties} section of a grob-interface. The function
+callback.  These are usually listed as @qq{layout objects} in the
+@qq{Internal properties} section of a grob-interface.  The function
 @code{ly:grob-object} is used to access these grobs.
 
 
@@ -27,14 +68,19 @@ accessed.
 Example console output:
 
 
--------------------- #-Grob Accidental - #-Grob Arpeggio - #-Grob Stem -
-
+@example
+--------------------
+#-Grob Accidental -
+#-Grob Arpeggio -
+#-Grob Stem -
+@end example
 
 
 "
   doctitle = "Using ly:grob-object to access grobs with \\tweak"
 } % begin verbatim
 
+
 #(define (notehead-get-accidental notehead)
    ;; notehead is grob
    (ly:grob-object notehead 'accidental-grob))
@@ -72,4 +118,3 @@ Example console output:
   es
   g>1\arpeggio
 }
-