From eb714df300ee38e4307d30fb66af2ef1ebadbd81 Mon Sep 17 00:00:00 2001 From: James Lowe Date: Mon, 28 Jun 2010 19:09:12 +0100 Subject: [PATCH] Doc: 989 - dot-count-override.ly to NR amended dot-count-override.ly in ../snippets/new/.. Added to NR 1.2.1. Writing Rhythms as @snippet --- Documentation/notation/rhythms.itely | 5 +++++ Documentation/snippets/dot-count-override.ly | 22 +++++++++++++++++++ .../snippets/new/dot-count-override.ly | 17 ++++++++++++++ 3 files changed, 44 insertions(+) create mode 100644 Documentation/snippets/dot-count-override.ly create mode 100644 Documentation/snippets/new/dot-count-override.ly diff --git a/Documentation/notation/rhythms.itely b/Documentation/notation/rhythms.itely index beddde0261..4a2f0ef030 100644 --- a/Documentation/notation/rhythms.itely +++ b/Documentation/notation/rhythms.itely @@ -112,6 +112,11 @@ Some durations cannot be represented with just binary durations and dots; they can be represented only by tying two or more notes together. For details, see @ref{Ties}. +@snippets + +@lilypondfile[verbatim,lilyquote,ragged-right,texidoc,doctitle] +{dot-count-override.ly} + For ways of specifying durations for the syllables of lyrics and ways of aligning lyrics to notes, see @ref{Vocal music}. diff --git a/Documentation/snippets/dot-count-override.ly b/Documentation/snippets/dot-count-override.ly new file mode 100644 index 0000000000..7d4e7dd538 --- /dev/null +++ b/Documentation/snippets/dot-count-override.ly @@ -0,0 +1,22 @@ +% Do not edit this file; it is automatically +% generated from Documentation/snippets/new +% This file is in the public domain. +%% Note: this file works from version 2.13.26 +\version "2.13.26" +\header { + lsrtags = "rhythms,expressive-marks" + texidoc = "This code demonstrates how to change the number of +augmentation dots on a single note." + doctitle = "Changing the number of augmentation dots per note" +} % begin verbatim + + +\relative c' { + c4.. a16 r2 | + \override Dots #'dot-count = #4 + c4.. a16 r2 | + \override Dots #'dot-count = #0 + c4.. a16 r2 | + \revert Dots #'dot-count + c4.. a16 r2 | +} diff --git a/Documentation/snippets/new/dot-count-override.ly b/Documentation/snippets/new/dot-count-override.ly new file mode 100644 index 0000000000..8e183fd986 --- /dev/null +++ b/Documentation/snippets/new/dot-count-override.ly @@ -0,0 +1,17 @@ +\version "2.13.26" +\header { + lsrtags = "rhythms,expressive-marks" + texidoc = "This code demonstrates how to change the number of +augmentation dots on a single note." + doctitle = "Changing the number of augmentation dots per note" +} + +\relative c' { + c4.. a16 r2 | + \override Dots #'dot-count = #4 + c4.. a16 r2 | + \override Dots #'dot-count = #0 + c4.. a16 r2 | + \revert Dots #'dot-count + c4.. a16 r2 | +} -- 2.39.2