1 %% DO NOT EDIT this file manually; it is automatically
2 %% generated from LSR http://lsr.dsi.unimi.it
3 %% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
4 %% and then run scripts/auxiliar/makelsr.py
6 %% This file is in the public domain.
10 lsrtags = "expressive-marks, staff-notation, editorial-annotations, tweaks-and-overrides"
13 By default you cannot make double-digit fingering notation (i.e.
14 numbers larger than 9). This is a hard coded limitation.
16 This snippet shows two methods of creating fingerings larger than 9.
19 doctitle = "Creating double-digit fingerings"
23 #(make-music 'FingeringEvent
27 #(make-music 'FingeringEvent
31 #(define-music-function (parser location digit) (integer?)
32 (make-music 'FingeringEvent
35 #(define (calc-finger-without-warning grob)
36 (let* ((event (event-cause grob))
37 (digit (ly:event-property event 'digit)))
38 (number->string digit 10)))
41 % optional override to remove warnings for fingerings larger than 5
42 \override Fingering #'text = #calc-finger-without-warning