lilypond-user
[Top][All Lists]
Advanced

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

Re: \partial and \unfoldRepeats


From: James
Subject: Re: \partial and \unfoldRepeats
Date: Thu, 17 May 2012 18:57:05 +0100

Hello,

On 17 May 2012 11:50, Christopher Webster
<address@hidden> wrote:
> The intention of the input below was to produce a PDF with normal repeat
> notation plus a MIDI file in which the repeat was expanded explicitly.
>
> \version "2.14.1"
>
> dots =
>     \relative c'
>     {
>         \partial 8 c'8
>         c8 c c c
>         c4 r8
>     }
>
> \book
> {
>     \score
>     {
>         \new Staff
>         {
>             \time 2/4
>             \repeat volta 2 \dots
>         }
>     }
> }
>
> \book
> {
>     \score
>     {
>         \unfoldRepeats
>         {
>             \new Staff
>             {
>                 \time 2/4
>                 \repeat volta 2 \dots
>             }
>         }
>         \midi { }
>     }
> }
>
> The upbeat is handled perfectly by the \partial construct for the PDF
> output, but provokes a warning in conjunction with the MIDI output,
> presumably as a result of the \unfoldRepeats:
>
> GNU LilyPond 2.14.1
> Processing `temp1.ly'
> Parsing...
> Interpreting music...
> Preprocessing graphical objects...
> Finding the ideal number of pages...
> Fitting music on 1 page...
> Drawing systems...
> Layout output to `temp1.ps'...
> Converting to `./temp1.pdf'...
> Interpreting music...
> temp1.ly:6:16: warning: trying to use \partial after the start of a piece
>
>                 \partial 8 c'8
> MIDI output to `temp1-1.midi'...
> success: Compilation successfully completed
>
> I can fix this by replacing \partial 8 with \set Timing.measurePosition =
> #(ly:make-moment 3 8), though it seems I then also have to add \set
> Score.currentBarNumber = #0 to  make the bar (measure) numbers come out as
> expected.
>
> Is that the recommendation, or have I missed an opportunity to do something
> more elegant?
>

http://lilypond.org/doc/v2.14/Documentation/notation-big-page.html#upbeats

See known issues and warnings.

James



reply via email to

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