[icon]

GNU LilyPond

-- --

What is LilyPond
Home
Examples
Templates
Download
GNU/Linux binaries
Windows binaries
Source code
Documentation
Tutorial
Manual
Glossary
Index

Support
Mailing lists
Search
WikiWiki

External sites
lilypond.org/stable
lilypond.org/development
savannah.gnu.org
ftp.lilypond.org
Mutopia
Other music online

Time signature

The time signature is set or changed by the \time command.

      \time 2/4 c'2 \time 3/4 c'2.
     
[picture of music]

The actual symbol that's printed can be customized with the style property. Setting it to #'() uses fraction style for 4/4 and 2/2 time.

The object for this symbol is TimeSignature . There are many more options for its layout. They are selected through the style object property. See input/test/time.ly for more examples.

This command sets the property timeSignatureFraction, beatLength and measureLength in the Timing context, which is normally aliased to Score . The property timeSignatureFraction determine where bar lines should be inserted, and how automatic beams should be generated. Changing the value of timeSignatureFraction also causes a time signature symbol to be printed.

More options are available through the Scheme function set-time-signature. In combination with the Measure_grouping_engraver , it will create MeasureGrouping signs. Such signs ease reading rhythmically complex modern music. In the following example, the 9/8 measure is subdivided in 2, 2, 2 and 3. This is passed to set-time-signature as the third argument (2 2 2 3).

     \score { \notes \relative c'' {
        #(set-time-signature 9 8 '(2 2 2 3))
        g8 g d d g g a8-[-( bes g-]-) |
        #(set-time-signature 5 8 '(3 2))
        a4. g4
        }
        \paper {
            linewidth = -1.0
            \translator { \StaffContext
              \consists "Measure_grouping_engraver"
        }}}
     
[picture of music]

Partial

Partial measures, for example in upbeats, are entered using the \partial command:

     \partial 4* 5/16  c'16 c4 f16 a'2. ~ a'8. a'16 | g'1
     
[picture of music]

The syntax for this command is

       \partial duration
     
This is internally translated into
       \property Timing.measurePosition = -length of duration
     
The property measurePosition contains a rational number indicating how much of the measure has passed at this point.
Go back to index of LilyPond.

Please send GNU LilyPond questions and comments to lilypond-user@gnu.org.

Please send comments on these web pages to (address unknown)

Copyright (c) 1997--2002 Han-Wen Nienhuys and Jan Nieuwenhuizen.

Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved.


This page was built from LilyPond-1.7.14 (development-branch) by

Buchan Milne <(address unknown)>, Thu Mar 6 21:11:35 2003 CET.