lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Some horizontal spacing problems.


From: Mats Bengtsson
Subject: Re: Some horizontal spacing problems.
Date: Sun, 28 Jan 2007 19:52:01 +0100
User-agent: Internet Messaging Program (IMP) H3 (4.0.5)

Quoting Charles Gentry <address@hidden>:

Hello,

Before I begin I'd just like to say how much I enjoy using Lilypond - there is
absolutely nothing like it.

I have to problems that I would desperately like some advice:

1. I'm writing some exercises consisting of three bars. The main part is in the first two bars and the final bar is is just a single note ending. Something like:

\time 4/4 %etc.
c4 c4 c4 c4 | c4 c4 c4 c4 | c1 \bar "|."

What I would like to do is alter the horizontal spacing so that the first two
bars take up the majority of the line while the last bar is very small and tight
so that the final c1 is really squashed between the bars.

First of all, do you want the examples to be stretched over the full
line width? Otherwise you can use
\layout{
 ragged-right=##t }

Since the spacing is based on the duration of each note, you can get
what you want if you replace the c1 by c1*1/16 for example.

2. I have a polyphonic phrase with triplets in the bottom voice and dotted 8th
and 16th notes in the upper voice.

\time 4/4 %etc.
\relative c' {
<<{
 <c' e>8. <c e>16 <c e>8. <c e>16
 <d f>8. <d f>16 <d f>8. <d f>16
}\\{
 \override TupletNumber #'transparent = ##t
 \set tupletSpannerDuration = #(ly:make-moment 1 4)
 \times 2/3 {
   c,8 g' f
   e8 g c,
   b8 d c
   b8 d g,
 }
}>>
}
The problem here is that I'd like the 16th notes to lie directly above the the last note in each triplet (since the dotted 8th and the 16th should be the same
time length as a triplet of 8ths). At the moment the upper voice is noticably
out of line to the right.

I've checked the documentation and other sources for advice but to no avail. If
you can provide any solution please write back.

The solution is the same as in your previous question, namely to scale
the durations. See section "Scaling durations".

 /Mats






reply via email to

[Prev in Thread] Current Thread [Next in Thread]