Previous: Aligning to cadenzas, Up: Special rhythmic concerns
Time is administered by the Timing_translator, which by
default is to be found in the Score context. An alias,
Timing, is added to the context in which the
Timing_translator is placed.
The following properties of Timing are used
to keep track of timing within the score.
currentBarNumbermeasureLengthmeasurePositionmeasureLength whenever
measureLength is reached or exceeded. When that happens,
currentBarNumber is incremented.
timingTiming can be changed by setting any of these variables
explicitly. In the next example, the default 4/4 time
signature is printed, but measureLength is set to 5/4.
At 4/8 through the third measure, the measurePosition is
advanced by 1/8 to 5/8, shortening that bar by 1/8.
The next bar line then falls at 9/8 rather than 5/4.
\set Score.measureLength = #(ly:make-moment 5 4)
c1 c4
c1 c4
c4 c4
\set Score.measurePosition = #(ly:make-moment 5 8)
b4 b4 b8
c4 c1
As the example illustrates, ly:make-moment n m constructs a
duration of n/m of a whole note. For example,
ly:make-moment 1 8 is an eighth note duration and
ly:make-moment 7 16 is the duration of seven sixteenths
notes.
This manual: Bar numbers, Unmetered music
Snippets: Rhythms.
Internals Reference: Timing_translator, Score
Diese Seite ist für LilyPond-2.11.58 (Entwicklungszweig).
Fehler bitte an http://post.gmane.org/post.php?group=gmane.comp.gnu.lilypond.bugs melden.
Ihre Vorschläge für die Dokumentation sind willkommen.