]> git.donarmstrong.com Git - lilypond.git/blob - input/lsr/drawing-circles-around-various-objects.ly
80f481494cf575bee2b69df4e3b2499d7a6957f7
[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.57"
4 \header {
5   lsrtags = "tweaks-and-overrides"
6   texidoc = "
7 The @code{\circle} command allows you to draw circles around various objects,
8 for example fingering indications. However, some objects require
9 specific tweaks: rehearsal marks depend on the @code{Score.markFormatter}
10 context, bar numbers on the @code{Score.BarNumber} context, and so on.
11
12 You can tweak the printing of your circles by setting some properties
13 such as @code{#'thickness}, @code{#'circle-padding} or @code{#'font-size}.
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 { \circle \finger 2 }
25   \override Score.BarNumber #'break-visibility = #all-visible
26   \override Score.BarNumber  #'stencil =
27     #(make-stencil-circler 0.1 0.25 ly:text-interface::print)
28 }