Am 03.04.2015 um 13:19 schrieb Pierre Perol-Schneider:
I'm sorry, doesn't seem to work too... ;(
Passing '() as default parameter doesn't seem to work here, you have to
call \tuplet explicitly one way or the other:
t =
#(define-music-function (parser location ratio tup-span mus)
(fraction? (ly:duration?) ly:music?)
(if tup-span
#{
\tuplet #ratio #tup-span #mus
#}
#{
\tuplet #ratio #mus
#}))
\relative c' {
\t 3/2 4 { c8 d e c d e }
}
Urs
2015-04-03 13:18 GMT+02:00 Thomas Morley <thomasmorle...@gmail.com
<mailto:thomasmorle...@gmail.com>>:
2015-04-03 12:58 GMT+02:00 Pierre Perol-Schneider
<pierre.schneider.pa...@gmail.com
<mailto:pierre.schneider.pa...@gmail.com>>:
> Hi Harm,
>
> 2015-04-03 12:32 GMT+02:00 Thomas Morley
<thomasmorle...@gmail.com <mailto:thomasmorle...@gmail.com>>:
>
>>
>> %% or:
>>
>> t =
>> #(define-music-function (parser location ratio tuplet-span music)
>> (fraction? (ly:duration? '()) ly:music?)
>> #{ \tuplet $frac $tuplet-span $mus #})
>
>
>
> Copy/paste typos?
>
> t =
> #(define-music-function (parser location ratio tuplet-span music)
> (fraction? (ly:duration? '()) ly:music?)
> #{ \tuplet $ratio $tuplet-span $music #})
>
> \relative c'' {
> \t 3/2 { c c c }
> }
>
> Cheers,
> Pierre
>
>
Argh. Ofcourse. Sorry for that.
Thanks,
Harm
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user