lilypond-user
[Top][All Lists]
Advanced

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

Re: Abbreviations


From: Urs Liska
Subject: Re: Abbreviations
Date: Fri, 03 Apr 2015 20:11:20 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.6.0



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 <address@hidden>:
2015-04-03 12:58 GMT+02:00 Pierre Perol-Schneider
<address@hidden>:
> Hi Harm,
>
> 2015-04-03 12:32 GMT+02:00 Thomas Morley <address@hidden>:
>
>>
>> %% 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
address@hidden
https://lists.gnu.org/mailman/listinfo/lilypond-user


reply via email to

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