-% 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.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 {
-%% Translation of GIT committish: 6977ddc9a3b63ea810eaecb864269c7d847ccf98
- 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"
-
-%% Translation of GIT committish: d9d1da30361a0bcaea1ae058eb1bc8dd3a5b2e4c
- texidocfr = "
-En mode @qq{easy play}, les têtes de note utilisent la propriété
-@code{note-names} attachée à l'objet @code{NoteHead} pour déterminer ce
-qui apparaîtra dans la tête. Intervenir sur cette propriété permet
-d'imprimer un chiffre correspondant au degré dans la gamme.
-
-La création d'un graveur dédié permet de traiter toutes les notes.
-"
- doctitlefr = "Easy play -- chiffre en lieu et place des lettres"
-
lsrtags = "pitches"
+
texidoc = "
-Easy notation note heads use the @code{note-names} property
-of the @code{NoteHead} object to determine what appears inside
-the note head. By overriding this property, it is possible
-to print numbers representing the scale-degree.
+Easy notation note heads use the @code{note-names} property of the
+@code{NoteHead} object to determine what appears inside the note head.
+By overriding this property, it is possible to print numbers
+representing the scale-degree.
+
+A simple engraver can be created to do this for every note head object
+it sees.
-A simple engraver can be created to do this for every note head
-object it sees.
"
doctitle = "Numbers as easy note heads"
} % begin verbatim
-
#(define Ez_numbers_engraver
- (list
- (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))))))))
+ (make-engraver
+ (acknowledgers
+ ((note-head-interface 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)