]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/drawing-circles-around-various-objects.ly
Merge branch 'lilypond/translation' of ssh://git.sv.gnu.org/srv/git/lilypond into...
[lilypond.git] / Documentation / snippets / drawing-circles-around-various-objects.ly
1 %% Do not edit this file; it is automatically
2 %% generated from LSR http://lsr.dsi.unimi.it
3 %% This file is in the public domain.
4 \version "2.13.31"
5
6 \header {
7   lsrtags = "editorial-annotations, tweaks-and-overrides"
8
9   texidoc = "
10 The @code{\\circle} markup command draws circles around various
11 objects, for example fingering indications.  For other objects,
12 specific tweaks may be required: this example demonstrates two
13 strategies for rehearsal marks and measure numbers.
14
15 "
16   doctitle = "Drawing circles around various objects"
17 } % begin verbatim
18
19 \relative c' {
20   c1
21   \set Score.markFormatter =
22     #(lambda (mark context)
23              (make-circle-markup (format-mark-numbers mark context)))
24   \mark \default
25   c2 d^\markup {
26     \override #'(thickness . 3) {
27       \circle \finger 2
28     }
29   }
30   \override Score.BarNumber #'break-visibility = #all-visible
31   \override Score.BarNumber #'stencil =
32     #(make-stencil-circler 0.1 0.25 ly:text-interface::print)
33 }