27.03.2013 Views

LilyPond Snippets

LilyPond Snippets

LilyPond Snippets

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Rhythms 19<br />

}<br />

3<br />

a16 a a a a a a a a a a a<br />

3<br />

4 16 12 16<br />

12<br />

<br />

<br />

12<br />

16 <br />

<br />

<br />

<br />

Changing the tuplet number<br />

By default, only the numerator of the tuplet number is printed over the tuplet bracket, i.e., the<br />

denominator of the argument to the \times command. Alternatively, num:den of the tuplet<br />

number may be printed, or the tuplet number may be suppressed altogether.<br />

\relative c'' {<br />

\times 2/3 { c8 c c }<br />

\times 2/3 { c8 c c }<br />

\override TupletNumber #'text = #tuplet-number::calc-fraction-text<br />

\times 2/3 { c8 c c }<br />

\override TupletNumber #'stencil = ##f<br />

\times 2/3 { c8 c c }<br />

}<br />

<br />

<br />

<br />

3 3<br />

3:2<br />

Changing time signatures inside a polymetric section using<br />

\scaleDurations<br />

The measureLength property, together with measurePosition, determines when a bar line is<br />

needed. However, when using \scaleDurations, the scaling of durations makes it difficult<br />

to change time signatures. In this case, measureLength should be set manually, using the<br />

ly:make-moment callback. The second argument must be the same as the second argument of<br />

\scaleDurations.<br />

\layout {<br />

\context {<br />

\Score<br />

\remove "Timing_translator"<br />

\remove "Default_bar_line_engraver"<br />

}<br />

\context {<br />

\Staff<br />

\consists "Timing_translator"<br />

\consists "Default_bar_line_engraver"<br />

}<br />

}

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!