lilypond-user
[Top][All Lists]
Advanced

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

Re: reduce spacing between chord names and staff?


From: Paul Scott
Subject: Re: reduce spacing between chord names and staff?
Date: Mon, 23 Feb 2004 03:22:12 -0700
User-agent: Mozilla Thunderbird 0.5 (X11/20040209)

Mats Bengtsson wrote:

Paul Scott wrote:

\score {
   <<
   \set Staff.minimumVerticalExtent = #'(-0 . 1)
   \context ChordNames \chords{ a b c d }
   \context Staff \notes{ a'4 b' c' d' }
   >>
}

Is this what is intended?  Where is this feature of \set described?


Haven't you asked almost the same question before?

Not intentionally. You may have actually answered it in one of our recent threads but if so I didn't get the full meaning at that time. So far I have found examples of the context syntax in the manual but not a clear explanation of how it works. I probably should have done the experimenting I just did before this.

\set Staff.xxx = xxx sets a property value in the current
Staff context.

Where those properties were stored was not clear until now.

If there is no such context, LilyPond has to
create one to be able to do the setting. Two lines later, you
create a new Staff context.
You have to do the setting within the context you want to affect:
\score {
   <<
   \context ChordNames \chords{ a b c d }
   \context Staff \notes{
      \set Staff.minimumVerticalExtent = #'(-0 . 1)
      a'4 b' c' d' }
   >>
}

In recent development versions, you also have the following convenient
syntax:

\score {
   <<
   \context ChordNames \chords{ a b c d }
   \context Staff \notes \with { minimumVerticalExtent = #'(-0 . 1) }
     { a'4 b' c' d' }
   >>
}

Thanks. It's a big manual and so far I hadn't seen a clear enough example of the syntax for '\with'. Of course now when I search for '\with' in the manual I find more.

Thanks for your patience,

Paul





reply via email to

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