X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Documentation%2Fsnippets%2Fusing-ly-grob-object-to-access-grobs-with--tweak.ly;h=670bc7dda858fea01c66eacbb26d64b833af880f;hb=b83bb147ef00d2d3df5b9bb82abb1951ee279396;hp=912e36704448c21d6d99f74982e38648713bebd5;hpb=54b02666750062788185bd3f99e644d621e348c2;p=lilypond.git diff --git a/Documentation/snippets/using-ly-grob-object-to-access-grobs-with--tweak.ly b/Documentation/snippets/using-ly-grob-object-to-access-grobs-with--tweak.ly index 912e367044..670bc7dda8 100644 --- a/Documentation/snippets/using-ly-grob-object-to-access-grobs-with--tweak.ly +++ b/Documentation/snippets/using-ly-grob-object-to-access-grobs-with--tweak.ly @@ -1,14 +1,15 @@ -% DO NOT EDIT this file manually; it is automatically -% generated from Documentation/snippets/new -% Make any changes in Documentation/snippets/new/ -% and then run scripts/auxiliar/makelsr.py -% -% This file is in the public domain. -%% Note: this file works from version 2.14.0 -\version "2.14.0" +%% DO NOT EDIT this file manually; it is automatically +%% generated from LSR http://lsr.dsi.unimi.it +%% Make any changes in LSR itself, or in Documentation/snippets/new/ , +%% and then run scripts/auxiliar/makelsr.py +%% +%% This file is in the public domain. +\version "2.14.2" \header { -%% Translation of GIT committish: 70f5f30161f7b804a681cd080274bfcdc9f4fe8c + lsrtags = "devel, tweaks-and-overrides, scheme-language" + +%% Translation of GIT committish: b482c3e5b56c3841a88d957e0ca12964bd3e64fa texidoces = " @@ -48,12 +49,10 @@ Salida de ejemplo de la consola: 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. @@ -71,19 +70,14 @@ accessed. Example console output: -@example --------------------- -#-Grob Accidental - -#-Grob Arpeggio - -#-Grob Stem - -@end example +-------------------- #-Grob Accidental - #-Grob Arpeggio - #-Grob Stem - + " 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)) @@ -107,9 +101,9 @@ Example console output: (let ((accidental (notehead-get-accidental notehead)) (arpeggio (notehead-get-arpeggio notehead)) (stem (notehead-get-stem notehead))) - (format #t "~2&~a\n" (make-string 20 #\-)) + (format (current-error-port) "~2&~a\n" (make-string 20 #\-)) (for-each - (lambda (x) (format #t "~a\n" x)) + (lambda (x) (format (current-error-port) "~a\n" x)) (list accidental arpeggio stem)))) \relative c' {