lilypond-user
[Top][All Lists]
Advanced

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

Re: Extra padding between ChordNames and custom headers


From: Robin Bannister
Subject: Re: Extra padding between ChordNames and custom headers
Date: Sat, 17 Jul 2021 10:53:59 +0200
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1

Aaron Hill wrote:

\score { \header { piece = "Curabitur condimentum"
                     extra = \markup \vspace #0.5 } \song }



And the put-mm [1] version of this would be

%%%%
\version "2.22.0"

#(define-markup-command (mm-feed layout props amount) (number?)
 (let ((o-s (ly:output-def-lookup layout 'output-scale)))
   (ly:make-stencil "" '(0 . 0) (cons 0 (abs (/ amount o-s))))))

#(define-markup-command (put-mm layout props dir amount arg)
 (ly:dir? number? markup?) (interpret-markup layout props
   (markup #:put-adjacent Y dir arg #:mm-feed amount)))


song =
<< \new ChordNames \chordmode { c2 d:7 | g1 }
    \new Voice \fixed c' { g2 a4 fis | g1 } >>

\paper { indent = 0 line-width = 2\in ragged-right = ##f }

\score { \header { piece = "Duis blandit lorem" } \song }
\score { \header { piece =  \markup \put-mm #DOWN #4
                     "Curabitur condimentum"  } \song }
\score { \header { piece = "Integer sit amet" } \song }
%%%%

[1]
https://lists.gnu.org/archive/html/lilypond-user/2010-04/msg00035.html


Cheers,
Robin



reply via email to

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