lilypond-user
[Top][All Lists]
Advanced

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

Re: Abbreviations


From: Thomas Morley
Subject: Re: Abbreviations
Date: Fri, 3 Apr 2015 12:32:35 +0200

2015-04-03 12:05 GMT+02:00 Andrew Bernard <address@hidden>:
> Are you sure?
>
> This gives a cascade of errors:
>
> \version "2.19.17"
>
> t = \tuplet
>
> \relative c'' {
>   \t 3/2 { c c c }
> }
>
>
> Andrew
>
>
>
> On 3 April 2015 at 19:27:33, guoguocuozuoduo (address@hidden)
> wrote:
>
> Yes, simply write
> t = \tuplet
> at the beginning of your file.
>
>
> 在 2015年4月3日,16:26,Andrew Bernard <address@hidden> 写道:
>
> Can I make a simple abbreviation for input? For example \t instead of
> \tuplet?
>
> Andrew
>
> [I am happy to take the dumb question of the year award for this!]


I think you have to rewrite it.

t = #(ly:make-music-function
       (ly:music-function-signature tuplet)
       (ly:music-function-extract tuplet))

%% or:

t =
#(define-music-function (parser location ratio tuplet-span music)
   (fraction? (ly:duration? '()) ly:music?)
#{ \tuplet $frac $tuplet-span $mus #})


HTH,
  Harm



reply via email to

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