From 7b865df6ad293fa86561a506a17c9516d0d05c6b Mon Sep 17 00:00:00 2001 From: Graham Percival Date: Thu, 6 Dec 2007 02:27:12 -0800 Subject: [PATCH] New LSR examples, and formatting Pitches. --- Documentation/user/pitches.itely | 70 +------------------ .../pitches/non-traditional-key-signatures.ly | 26 +++++++ .../staff/non-traditional-key-signatures.ly | 26 +++++++ 3 files changed, 55 insertions(+), 67 deletions(-) create mode 100644 input/lsr/pitches/non-traditional-key-signatures.ly create mode 100644 input/lsr/staff/non-traditional-key-signatures.ly diff --git a/Documentation/user/pitches.itely b/Documentation/user/pitches.itely index 919c7501d4..687463a2e7 100644 --- a/Documentation/user/pitches.itely +++ b/Documentation/user/pitches.itely @@ -316,19 +316,6 @@ Micro tones are also exported to the MIDI file. Snippets: @lsrdir{pitches}, @lsr{pitches,preventing-extra-naturals-from-being-automatically-added.ly}. -LSR toremove: -@quotation -In accordance with standard typesetting rules, a natural sign is -printed before a sharp or flat if a previous accidental needs to -be canceled. To change this behavior, use - -@lilypond[verbatim,quote,ragged-right,fragment,relative=2] -ceses4 ces cis c -\set Staff.extraNatural = ##f -ceses4 ces cis c -@end lilypond -@end quotation - @seealso Music Glossary: @rglos{sharp}, @rglos{flat}, @rglos{double sharp}, @@ -922,60 +909,9 @@ fis @commonprop -Snippets: @lsrdir{pitches}, -@lsr{pitches,preventing-natural-signs-from-being-printed-when-the-key-signature-changes.ly}. - -FIXME link to snippet 248, -FIXME link to a snippet about scordatura. - -LSR toremove: -@quotation -A natural sign is printed to cancel any previous accidentals. -This may be altered: - -@lilypond[verbatim,quote,ragged-right,fragment,relative=2] -\key d \major -a b cis d -\key g \minor -a bes c d -\set Staff.printKeyCancellation = ##f -\key d \major -a b cis d -\key g \minor -a bes c d -@end lilypond - -LSR toadd, then remove from here. - -The @code{\key} command sets the context property -@code{Staff.keySignature}. Non-standard key signatures can be -specified by setting this property directly. The format of this -command is a list: - -@example -\set Staff.keySignature = - #'((@var{octave} . @var{step}) . @var{alter}) -@end example - -@noindent -where, for each element in the list, @var{octave} specifies the -octave (0 being the octave from middle C to the B above), -@var{step} specifies the note within the octave (0 means C and 6 -means B), and @var{alter} is @code{,SHARP} @code{,FLAT} -@code{,DOUBLE-SHARP} etc. (Note the leading comma.) Here is an -example of a possible key signature for generating a whole-tone -scale: - -@lilypond[verbatim,quote,ragged-right] -\relative c' { - \new Staff { - \set Staff.keySignature = - #`(((0 . 3) . ,SHARP) ((0 . 5) . ,FLAT) ((0 . 6) . ,FLAT)) - c d e fis aes bes c - } -} -@end lilypond -@end quotation +Snippets: @lsrdir{pitches}, @lsr{pitches, +preventing-natural-signs-from-being-printed-when-the-key-signature-changes.ly}, +@lsr{pitches, non-traditional-key-signatures.ly} @seealso diff --git a/input/lsr/pitches/non-traditional-key-signatures.ly b/input/lsr/pitches/non-traditional-key-signatures.ly new file mode 100644 index 0000000000..5dec129cee --- /dev/null +++ b/input/lsr/pitches/non-traditional-key-signatures.ly @@ -0,0 +1,26 @@ +%% Do not edit this file; it is auto-generated from LSR! +\version "2.10.12" + +\header { texidoc = " +The commonly used @code{\\key} command sets the context property +Staff.keySignature. However, non-standard key signatures can be +specified by setting this property directly. The format of this command +is a list: @code{ \\set Staff.keySignature = + #'((octave . step) . alter) } where, for each element in the list, +octave specifies the octave (0 being the octave from middle C to the B +above), step specifies the note within the octave (0 means C and 6 +means B), and alter is ,SHARP ,FLAT ,DOUBLE-SHARP etc. (Note the +leading comma.) Here is an example of a possible key signature for +generating a whole-tone scale: + + +" } + +\relative c' { + \new Staff { + \set Staff.keySignature = + #`(((0 . 3) . ,SHARP) ((0 . 5) . ,FLAT) ((0 . 6) . ,FLAT)) + c d e fis aes bes c2 + } + } + diff --git a/input/lsr/staff/non-traditional-key-signatures.ly b/input/lsr/staff/non-traditional-key-signatures.ly new file mode 100644 index 0000000000..5dec129cee --- /dev/null +++ b/input/lsr/staff/non-traditional-key-signatures.ly @@ -0,0 +1,26 @@ +%% Do not edit this file; it is auto-generated from LSR! +\version "2.10.12" + +\header { texidoc = " +The commonly used @code{\\key} command sets the context property +Staff.keySignature. However, non-standard key signatures can be +specified by setting this property directly. The format of this command +is a list: @code{ \\set Staff.keySignature = + #'((octave . step) . alter) } where, for each element in the list, +octave specifies the octave (0 being the octave from middle C to the B +above), step specifies the note within the octave (0 means C and 6 +means B), and alter is ,SHARP ,FLAT ,DOUBLE-SHARP etc. (Note the +leading comma.) Here is an example of a possible key signature for +generating a whole-tone scale: + + +" } + +\relative c' { + \new Staff { + \set Staff.keySignature = + #`(((0 . 3) . ,SHARP) ((0 . 5) . ,FLAT) ((0 . 6) . ,FLAT)) + c d e fis aes bes c2 + } + } + -- 2.39.5