X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Documentation%2Fsnippets%2Fnumbers-as-easy-note-heads.ly;h=70faa4ae4bfeb719edab3521b4d2304086126576;hb=c4a449415e6a279a8e6cb5cbd2803eb036f40c10;hp=b83455a251fc4f67ed7cc88b16cb2a3155beca94;hpb=d2119a9e5e951c6ae850322f41444ac98d1ed492;p=lilypond.git diff --git a/Documentation/snippets/numbers-as-easy-note-heads.ly b/Documentation/snippets/numbers-as-easy-note-heads.ly index b83455a251..70faa4ae4b 100644 --- a/Documentation/snippets/numbers-as-easy-note-heads.ly +++ b/Documentation/snippets/numbers-as-easy-note-heads.ly @@ -1,26 +1,13 @@ -% 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.18" +%% Note: this file works from version 2.16.0 +\version "2.16.0" \header { -%% Translation of GIT committish: ee2fdacf2ff3acd7e6fb7c4005dfe698b1cc4eed - texidoc = " - -Las cabezas de nota de notación fácil utilizan la propiedad -@code{note-names} del objeto @code{NoteHead} para determinad 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. - -" - - doctitle = "Números como notas de notación fácil" - lsrtags = "pitches" texidoc = " Easy notation note heads use the @code{note-names} property @@ -36,21 +23,19 @@ object it sees. #(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)