-% 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.10
-\version "2.13.18"
+%% DO NOT EDIT this file manually; it is automatically
+%% generated from LSR http://lsr.di.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.18.0"
\header {
- lsrtags = "tweaks-and-overrides"
+ lsrtags = "devel, scheme-language, 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
-@code{ly:grob-object} is used to access these grobs.
+Some grobs can be accessed “laterally” from within another grob’s
+callback. These are usually listed as “layout objects” in the “Internal
+properties” section of a grob-interface. The function ly:grob-object is
+used to access these grobs.
Demonstrated below are some ways of accessing grobs from within a
Example console output:
-@example
---------------------
-#-Grob Accidental -
-#-Grob Arpeggio -
-#-Grob Stem -
-@end example
+@code{ #Grob Accidental () #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))
(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' {
%% display grobs for each note head:
- %\override NoteHead #'before-line-breaking = #display-grobs
+ %\override NoteHead.before-line-breaking = #display-grobs
<c
%% or just for one:
- \tweak #'before-line-breaking #display-grobs
+ \tweak before-line-breaking #display-grobs
es
g>1\arpeggio
}