]> git.donarmstrong.com Git - lilypond.git/blobdiff - Documentation/snippets/drawing-circles-around-various-objects.ly
Imported Upstream version 2.14.2
[lilypond.git] / Documentation / snippets / drawing-circles-around-various-objects.ly
diff --git a/Documentation/snippets/drawing-circles-around-various-objects.ly b/Documentation/snippets/drawing-circles-around-various-objects.ly
new file mode 100644 (file)
index 0000000..773804c
--- /dev/null
@@ -0,0 +1,37 @@
+%% DO NOT EDIT this file manually; it is automatically
+%% generated from LSR http://lsr.dsi.unimi.it
+%% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
+%% and then run scripts/auxiliar/makelsr.py
+%%
+%% This file is in the public domain.
+\version "2.14.0"
+
+\header {
+  lsrtags = "editorial-annotations, tweaks-and-overrides"
+
+  texidoc = "
+The @code{\\circle} markup command draws circles around various
+objects, for example fingering indications.  For other objects,
+specific tweaks may be required: this example demonstrates two
+strategies for rehearsal marks and measure numbers.
+
+"
+  doctitle = "Drawing circles around various objects"
+} % begin verbatim
+
+\relative c' {
+  c1
+  \set Score.markFormatter =
+    #(lambda (mark context)
+             (make-circle-markup (format-mark-numbers mark context)))
+  \mark \default
+
+  c2 d^\markup {
+    \override #'(thickness . 3) {
+      \circle \finger 2
+    }
+  }
+  \override Score.BarNumber #'break-visibility = #all-visible
+  \override Score.BarNumber #'stencil =
+    #(make-stencil-circler 0.1 0.25 ly:text-interface::print)
+}