lilypond-devel
[Top][All Lists]
Advanced

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

Re: [talk] easy tuplets


From: David Kastrup
Subject: Re: [talk] easy tuplets
Date: Thu, 27 Sep 2012 09:41:29 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux)

"Keith OHara" <address@hidden> writes:

> On Mon, 24 Sep 2012 15:51:43 -0700, Francisco Vila
> <address@hidden> wrote:
>
>> 2012/9/24 Janek Warchoł <address@hidden>:
>>> Seriously though, i think this syntax would be very useful for
>>> algorithmic composers and computer programs manipulating Lily code.
>>> Another advantage is code readability and ease of copying it (shall i
>>> elaborate?)
>>>
>>> Besides, it's not like we would loose any functionality: \times would
>>> still be there.
>>
>> This convinces me. I'm for it.
>
> I'll be against it.  I make typos of c3 or c5 when I want to type c4

One thing that I find bad about it is that we lose a straightforward
relation between input and output.  Our durations are composed of log2,
dots, and scale factor.

We then get a mushy "duration is the following rational, can I have
tuplet brackets with that somehow?" instead.  Why is there no notation
for \times 2/3 c1 ?

> Let the humans use \tuplet as proposed years ago,
> <http://lists.gnu.org/archive/html/lilypond-user/2006-12/msg00489.html>
> and which is easy to implement (attached) now that David has added the
> infrastructure to write music-functions that take fractions, and
> optional arguments (although I'm not sure if the optional argument is
> wise in this case).

Well, "music argument after left-out optional argument" at the current
point of time means "closed music".  It is likely a safe bet that we
rarely need a single note for a tuplet, so it is not much of a problem,
and I am chugging away at getting the "closed music" thing scrapped, but
that's still a month left at least.

What possibly would make sense as an optional argument would be a
setting for tupletSpannerDuration.  I am not sure about it, though,
since one would usually want the same duration for a number of calls.

While we still have the [talk] tag, we could use the name \tup-let for a
version automatically using baseMoment for tupletSpannerDuration, and
\tuplet for no subdivision.

-- 
David Kastrup




reply via email to

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