[icon]

GNU LilyPond

Welcome to the home of the GNU Music Typesetter

What is LilyPond
General information
Simple examples
Complex examples
Download
GNU/Linux binaries
Windows
Source code
Documentation
Tutorial
Manual
Glossary
other ...

Support
Mailing lists
Search
WikiWiki
FAQs

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

Node:Time signature, Next:, Previous:Clef, Up:Staff notation



Time signature

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

  \time n/d
Internally, this is a shortcut for doing
\property Score.timeSignatureFraction = #'(n . d)
\property Score.beatLength = #(make-moment 1 d)
\property Score.measureLength = #(make-moment n d)

These properties timeSignatureFraction determine where bar lines should be inserted, and how automatic beams should be generated.

Changing the value of timeSignatureFraction also causes a fraction to be printed. This grob is TimeSignature .

The actual symbol that's printed can be customized with the style property.

\time 3/4 s2
\property Staff.TimeSignature \override #'style = #'C
\time 4/4 s2
\property Staff.TimeSignature \override #'style = #'()
\time 4/4 s2
\property Staff.TimeSignature \override #'style = #'C
\time 2/2 s2

[picture of music]

There are many more options for the layout of this grob. They are selected through the style grob property.

See input/test/time.ly for examples.

Partial

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

  \partial duration

Internally, this is a shortcut for

  \property Score.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 lilypond@packages.debian.org

Copyright (c) 1997--2001 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.4.12 (stable-branch) by

Anthony Fok <lilypond@packages.debian.org>, Tue Mar 12 01:35:39 2002 HKT.