X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Documentation%2Fuser%2Feditorial.itely;h=7c37e6a039c0f095bfc6f34406f731a996bff06a;hb=e77df60bf07220db5d2211a0b0a326f3644a2ccb;hp=674605cb26caa2b4804133e15c4501871f2d8735;hpb=459d0f6cd5f0ec4f7ba307ffbb7c3018c8ab8eec;p=lilypond.git diff --git a/Documentation/user/editorial.itely b/Documentation/user/editorial.itely index 674605cb26..7c37e6a039 100644 --- a/Documentation/user/editorial.itely +++ b/Documentation/user/editorial.itely @@ -12,6 +12,9 @@ @lilypondfile[ragged-right,line-width=16\cm,staffsize=16,quote] {editorial-headword.ly} +This section discusses the various ways to change the appearance of +notes and add analysis or educational emphasis. + @menu * Inside the staff:: * Outside the staff:: @@ -21,6 +24,8 @@ @node Inside the staff @subsection Inside the staff +This section discusses how to add emphasis to elements that are +inside the staff. @menu * Selecting notation font size:: @@ -112,6 +117,9 @@ Internals Reference: @internalsref{font-interface}. Fingering instructions can be entered using @var{note}-@var{digit}: +Fingering instructions may be manually placed above or below the +staff, see @ref{Controlling direction and placement}. + @lilypond[quote,verbatim,ragged-right,fragment,relative=2] c4-1 d-2 f-4 e-3 @end lilypond @@ -237,11 +245,13 @@ If @code{x11-color} cannot make sense of the parameter then the color returned defaults to black. @lilypond[quote,ragged-right,verbatim,fragment,relative=2] + \override Staff.StaffSymbol #'color = #(x11-color 'SlateBlue2) \set Staff.instrumentName = \markup { \with-color #(x11-color 'navy) "Clarinet" } -gis4 a + +gis8 a \override Beam #'color = #(x11-color "medium turquoise") gis a \override Accidental #'color = #(x11-color 'DarkRed) @@ -251,28 +261,28 @@ gis a % this is deliberate nonsense; note that the stems remain black \override Stem #'color = #(x11-color 'Boggle) b2 cis + @end lilypond You can get exact RGB colors by specifying the rgb-color number. @lilypond[quote,ragged-right,verbatim,fragment,relative=2] -{ + \override Staff.StaffSymbol #'color = #(x11-color 'SlateBlue2) \set Staff.instrumentName = \markup { \with-color #(x11-color 'navy) "Clarinet" } - \time 4/4 - + %black \override Stem #'color = #(rgb-color 0 0 0) - c4 + gis8 a % white \override Stem #'color = #(rgb-color 1 1 1) - d + gis8 a % dark blue \override Stem #'color = #(rgb-color 0 0 0.5) - e -} + gis4 a + @end lilypond @seealso @@ -292,8 +302,7 @@ web use normal colors are recommended (i.e. #blue, #green, #red). Notes in a chord cannot be colored with @code{\override}; use -@code{\tweak} instead. See @ref{Objects connected to the input}, -for details. +@code{\tweak} instead, see @ref{Objects connected to the input}. @node Parentheses @@ -311,14 +320,12 @@ if it is a chord. @lilypond[relative=2,fragment,verbatim,ragged-right] c2 < \parenthesize d> -<\parenthesize e> d @end lilypond Non-note objects may be parenthesized as well. @lilypond[relative=2,fragment,verbatim,ragged-right] -< c \parenthesize d g >2-\parenthesize -. d -g < c, \parenthesize fis > +< c d g >2-\parenthesize -. d @end lilypond @seealso @@ -370,6 +377,8 @@ Snippets: @lsrdir{Editorial,Editorial-annotations}. @node Outside the staff @subsection Outside the staff +This section discusses how to add emphasis to elements in the staff +from outside of the staff. @menu * Balloon help:: @@ -391,10 +400,11 @@ The following example demonstrates its use. { \time 2/4 \balloonGrobText #'Stem #'(3 . 4) \markup { "I'm a Stem" } - a'8 - 4. + a8 + 4. } + @end lilypond There are two music functions, @code{balloonGrobText} and @@ -431,8 +441,44 @@ notes. \new Score \with { \consists "Grid_line_span_engraver" - %% centers grid lines horizontally below note heads by default - %the grid lines are aligned with the left side of the notehead + %% by default this centers grid lines horizontally below and to the + % left side of the notehead, the grid lines extend from + % the middle lines of each staff +} + +\new ChoirStaff << + \new Staff { + \stemUp + \relative { + c'4. d8 e8 f g4 + } + } + \new Staff { + \stemDown + \clef bass + \relative c { + c4 g' f e + } + } +>> +@end lilypond + +To change the grid lines use \override. + + +@lilypond[ragged-right,quote,verbatim] +\layout { + \context { + \Staff + \consists "Grid_point_engraver" + % sets up grids + gridInterval = #(ly:make-moment 1 4) + % this sets the grid interval to 1 quarternote (crotchet) + } +} + +\new Score \with { + \consists "Grid_line_span_engraver" \override NoteColumn #'X-offset = #-0.5 % this moves them to the right half a staff space } @@ -446,8 +492,7 @@ notes. } \new Staff { \override Score.GridLine #'extra-offset = #'( 0.0 . 1.0 ) - % by default the grid lines join the middle line of each staff, - % this moves them up one staff space + % this moves them up one staff space from the default position \stemDown \clef bass \relative c {