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

Issue 3248042: [Patch] Add support for tempo ranges (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 5 months ago by Valentin Villenave
Modified:
13 years, 4 months ago
Reviewers:
carl.d.sorensen, Neil Puttock, Reinhold
CC:
lilypond-devel_gnu.org
Visibility:
Public.

Description

Add support for tempo ranges This patch set - extends the parser to accept the following syntax: \tempo numA ~ numB - creates a 'tempoUnitRange property (a pair of numbers) - sets 'tempoUnitCount accordingly by averaging the two numbers whenever appropriate - modifies the metronome engraver to return the range pair instead of the number when appropriate - adapts the format-metronome-markup translation function to print the tempo range properly - adds a metronome-range.ly regtest.

Patch Set 1 #

Patch Set 2 : Don't add a new property, use tempoUnitCount instead #

Total comments: 1

Patch Set 3 : A more lax number-or-pair definition #

Patch Set 4 : Oh, and update doc-string. (Thanks Neil!) #

Patch Set 5 : Use 'count instead of 'count-or-range. #

Total comments: 2

Patch Set 6 : A more elegant def. of count-markup (thx Reinhold) #

Patch Set 7 : Regtest coding style, and display-music method update #

Unified diffs Side-by-side diffs Delta from patch set Stats (+78 lines, -25 lines) Patch
A input/regression/metronome-range.ly View 1 2 3 4 5 6 1 chunk +15 lines, -0 lines 0 comments Download
M lily/metronome-engraver.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M lily/parser.yy View 1 4 chunks +16 lines, -7 lines 0 comments Download
scm/c++.scm View 2 1 chunk +3 lines, -0 lines 0 comments Download
scm/define-context-properties.scm View 1 1 chunk +1 line, -1 line 0 comments Download
scm/define-music-display-methods.scm View 1 chunk +5 lines, -1 line 0 comments Download
scm/lily.scm View 2 3 1 chunk +1 line, -0 lines 0 comments Download
scm/ly-syntax-constructors.scm View 1 1 chunk +16 lines, -12 lines 0 comments Download
scm/song.scm View 1 chunk +5 lines, -1 line 0 comments Download
scm/translation-functions.scm View 1 2 3 4 5 1 chunk +15 lines, -2 lines 0 comments Download

Messages

Total messages: 19
Valentin Villenave
Greetings everybody, here's a patch to add the ability to enter tempo indications as number ...
13 years, 5 months ago (2010-11-22 16:54:03 UTC) #1
Carl
Valentin, When the side-by-side diffs don't work, we can't publish comments on the files. There's ...
13 years, 5 months ago (2010-11-22 17:54:18 UTC) #2
Valentin Villenave
On 2010/11/22 17:54:18, Carl wrote: > Valentin, > > When the side-by-side diffs don't work, ...
13 years, 5 months ago (2010-11-22 18:05:57 UTC) #3
Reinhold
In scm/translation-functions.scm: Why do you define two different variables count-markup and range-markup here, one of ...
13 years, 5 months ago (2010-11-22 18:51:55 UTC) #4
Valentin Villenave
On 2010/11/22 18:51:55, Reinhold wrote: > In scm/translation-functions.scm: > Why do you define two different ...
13 years, 5 months ago (2010-11-22 20:21:26 UTC) #5
Neil Puttock
Hi Valentin, This generally looks fine (even if it runs a cart and horses through ...
13 years, 5 months ago (2010-11-24 00:28:37 UTC) #6
Carl
On 2010/11/24 00:28:37, Neil Puttock wrote: > The only thing I'm concerned about is the ...
13 years, 5 months ago (2010-11-24 01:16:46 UTC) #7
Neil Puttock
On 2010/11/24 01:16:46, Carl wrote: > I think this number-or-pair? would be sufficient for this ...
13 years, 5 months ago (2010-11-25 00:10:01 UTC) #8
Valentin Villenave
On 2010/11/25 00:10:01, Neil Puttock wrote: > That sounds OK to me. Here's a new ...
13 years, 5 months ago (2010-11-25 11:42:40 UTC) #9
Carl
On 2010/11/25 11:42:40, Valentin Villenave wrote: > On 2010/11/25 00:10:01, Neil Puttock wrote: > > ...
13 years, 5 months ago (2010-11-25 15:24:34 UTC) #10
Neil Puttock
On 2010/11/25 11:42:40, Valentin Villenave wrote: > Here's a new patch set; I've only changed ...
13 years, 5 months ago (2010-11-25 22:20:17 UTC) #11
Valentin Villenave
On 2010/11/22 18:51:55, Reinhold wrote: > Why do you define two different variables count-markup and ...
13 years, 5 months ago (2010-11-25 23:10:49 UTC) #12
Neil Puttock
On 2010/11/25 23:10:49, Valentin Villenave wrote: > On 2010/11/22 18:51:55, Reinhold wrote: > > Why ...
13 years, 5 months ago (2010-11-26 00:17:11 UTC) #13
Neil Puttock
http://codereview.appspot.com/3248042/diff/23001/input/regression/metronome-range.ly File input/regression/metronome-range.ly (right): http://codereview.appspot.com/3248042/diff/23001/input/regression/metronome-range.ly#newcode3 input/regression/metronome-range.ly:3: \header{ \header { http://codereview.appspot.com/3248042/diff/23001/input/regression/metronome-range.ly#newcode4 input/regression/metronome-range.ly:4: texidoc=" texidoc = "
13 years, 5 months ago (2010-11-26 00:17:43 UTC) #14
Valentin Villenave
On 2010/11/26 00:17:43, Neil Puttock wrote: > texidoc = " Indeed. I just pasted it ...
13 years, 5 months ago (2010-11-26 00:30:39 UTC) #15
Neil Puttock
On 2010/11/26 00:30:39, Valentin Villenave wrote: > Here's a suitable display-lily-music method. Great, but don't ...
13 years, 5 months ago (2010-11-26 23:51:27 UTC) #16
Valentin Villenave
On 2010/11/26 23:51:27, Neil Puttock wrote: > Great, but don't forget to do the same ...
13 years, 5 months ago (2010-11-27 00:04:59 UTC) #17
Neil Puttock
On 2010/11/27 00:04:59, Valentin Villenave wrote: > I haven't really had a look at your ...
13 years, 5 months ago (2010-11-27 00:43:23 UTC) #18
Valentin Villenave
13 years, 4 months ago (2010-11-30 20:41:46 UTC) #19
On 2010/11/27 00:43:23, Neil Puttock wrote:
> it's been
> reviewed thoroughly (I hope :), so go ahead and push.

Hi Neil, greetings everybody,
I've pushed this patch, so hopefully nothing will get broken. It is undocumented
as of yet, but I'll wait for Neil to complete his own work so that I can
possibly take this into account when writing the relevant documentation.

One caveat though: the display-lily regtest now outputs an unequal-thingy
because of the \tempo "blah" command that I added, upon Neil's suggestion:
Test 90 unequal: . 
in  = \tempo "Andante"
out = { \unset Score . tempoUnitDuration
  \unset Score . tempoUnitCount
  \set Score . tempoText = #"Andante"
  }
Then again, I'm pretty sure Neil's future patch will address this, so I'm not
too restless about it :-)

Cheers,
Valentin.
Sign in to reply to this message.

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