]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/drawing-circles-around-various-objects.ly
Run scripts/auxiliar/update-with-convert-ly.sh
[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.16.0"
8
9 \header {
10   lsrtags = "editorial-annotations, scheme-language, tweaks-and-overrides"
11
12   texidoc = "
13 The @code{\\circle} markup command draws circles around various
14 objects, for example fingering indications.  For other objects,
15 specific tweaks may be required: this example demonstrates two
16 strategies for rehearsal marks and measure numbers.
17
18 "
19   doctitle = "Drawing circles around various objects"
20 } % begin verbatim
21
22 \relative c' {
23   c1
24   \set Score.markFormatter =
25     #(lambda (mark context)
26              (make-circle-markup (format-mark-numbers mark context)))
27   \mark \default
28
29   c2 d^\markup {
30     \override #'(thickness . 3) {
31       \circle \finger 2
32     }
33   }
34   \override Score.BarNumber #'break-visibility = #all-visible
35   \override Score.BarNumber #'stencil =
36     #(make-stencil-circler 0.1 0.25 ly:text-interface::print)
37 }