On 20 October 2011 20:07, MING TSANG <tsan...@rogers.com> 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 <x.sche...@gmail.com>

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

Reply via email to