[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
inline partials and warnings
From: |
Alberto Simões |
Subject: |
inline partials and warnings |
Date: |
Sun, 22 Jan 2012 14:01:27 +0000 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:9.0) Gecko/20111222 Thunderbird/9.0.1 |
Hello
Some time ago, in this list, we discussed about partial inlines (that
were supported back ago with '\partial') and the result was this macro
that was very useful:
partialInline = #(define-music-function
(parser location nom den mus)
(integer? integer? ly:music?)
#{
\set Score.measurePosition = #(ly:make-moment (- $nom) $den)
$mus
#}
)
I use is as \partialInline #3 #8 { a8 a a }
Until now I managed to use it properly, but today I have a sctb that is
making me crazy :)
All the voices have the same structure:
\time 6/8
\partial 8 a8 a a | ... |
a4 a8 \repeat volta 2 { a4 a8 | ... | }
\alternative {
{ a4 a8 a4 a8 | \partialInline #3 #8 { a4. } }
{ a4 a8 a4 a8 | a4. }
}
where |...| are proper 6/8 measures.
While the first voice (S) doesn't complain, I get for the others
sctb.ly:52:18: warning: barcheck failed at: -3/8
in the bar exactly before the partialInline.
I tried to add
\set Timing.measurePosition = #(ly:make-moment 0 8)
before all the partials, but I get the sabe behavior.
Any hint?
thank you,
alberto
PS: in attach the full file (it is not that big).
sctb.ly
Description: Text document
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- inline partials and warnings,
Alberto Simões <=