]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/drawing-circles-around-various-objects.ly
Local updates from LSR
[lilypond.git] / Documentation / snippets / drawing-circles-around-various-objects.ly
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
5 %%
6 %% This file is in the public domain.
7 \version "2.14.2"
8
9 \header {
10 %% Translation of GIT committish: 30339cb3706f6399c84607426988b25f79b4998c
11   texidocfr = "
12 La commande de @emph{markup} @code{\\circle} permet de dessiner un
13 cercle autour de différents objets comme des indications de doigté.
14 D'autres objets nécessitent de faire appel à des techniques spécifiques.
15 Cet exemple illustre deux manières de procéder, pour les repères, et
16 pour les numéros de mesure.
17
18 "
19   doctitlefr = "Encercler divers objets"
20
21   lsrtags = "editorial-annotations, tweaks-and-overrides, scheme-language"
22
23   texidoc = "
24 The @code{\\circle} markup command draws circles around various
25 objects, for example fingering indications.  For other objects,
26 specific tweaks may be required: this example demonstrates two
27 strategies for rehearsal marks and measure numbers.
28
29 "
30   doctitle = "Drawing circles around various objects"
31 } % begin verbatim
32
33 \relative c' {
34   c1
35   \set Score.markFormatter =
36     #(lambda (mark context)
37              (make-circle-markup (format-mark-numbers mark context)))
38   \mark \default
39
40   c2 d^\markup {
41     \override #'(thickness . 3) {
42       \circle \finger 2
43     }
44   }
45   \override Score.BarNumber #'break-visibility = #all-visible
46   \override Score.BarNumber #'stencil =
47     #(make-stencil-circler 0.1 0.25 ly:text-interface::print)
48 }