]> git.donarmstrong.com Git - lilypond.git/blob - input/new/drawing-circles-around-various-objects.ly
Merge branch 'lilypond/translation' of ssh://trettig@git.sv.gnu.org/srv/git/lilypond...
[lilypond.git] / input / new / drawing-circles-around-various-objects.ly
1 \version "2.11.23"
2 \layout { ragged-right= ##t }
3 \header {
4   lsrtags = "tweaks-and-overrides"
5   texidoc = "
6 The @code{\circle} command allows you to draw circles around various objects,
7 for example fingering indications. However, some objects require
8 specific tweaks: rehearsal marks depend on the @code{Score.markFormatter}
9 context, bar numbers on the @code{Score.BarNumber} context, and so on.
10
11 You can tweak the printing of your circles by setting some properties
12 such as @code{#'thickness}, @code{#'circle-padding} or @code{#'font-size}.
13 "
14   doctitle = "Drawing circles around various objects"
15 }
16
17 \relative c'{
18 c1
19 \set Score.markFormatter
20   = #(lambda (mark context)
21              (make-circle-markup (format-mark-numbers mark context)))
22 \mark \default
23 c2 d^\markup{\circle \finger "2"}
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 }