1 % DO NOT EDIT this file manually; it is automatically
2 % generated from Documentation/snippets/new
3 % Make any changes in Documentation/snippets/new/
4 % and then run scripts/auxiliar/makelsr.py
6 % This file is in the public domain.
7 %% Note: this file works from version 2.17.18
11 lsrtags = "pitches, staff-notation, tweaks-and-overrides"
14 Changing the Clef glyph, its position, or the ottavation does not
15 change the position of subsequent notes on the staff. To get key
16 signatures on their correct staff lines @code{middleCClefPosition}
17 must also be specified, with positive or negative values moving
18 @emph{middle C} up or down respectively, relative to the staff's
21 For example, @code{\\clef \"treble_8\"} is equivalent to setting
22 the @code{clefGlyph}, @code{clefPosition} (the vertical position
23 of the clef itself on the staff), @code{middleCPosition} and
24 @code{clefTransposition}. Note that when any of these properties
25 (except @code{middleCPosition}) are changed a new clef symbol is
28 The following examples show the possibilities when setting these
29 properties manually. On the first line, the manual changes preserve the
30 standard relative positioning of clefs and notes, whereas on the second
34 doctitle = "Tweaking clef properties"
37 \layout { ragged-right = ##t } % begin verbatim
40 % The default treble clef
43 % The standard bass clef
44 \set Staff.clefGlyph = #"clefs.F"
45 \set Staff.clefPosition = #2
46 \set Staff.middleCPosition = #6
47 \set Staff.middleCClefPosition = #6
51 \set Staff.clefGlyph = #"clefs.C"
52 \set Staff.clefPosition = #4
53 \set Staff.middleCPosition = #4
54 \set Staff.middleCClefPosition = #4
57 % The standard choral tenor clef
58 \set Staff.clefGlyph = #"clefs.G"
59 \set Staff.clefPosition = #-2
60 \set Staff.clefTransposition = #-7
61 \set Staff.middleCPosition = #1
62 \set Staff.middleCClefPosition = #1
66 \set Staff.clefPosition = #0
67 \set Staff.clefTransposition = #0
68 \set Staff.middleCPosition = #-4
69 \set Staff.middleCClefPosition = #-4
73 % The following clef changes do not preserve
74 % the normal relationship between notes, key signatures
77 \set Staff.clefGlyph = #"clefs.F"
78 \set Staff.clefPosition = #2
80 \set Staff.clefGlyph = #"clefs.G"
82 \set Staff.clefGlyph = #"clefs.C"
84 \set Staff.clefTransposition = #7
86 \set Staff.clefTransposition = #0
87 \set Staff.clefPosition = #0
90 % Return to the normal clef:
92 \set Staff.middleCPosition = #0