]> git.donarmstrong.com Git - lilypond.git/blob - input/lsr/drawing-circles-around-various-objects.ly
Merge branch 'lilypond/translation' of ssh://trettig@git.sv.gnu.org/srv/git/lilypond...
[lilypond.git] / input / lsr / drawing-circles-around-various-objects.ly
1 %% Do not edit this file; it is auto-generated from input/new
2 %% This file is in the public domain.
3 \version "2.11.38"
4 \layout { ragged-right= ##t }
5 \header {
6   lsrtags = "tweaks-and-overrides"
7   texidoc = "
8 The @code{\circle} command allows you to draw circles around various objects,
9 for example fingering indications. However, some objects require
10 specific tweaks: rehearsal marks depend on the @code{Score.markFormatter}
11 context, bar numbers on the @code{Score.BarNumber} context, and so on.
12
13 You can tweak the printing of your circles by setting some properties
14 such as @code{#'thickness}, @code{#'circle-padding} or @code{#'font-size}.
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 c2 d^\markup{\circle \finger "2"}
26 \override Score.BarNumber #'break-visibility = #all-visible
27 \override Score.BarNumber  #'stencil
28   = #(make-stencil-circler 0.1 0.25 ly:text-interface::print)
29 }