]> git.donarmstrong.com Git - lilypond.git/blobdiff - Documentation/snippets/numbers-as-easy-note-heads.ly
Docs: run convert-ly for 2.14.0.
[lilypond.git] / Documentation / snippets / numbers-as-easy-note-heads.ly
index 9ccb26181af1a843ee67dcf6262607c05503def8..e1f85f9f029e6b4dbe5ab797d4ed79a57f1bc2e8 100644 (file)
@@ -1,10 +1,29 @@
-% Do not edit this file; it is automatically
+% 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.13.11
-\version "2.13.11"
+%% Note: this file works from version 2.13.36
+\version "2.14.0"
 
 \header {
+%% Translation of GIT committish: 59caa3adce63114ca7972d18f95d4aadc528ec3d
+  texidoces = "
+
+Las cabezas de nota de notación fácil utilizan la propiedad
+@code{note-names} del objeto @code{NoteHead} para determinar lo que
+aparece dentro de la cabeza.  Mediante la sobreescritura de esta
+propiedad, es posible imprimir números que representen el grado de la
+escala.
+
+Se puede crear un grabador simple que haga esto para la cabeza de cada
+nota que ve.
+
+"
+
+  doctitlees = "Números como notas de notación fácil"
+
   lsrtags = "pitches"
   texidoc = "
 Easy notation note heads use the @code{note-names} property
@@ -19,22 +38,27 @@ object it sees.
 } % begin verbatim
 
 
-#(define Ez_numbers_engraver (list
-  (cons 'acknowledgers
+#(define Ez_numbers_engraver
    (list
-     (cons 'note-head-interface
-       (lambda (engraver grob source-engraver)
-         (let* (
-           (context (ly:translator-context engraver))
-           (tonic-pitch (ly:context-property context 'tonic))
-           (tonic-name (ly:pitch-notename tonic-pitch))
-           (grob-pitch (ly:event-property (event-cause grob) 'pitch))
-           (grob-name (ly:pitch-notename grob-pitch))
-           (delta (modulo (- grob-name tonic-name) 7))
-           (note-names (make-vector 7 (number->string (+ 1 delta)))))
-        (ly:grob-set-property! grob 'note-names note-names))))))))
+    (cons 'acknowledgers
+          (list
+           (cons 'note-head-interface
+                 (lambda (engraver grob source-engraver)
+                   (let* ((context (ly:translator-context engraver))
+                          (tonic-pitch (ly:context-property context 'tonic))
+                          (tonic-name (ly:pitch-notename tonic-pitch))
+                          (grob-pitch
+                           (ly:event-property (event-cause grob) 'pitch))
+                          (grob-name (ly:pitch-notename grob-pitch))
+                          (delta (modulo (- grob-name tonic-name) 7))
+                          (note-names
+                           (make-vector 7 (number->string (1+ delta)))))
+                     (ly:grob-set-property! grob 'note-names note-names))))))))
+
+#(set-global-staff-size 26)
 
 \layout {
+  ragged-right = ##t
   \context {
     \Voice
     \consists \Ez_numbers_engraver