From: Phil Holmes Date: Mon, 28 Mar 2016 15:00:58 +0000 (+0100) Subject: Add time signature snippet X-Git-Tag: release/2.19.40-1~11^2~8 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;ds=sidebyside;h=f91c9533a7217e9d19eccc3c192ea9222efdbfc4;p=lilypond.git Add time signature snippet --- 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'' + } +>>