bug-lilypond
[Top][All Lists]
Advanced

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

FW: Custom Tuning creating space beneath the first system


From: Carl Sorensen
Subject: FW: Custom Tuning creating space beneath the first system
Date: Fri, 19 Aug 2011 08:36:41 -0600

Peter,

I've forwarded this to bug-lilypond, because it is a bug.
\contextStringTuning sets a context property for the FretBoards context.
This creates a FretBoards context if one doesn't exist.

I'll investigate possible fixes.

In the meantime, since you're not using FretBoards in this layout, put the
following in your file before the score:

contextStringTuning =
#(define-music-function (parser location tuning chord)
   (symbol? ly:music?)
   (_ "Convert @{chord} to a string tuning stored in @code{tuning},
and set @code{stringTunings} of the current context to the
newly-defined tuning.
@{chord} must be in absolute pitches and should have the highest
string number (generally the lowest pitch) first.  @code{tuning}
should be a string that will be converted to a symbol.")
   (begin
     (chord->tuning parser tuning chord)
     #{
        \set TabStaff.stringTunings = $(ly:parser-lookup parser tuning)
     #}))

HTH,

Carl


------ Forwarded Message
From: Peter Crighton <address@hidden>
Date: Fri, 19 Aug 2011 06:58:05 -0600
To: LilyPond Mailing List <address@hidden>
Conversation: Custom Tuning creating space beneath the first system
Subject: Custom Tuning creating space beneath the first system

Hi everybody.

When I create a custom tuning via \contextStringTuning there is some
extra vertical space (only) beneath the first system. When creating it
via \set TabStaff.stringTunings everything's perfect.
Is this a bug? Can it be fixed? I'd like to use \contextStringTuning,
because it's more compact.

--
Peter Crighton | (mainly) Progressive Rock musician based in
Mainz/Wiesbaden, Germany
http://www.petercrighton.de

------ End of Forwarded Message

Attachment: customTuning.ly
Description: customTuning.ly


reply via email to

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