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: Mats Bengtsson
Subject: Re: reduce spacing between chord names and staff?
Date: Mon, 23 Feb 2004 10:38:04 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040113

Paul Scott wrote:
Mats Bengtsson wrote:

This is controlled by the |minimumVerticalExtent| property of the two involved
contexts, namely ChordNames and Staff. However, by default the ChordNames
don't extend below zero, so you probably have to reduce the upper value
(= the second value) of the property for Staff. Note that this may affect also
other spacings in the score.
See http://lilypond.org/doc/v2.1/Documentation/user/out-www/lilypond-internals/Staff.html#Staff
and
http://lilypond.org/doc/v2.1/Documentation/user/out-www/lilypond/Vertical-spacing.html#Vertical%20spacing


That's what I thought.
Ok. With some experimentation I got it to work but from my experiments I discovered that \set creates a new staff. The following creates the staff above the chords:

\version "2.1.25"

\header { title    = "Chord Space Test" }

\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?
\set Staff.xxx = xxx sets a property value in the current
Staff context. 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' }
   >>
}


  /Mats




reply via email to

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