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