X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Documentation%2Fsnippets%2Fnumbers-as-easy-note-heads.ly;h=34b7828ea7f6e0e1b04baaf2e3b7d58ffa19aa40;hb=cfe2e355b0630322f7d2f43934243af63844268f;hp=732b09e1271d3468ee35c30cc1b37b9cfd0faecf;hpb=ce7347a5daec12396c1b8c831834f1c2cc66ea43;p=lilypond.git diff --git a/Documentation/snippets/numbers-as-easy-note-heads.ly b/Documentation/snippets/numbers-as-easy-note-heads.ly index 732b09e127..34b7828ea7 100644 --- a/Documentation/snippets/numbers-as-easy-note-heads.ly +++ b/Documentation/snippets/numbers-as-easy-note-heads.ly @@ -1,11 +1,14 @@ -% 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.36 -\version "2.13.36" +%% Note: this file works from version 2.15.31 +\version "2.15.31" \header { -%% Translation of GIT committish: a874fda3641c9e02f61be5c41b215b8304b8ed00 +%% Translation of GIT committish: b482c3e5b56c3841a88d957e0ca12964bd3e64fa texidoces = " Las cabezas de nota de notación fácil utilizan la propiedad @@ -21,6 +24,29 @@ nota que ve. doctitlees = "Números como notas de notación fácil" +%% Translation of GIT committish: bbf8fd2b5a3ebf20a1fdc91613dc49045a53a270 + texidocit = " +Le teste di nota con nome della nota usano la proprietà @code{note-names} +dell'oggetto @code{NoteHead} per determinare cosa appaia +all'interno della testa. È possibile sovrascrivere questa proprietà +e mostrare numeri che corrispondano ai gradi della scala. + +Si può creare un semplice incisore che faccia questo per oggni +oggetto testa di nota che incontra. +" + doctitleit = "Numeri dentro le teste di nota" + +%% Translation of GIT committish: 3b125956b08d27ef39cd48bfa3a2f1e1bb2ae8b4 + 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 @@ -36,21 +62,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)