From f91c9533a7217e9d19eccc3c192ea9222efdbfc4 Mon Sep 17 00:00:00 2001 From: Phil Holmes Date: Mon, 28 Mar 2016 16:00:58 +0100 Subject: [PATCH] Add time signature snippet --- .../new/user-defined-time-signatures.ly | 27 ++++++++++++++ Documentation/snippets/rhythms.snippet-list | 1 + Documentation/snippets/subdividing-beams.ly | 2 +- .../snippets/user-defined-time-signatures.ly | 35 +++++++++++++++++++ 4 files changed, 64 insertions(+), 1 deletion(-) create mode 100644 Documentation/snippets/new/user-defined-time-signatures.ly create mode 100644 Documentation/snippets/user-defined-time-signatures.ly diff --git a/Documentation/snippets/new/user-defined-time-signatures.ly b/Documentation/snippets/new/user-defined-time-signatures.ly new file mode 100644 index 0000000000..0494666880 --- /dev/null +++ b/Documentation/snippets/new/user-defined-time-signatures.ly @@ -0,0 +1,27 @@ +\version "2.19.16" + +\header { + lsrtags = "rhythms" + + texidoc = " +New time signature styles can be defined. The time signature in +the second measure should be upside down in both staves. +" + + doctitle = "User defined time signatures" +} + +#(add-simple-time-signature-style 'topsy-turvy + (lambda (fraction) + (make-rotate-markup 180 (make-compound-meter-markup fraction)))) + +<< + \new Staff { + \time 3/4 f'2. + \override Score.TimeSignature.style = #'topsy-turvy + \time 3/4 R2. \bar "|." + } + \new Staff { + R2. e'' + } +>> diff --git a/Documentation/snippets/rhythms.snippet-list b/Documentation/snippets/rhythms.snippet-list index f041143575..382302b03f 100644 --- a/Documentation/snippets/rhythms.snippet-list +++ b/Documentation/snippets/rhythms.snippet-list @@ -64,6 +64,7 @@ time-signature-in-parentheses---method-3.ly time-signature-in-parentheses.ly time-signature-printing-only-the-numerator-as-a-number-instead-of-the-fraction.ly tweaking-grace-layout-within-music.ly +user-defined-time-signatures.ly using-alternative-flag-styles.ly using-grace-note-slashes-with-normal-heads.ly using-ties-with-arpeggios.ly diff --git a/Documentation/snippets/subdividing-beams.ly b/Documentation/snippets/subdividing-beams.ly index ff33889da5..05f6b9bc9b 100644 --- a/Documentation/snippets/subdividing-beams.ly +++ b/Documentation/snippets/subdividing-beams.ly @@ -4,7 +4,7 @@ % and then run scripts/auxiliar/makelsr.py % % This file is in the public domain. -%% Note: this file works from version 2.19.34 +%% Note: this file works from version 2.19.40 \version "2.19.40" \header { diff --git a/Documentation/snippets/user-defined-time-signatures.ly b/Documentation/snippets/user-defined-time-signatures.ly new file mode 100644 index 0000000000..3bf7b76123 --- /dev/null +++ b/Documentation/snippets/user-defined-time-signatures.ly @@ -0,0 +1,35 @@ +% DO NOT EDIT this file manually; it is automatically +% generated from Documentation/snippets/new +% Make any changes in Documentation/snippets/new/ +% and then run scripts/auxiliar/makelsr.py +% +% This file is in the public domain. +%% Note: this file works from version 2.19.16 +\version "2.19.16" + +\header { + lsrtags = "rhythms" + + texidoc = " +New time signature styles can be defined. The time signature in +the second measure should be upside down in both staves. +" + + doctitle = "User defined time signatures" +} % begin verbatim + + +#(add-simple-time-signature-style 'topsy-turvy + (lambda (fraction) + (make-rotate-markup 180 (make-compound-meter-markup fraction)))) + +<< + \new Staff { + \time 3/4 f'2. + \override Score.TimeSignature.style = #'topsy-turvy + \time 3/4 R2. \bar "|." + } + \new Staff { + R2. e'' + } +>> -- 2.39.5