[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Using identifiers for triplets
From: |
Mats Bengtsson |
Subject: |
Re: Using identifiers for triplets |
Date: |
Tue, 27 Mar 2007 09:14:23 +0200 |
User-agent: |
Thunderbird 1.5.0.10 (X11/20070221) |
That's a straightforward application of section "12.1.2 Simple
substitution functions":
\version "2.10.0"
trip = #(define-music-function (parser location music) (ly:music?)
#{ \times 2/3 $music #})
/Mats
Anders Nelstrom wrote:
Is it possible to create an identifier to save typing when triplets
are required? For example, instead of typing:
\times 2/3 { c8 e g } \times 2/3 { c g e } c
it would be great to use:
\trip { c8 e g } \trip { c g e } c4
or such like.
I appreciate that the \times command is flexible, and I have used it
occasionally to represent septuplets, and other oddities, but it feels
like an awful lot of typing for the common triplet!
_______________________________________________
lilypond-user mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/lilypond-user
--
=============================================
Mats Bengtsson
Signal Processing
Signals, Sensors and Systems
Royal Institute of Technology
SE-100 44 STOCKHOLM
Sweden
Phone: (+46) 8 790 8463
Fax: (+46) 8 790 7260
Email: address@hidden
WWW: http://www.s3.kth.se/~mabe
=============================================