You get it for free:
triplet = #(define-music-function (parser location music) (ly:music?)
#{ \times 2/3 $music #})
/Mats
Valentin Villenave wrote:
Hi everybody,
for years I've been looking for missing features to be sponsored, or
any other way I could support LilyPond besides using it and talking
about it everywhere I go to everybody I see...
The recent discussion about the "\times" function gave me an idea I
already exposed here. Let me just synthesize it one more time:
Here's the point : for beginners or guys like me who write very,
_very_ simple rhythms, typing "\times 2/3" each time you want to input
something as trivial as a triplet is still a bit complicated (well,
you can think I'm lazy, but every software has to deal with lazy
users, hasn't it).
2007/1/18, Erik Sandberg <[EMAIL PROTECTED]>:
it's easy to write a separate function
\triplet {f8 g a}
for this purpose.
(IMHO, this would be a useful addition to the standard lily
distribution)
This would indeed be a very much valuable addition. No matter how easy
it would be to do it, do you "non-lazy" guys think it would be worth
adding it?
_Or_ there is still my original idea, which was to keep the single
\times function, but to give the user the ability to not specify any
tuplet argument:
"If you do not specify a tuplet argument, the argument last entered is
used for the next tuplet. The argument of the first tuplet in input
defaults to 2/3."
Maybe you'll think it would just make things more complicated. Anyway,
I'd be glad to sponsor either of those two choices, if this can help.
Regards,
Valentin Villenave
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
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: [EMAIL PROTECTED]
WWW: http://www.s3.kth.se/~mabe
=============================================
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user