]> git.donarmstrong.com Git - lilypond.git/blob - input/new/drawing-circles-around-various-objects.ly
Merge master into nested-bookparts
[lilypond.git] / input / new / drawing-circles-around-various-objects.ly
1 \version "2.11.61"
2 \header {
3   lsrtags = "tweaks-and-overrides"
4   texidoc = "
5 The @code{\circle} markup command draws circles around various objects,
6 for example fingering indications. For other objects, specific tweaks
7 may be required: this example demonstrates two strategies for rehearsal
8 marks and measure numbers.
9 "
10   doctitle = "Drawing circles around various objects"
11 }
12
13 \relative c' {
14   c1
15   \set Score.markFormatter =
16     #(lambda (mark context)
17              (make-circle-markup (format-mark-numbers mark context)))
18   \mark \default
19   c2 d^\markup {
20     \override #'(thickness . 3) {
21       \circle \finger 2
22     }
23   }
24   \override Score.BarNumber #'break-visibility = #all-visible
25   \override Score.BarNumber #'stencil =
26     #(make-stencil-circler 0.1 0.25 ly:text-interface::print)
27 }