Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(15728)

Issue 7058068: Create a \tuplet function to complement \times and tupletSpannerDuration (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 3 months ago by dak
Modified:
11 years, 3 months ago
CC:
lilypond-devel_gnu.org
Visibility:
Public.

Description

Create a \tuplet function to complement \times and tupletSpannerDuration Here is its DOC string: Scale the given @var{music} to tuplets. @var{ratio} is a fraction that specifies how many notes are played in place of the nominal value: it will be @samp{3/2} for triplets, namely three notes being played in place of two. If the optional @var{duration} is specified, it is used for initializing @code{tupletSpannerDuration}. For example, @example \tuplet 3/2 4 { c8 c c c c c } @end example will result in two groups of three tuplets, each group lasting for a quarter note. The value of @code{tupletSpannerDuration} is retained as default if it is set in this manner. Clearing it can be achieved by specifying @samp{1*0} as @var{duration}. Also: Let input/regression/auto-beam-tuplets.ly use \tuplet There has been an extensive discussion about the tuplet project on the developer mailing list. To be honest, I don't remember the details but it would appear that nothing that actually entered LilyPond came of it. So let's get the ball rolling again.

Patch Set 1 #

Patch Set 2 : Fix comment problem #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -2 lines) Patch
M input/regression/auto-beam-tuplets.ly View 1 chunk +1 line, -2 lines 0 comments Download
M ly/music-functions-init.ly View 1 1 chunk +35 lines, -0 lines 3 comments Download

Messages

Total messages: 10
lemzwerg
LGTM.
11 years, 3 months ago (2013-01-10 04:57:14 UTC) #1
Trevor Daniels
LGTM
11 years, 3 months ago (2013-01-10 10:34:06 UTC) #2
dak
Fix comment problem
11 years, 3 months ago (2013-01-10 19:30:47 UTC) #3
benko.pal
good for a start but I have some problems with the duration parameter: 1. { ...
11 years, 3 months ago (2013-01-10 22:21:23 UTC) #4
dak
On 2013/01/10 22:21:23, benko.pal wrote: > good for a start but I have some problems ...
11 years, 3 months ago (2013-01-10 22:40:03 UTC) #5
Trevor Daniels
On 2013/01/10 22:40:03, dak wrote: > No good idea how to work this one reasonably ...
11 years, 3 months ago (2013-01-10 23:40:25 UTC) #6
Ian Hulin (gmail)
Hi David, Thanks for spotting this may get lost. Actually getting this one finished after ...
11 years, 3 months ago (2013-01-11 16:27:24 UTC) #7
Ian Hulin (gmail)
Hi David, Please ignore most of my last post. It looks like you're doing stage ...
11 years, 3 months ago (2013-01-11 16:46:19 UTC) #8
Ian Hulin (gmail)
I don't think \tuplet needs the tupletSpannerDuration property. Do it all in-line using the optional ...
11 years, 3 months ago (2013-01-11 18:28:35 UTC) #9
dak
11 years, 3 months ago (2013-01-11 20:58:11 UTC) #10
Ok, most of this is obsolete due to myself not managing reviews properly.  The
current review for issue 3095 is to be found at
<URL:http://codereview.appspot.com/7094044>.  I am closing this one down. 
Apologies.

On 2013/01/11 18:28:35, Ian Hulin (gmail) wrote:
> I don't think \tuplet needs the tupletSpannerDuration property. Do it all
> in-line using the optional @var{duration} parameter.  (Maybe call this
> spanner-duration). See comments below.

See current patch: tupletSpannerDuration is not touched.  It is only used when
the optional duration argument is not given.  If one wanted to rename the
duration argument, in line with the current proposal it would likely best be
named tuplet-span .

> https://codereview.appspot.com/7058068/diff/4/ly/music-functions-init.ly
> File ly/music-functions-init.ly (right):
> 
>
https://codereview.appspot.com/7058068/diff/4/ly/music-functions-init.ly#newc...
> ly/music-functions-init.ly:1344: being played in place of two.  If the
optional
> @var{duration} is
> If the optional @var{duration} parameter is specified, this is used to have
the
> tuplet use spanner brackets differing from the total length of the music in
the
> tuplet. Typically this could be used to specify a group of subdivisions within
> the tuplet.
> For example,
> 
>
https://codereview.appspot.com/7058068/diff/4/ly/music-functions-init.ly#newc...
> ly/music-functions-init.ly:1351: quarter note.  The value of
> @code{tupletSpannerDuration} is retained
> Cut out these sentences
> "The value of @code{tupletSpannerDuration} is retained as default if it is set
> in this manner. Clearing it can be achieved by specifying @samp{1*0} as
> @var{duration}"

Isn't there in the current version.

>
https://codereview.appspot.com/7058068/diff/4/ly/music-functions-init.ly#newc...
> ly/music-functions-init.ly:1372: 
> Get rid of code doing things to tupletSpannerDuration.  I think this property
> was a kludge they put in because you couldn't code an optional parameter when
> the old \times commands was written.
> Look at the NR example for tupletSpannerDuration:
> 
> {
>   \set tupletSpannerDuration = #(ly:make-moment 1 4)
>   \times 2/3 { c8 c c c c c }
> }
> 
> WDYT?

Well, the last proposal is pretty much already where you wanted it to be.  Check
out the above named Rietveld report, and sorry for starting so many of them. 
One of them was a git-cl problem.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b