]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/drawing-circles-around-various-objects.ly
LSR: Update.
[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.39"
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
26   c2 d^\markup {
27     \override #'(thickness . 3) {
28       \circle \finger 2
29     }
30   }
31   \override Score.BarNumber #'break-visibility = #all-visible
32   \override Score.BarNumber #'stencil =
33     #(make-stencil-circler 0.1 0.25 ly:text-interface::print)
34 }