Hello,

On 28/09/2011 08:02, Jan-Peter Voigt wrote:
Hello Alberto,

in lilypond you achieve less typing with defining music-funtions:

--snip--
partialInline = #(define-music-function (parser location nom den
mus)(integer? integer? ly:music?)
#{
\set Timing.measureLength = #(ly:make-moment $nom $den)
$mus
\unset Timing.measureLength
#})

\relative c' {
\time 4/4
\partial 4
\repeat volta 2 { c4 | e g a } \alternative {
{ b | c b a } { \partialInline #1 #4 b | a g f }
}
c8 d | c1 |
}

Hello, Jan-Peter

For this to work I need to write
\partialInline #1 #4 { b } ...
but that's OK.

My main problem is that the unset unsets completely, making my 2/4 music 4/4...

Any help on saving that variable value so I can set it back again?

Cheers
ambs

_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to