bug-lilypond
[Top][All Lists]
Advanced

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

Re: Quoting music in ly:book-process


From: David Kastrup
Subject: Re: Quoting music in ly:book-process
Date: Wed, 26 Sep 2012 09:30:05 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux)

Mark Witmer <address@hidden> writes:

> I can't seem to get quotes/cues working in a score generated with ly:book-
> process. This is my code:
>
> % Quoted notes should appear in music created with ly:book-process,
> % but they do not
> \version "2.16.0"
> myPaper = \paper {}
> myLayout = \layout {}
>
> \addQuote "test" {c1 b1 a1}
>
> #(ly:book-process 
>   (ly:make-book myPaper (make-module) 
>    (ly:make-score #{ 
>     \new Staff {
>       {a1 \quoteDuring "test" {s1 s1} g1 }
>   } #} )) myPaper myLayout "quote-test")
>
> The two bars with spacer rests remain empty in the output. The problem
> is the same if I move the \addQuote statement to the inside of the
> \new Staff {} block.
>
> Is there a way to work around this? It looks like a bug to me.

There is a bunch of additional transforms applied to music before it is
used as music in a score.  So in this case, you should rather write

% Quoted notes should appear in music created with ly:book-process,
% but they do not
\version "2.16.0"
myPaper = \paper {}
myLayout = \layout {}

\addQuote "test" {c1 b1 a1}

#(ly:book-process 
  (ly:make-book myPaper (make-module) 
   #{ \score {
    \new Staff {
      {a1 \quoteDuring "test" {s1 s1} g1 }
  } } #}) myPaper myLayout "quote-test")

in order to get the music processing required for a full score done by
LilyPond.  Of course, you might consider rephrasing the ly:make-book
call as #{ \book { ... } #} as well, peeling off another Scheme layer
and leaving just ly:book-process.

-- 
David Kastrup




reply via email to

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