27.03.2013 Views

in Snippets - LilyPond

in Snippets - LilyPond

in Snippets - LilyPond

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Staff notation 143<br />

numbers displac<strong>in</strong>g upwards, count<strong>in</strong>g one for each l<strong>in</strong>e and space. The clefOctavation value<br />

would normally be set to 7, -7, 15 or -15, but other values are valid.<br />

When a clef change takes place at a l<strong>in</strong>e break the new clef symbol is pr<strong>in</strong>ted at both the<br />

end of the previous l<strong>in</strong>e and the beg<strong>in</strong>n<strong>in</strong>g of the new l<strong>in</strong>e by default. If the warn<strong>in</strong>g clef at<br />

the end of the previous l<strong>in</strong>e is not required it can be suppressed by sett<strong>in</strong>g the Staff property<br />

explicitClefVisibility to the value end-of-l<strong>in</strong>e-<strong>in</strong>visible. The default behavior can be<br />

recovered with \unset Staff.explicitClefVisibility.<br />

The follow<strong>in</strong>g examples show the possibilities when sett<strong>in</strong>g these properties manually. On<br />

the first l<strong>in</strong>e, the manual changes preserve the standard relative position<strong>in</strong>g of clefs and notes,<br />

whereas on the second l<strong>in</strong>e, they do not.<br />

\layout { ragged-right = ##t }<br />

{<br />

% The default treble clef<br />

c'1<br />

% The standard bass clef<br />

\set Staff.clefGlyph = #"clefs.F"<br />

\set Staff.clefPosition = #2<br />

\set Staff.middleCPosition = #6<br />

c'1<br />

% The baritone clef<br />

\set Staff.clefGlyph = #"clefs.C"<br />

\set Staff.clefPosition = #4<br />

\set Staff.middleCPosition = #4<br />

c'1<br />

% The standard choral tenor clef<br />

\set Staff.clefGlyph = #"clefs.G"<br />

\set Staff.clefPosition = #-2<br />

\set Staff.clefOctavation = #-7<br />

\set Staff.middleCPosition = #1<br />

c'1<br />

% A non-standard clef<br />

\set Staff.clefPosition = #0<br />

\set Staff.clefOctavation = #0<br />

\set Staff.middleCPosition = #-4<br />

c'1 \break<br />

% The follow<strong>in</strong>g clef changes do not preserve<br />

% the normal relationship between notes and clefs:<br />

\set Staff.clefGlyph = #"clefs.F"<br />

\set Staff.clefPosition = #2<br />

c'1<br />

\set Staff.clefGlyph = #"clefs.G"<br />

c'1<br />

\set Staff.clefGlyph = #"clefs.C"<br />

c'1<br />

\set Staff.clefOctavation = #7<br />

c'1<br />

\set Staff.clefOctavation = #0<br />

\set Staff.clefPosition = #0

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!