[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: warning: already have a volta spanner, ending that one prematurely
From: |
Thomas Morley |
Subject: |
Re: warning: already have a volta spanner, ending that one prematurely |
Date: |
Wed, 10 Feb 2016 23:50:24 +0100 |
2016-02-10 22:54 GMT+01:00 Federico Bruni <address@hidden>:
> Hi all
>
> Do you know why the following input causes this warning?
> There's anything I can do to avoid it?
>
> \version "2.19.35"
> \relative {
> c'1
> \set Score.repeatCommands = #'((volta "1"))
> d'1
Here you try to end the volta-spanner:
> \set Score.repeatCommands = #'((volta #f))
>
Here you try to begin a new volta-spanner:
> \set Score.repeatCommands = #'((volta "2"))
Both commands are set at the same musical moment, conflict! So Lily
tries to makes any sense of your input and throws a warning.
> f1
> \set Score.repeatCommands = #'((volta #f))
> }
`repeatCommands' expects a list. So put all stuff in _one_ list:
\relative {
c'1
\set Score.repeatCommands = #'((volta "1"))
d'1
\set Score.repeatCommands = #'((volta #f) (volta "2") end-repeat)
f1
\set Score.repeatCommands = #'((volta #f))
}
As shown in the NR ;)
http://www.lilypond.org/doc/v2.19/Documentation/notation/long-repeats#manual-repeat-marks
Cheers,
Harm