lilypond-user
[Top][All Lists]
Advanced

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

Re: Putting a \layout block in a Scheme macro


From: Timothy Lanfear
Subject: Re: Putting a \layout block in a Scheme macro
Date: Sun, 22 Jan 2017 21:34:59 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1

On 22/01/17 20:12, Thomas Morley wrote:
P.S.
The actual topic of this thread, \layout in scheme, is not answered.
Though, I doubt you still need it. If I'm wrong, please shout and I'll
have a second thought
If you do feel the need to process layouts in Scheme, this may point you in the right direction.

\version "2.19.54"

BlankStaff =
#(define-void-function  (count) (integer?)
  (let* ((blankstaff #{ \score { { s1 \break } } #} )
(layout #{ \layout { \context { \Staff \remove "Bar_engraver" } } #} )
         (bookpart   (ly:make-book-part (make-list count blankstaff)))
         (book       (ly:make-book $defaultpaper $defaultheader)))
    (ly:output-def-set-variable! layout 'indent (ly:mm 0))
    (ly:output-def-set-variable! layout 'ragged-right #f)
    (ly:book-add-bookpart! book bookpart)
    (ly:book-process book $defaultpaper layout (ly:parser-output-name))
))

\BlankStaff 4

--
Timothy Lanfear, Bristol, UK.




reply via email to

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