[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: \times 2/3{ }
From: |
Xavier Scheuer |
Subject: |
Re: \times 2/3{ } |
Date: |
Thu, 20 Oct 2011 20:27:56 +0200 |
On 20 October 2011 20:07, MING TSANG <address@hidden> wrote:
> Hi, lily users:
> I am coding a score (57 bars) which contains 100+ "\times 2/3{ }" in the
> left hand piano . I try to code 'tm = \times 2/3' then use it as '\tm{c8 d8
> c8}' and this isn't working.
> Is there any other way to shorten '\times 2/3{ }' construct so that I don't
> need to type '\times 2/3' 100+ times?
Hi,
You must use a music function.
See LSR #328 "Shorthand for triplets" :
http://lsr.dsi.unimi.it/LSR/Item?id=328
tm = #(define-music-function (parser location music) (ly:music?)
#{ \times 2/3 $music #})
{
\tm { c8 d c }
}
Cheers,
Xavier
--
Xavier Scheuer <address@hidden>