OLD | NEW |
1 @c -*- coding: utf-8; mode: texinfo; -*- | 1 @c -*- coding: utf-8; mode: texinfo; -*- |
2 @ignore | 2 @ignore |
3 Translation of GIT committish: FILL-IN-HEAD-COMMITTISH | 3 Translation of GIT committish: FILL-IN-HEAD-COMMITTISH |
4 | 4 |
5 When revising a translation, copy the HEAD committish of the | 5 When revising a translation, copy the HEAD committish of the |
6 version that you are working on. For details, see the Contributors' | 6 version that you are working on. For details, see the Contributors' |
7 Guide, node Updating translation committishes.. | 7 Guide, node Updating translation committishes.. |
8 @end ignore | 8 @end ignore |
9 | 9 |
10 @c \version "2.15.20" | 10 @c \version "2.15.21" |
11 | 11 |
12 | 12 |
13 @node Pitches | 13 @node Pitches |
14 @section Pitches | 14 @section Pitches |
15 | 15 |
16 @lilypondfile[quote]{pitches-headword.ly} | 16 @lilypondfile[quote]{pitches-headword.ly} |
17 | 17 |
18 This section discusses how to specify the pitch of notes. There | 18 This section discusses how to specify the pitch of notes. There |
19 are three steps to this process: input, modification, and output. | 19 are three steps to this process: input, modification, and output. |
20 | 20 |
(...skipping 1415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1436 @node Automatic accidentals | 1436 @node Automatic accidentals |
1437 @unnumberedsubsubsec Automatic accidentals | 1437 @unnumberedsubsubsec Automatic accidentals |
1438 | 1438 |
1439 @cindex accidental style | 1439 @cindex accidental style |
1440 @cindex accidental style, default | 1440 @cindex accidental style, default |
1441 @cindex accidentals | 1441 @cindex accidentals |
1442 @cindex accidentals, automatic | 1442 @cindex accidentals, automatic |
1443 @cindex automatic accidentals | 1443 @cindex automatic accidentals |
1444 @cindex default accidental style | 1444 @cindex default accidental style |
1445 | 1445 |
1446 @funindex set-accidental-style | 1446 @funindex \accidentalStyle |
1447 @funindex voice | 1447 @funindex voice |
1448 @funindex default | 1448 @funindex default |
1449 | 1449 |
1450 There are many different conventions on how to typeset | 1450 There are many different conventions on how to typeset |
1451 accidentals. LilyPond provides a function to specify which | 1451 accidentals. LilyPond provides a function to specify which |
1452 accidental style to use. This function is called as follows: | 1452 accidental style to use. This function is called as follows: |
1453 | 1453 |
1454 @example | 1454 @example |
1455 \new Staff << | 1455 \new Staff << |
1456 \accidentalStyle "voice" | 1456 \accidentalStyle "voice" |
1457 @{ @dots{} @} | 1457 @{ @dots{} @} |
1458 >> | 1458 >> |
1459 @end example | 1459 @end example |
1460 | 1460 |
1461 The accidental style applies to the current @code{Staff} by | 1461 The accidental style applies to the current @code{Staff} by |
1462 default (with the exception of the styles @code{piano} and | 1462 default (with the exception of the styles @code{piano} and |
1463 @code{piano-cautionary}, which are explained below). Optionally, | 1463 @code{piano-cautionary}, which are explained below). Optionally, |
1464 the function can take a second argument that determines in which | 1464 the function can take a second argument that determines in which |
1465 scope the style should be changed. For example, to use the same | 1465 scope the style should be changed. For example, to use the same |
1466 style in all staves of the current @code{StaffGroup}, use: | 1466 style in all staves of the current @code{StaffGroup}, use: |
1467 | 1467 |
1468 @example | 1468 @example |
1469 $(set-accidental-style 'voice 'StaffGroup) | 1469 \accidentalStyle #'StaffGroup "voice" |
1470 @end example | 1470 @end example |
1471 | 1471 |
1472 The following accidental styles are supported. To demonstrate | 1472 The following accidental styles are supported. To demonstrate |
1473 each style, we use the following example: | 1473 each style, we use the following example: |
1474 | 1474 |
1475 | 1475 |
1476 @lilypond[verbatim,quote] | 1476 @lilypond[verbatim,quote] |
1477 musicA = { | 1477 musicA = { |
1478 << | 1478 << |
1479 \relative c' { | 1479 \relative c' { |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1522 | 1522 |
1523 Note that the last lines of this example can be replaced by the | 1523 Note that the last lines of this example can be replaced by the |
1524 following, as long as the same accidental style should be used in | 1524 following, as long as the same accidental style should be used in |
1525 both staves. | 1525 both staves. |
1526 | 1526 |
1527 @example | 1527 @example |
1528 \new PianoStaff @{ | 1528 \new PianoStaff @{ |
1529 << | 1529 << |
1530 \context Staff = "up" @{ | 1530 \context Staff = "up" @{ |
1531 %%% change the next line as desired: | 1531 %%% change the next line as desired: |
1532 $(set-accidental-style 'default 'Score) | 1532 \accidentalStyle #'Score "default" |
1533 \musicA | 1533 \musicA |
1534 @} | 1534 @} |
1535 \context Staff = "down" @{ | 1535 \context Staff = "down" @{ |
1536 \musicB | 1536 \musicB |
1537 @} | 1537 @} |
1538 >> | 1538 >> |
1539 @} | 1539 @} |
1540 @end example | 1540 @end example |
1541 | 1541 |
1542 | 1542 |
(...skipping 1460 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3003 | 3003 |
3004 | 3004 |
3005 @seealso | 3005 @seealso |
3006 Snippets: | 3006 Snippets: |
3007 @rlsr{Pitches}. | 3007 @rlsr{Pitches}. |
3008 | 3008 |
3009 Internals Reference: | 3009 Internals Reference: |
3010 @rinternals{Pitch_squash_engraver}, | 3010 @rinternals{Pitch_squash_engraver}, |
3011 @rinternals{Voice}, | 3011 @rinternals{Voice}, |
3012 @rinternals{RhythmicStaff}. | 3012 @rinternals{RhythmicStaff}. |
OLD | NEW |