Re: Doc: NR Section on Upbeats made clearer (issue 5520056)

2012-01-30 Thread graham

LGTM

http://codereview.appspot.com/5520056/

___
lilypond-devel mailing list
lilypond-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-devel


Re: Doc: NR Section on Upbeats made clearer (issue 5520056)

2012-01-29 Thread pkx166h


http://codereview.appspot.com/5520056/diff/7001/Documentation/notation/rhythms.itely
File Documentation/notation/rhythms.itely (right):

http://codereview.appspot.com/5520056/diff/7001/Documentation/notation/rhythms.itely#newcode1358
Documentation/notation/rhythms.itely:1358: The @var{duration} can also
be any value less than a full measure:
On 2012/01/24 21:38:18, janek wrote:

I think it would be good without that "also".
I think the purpose of the second example is to show that partial can

contain

more than one note.


Correct.

http://codereview.appspot.com/5520056/diff/7001/Documentation/notation/rhythms.itely#newcode1363
Documentation/notation/rhythms.itely:1363: r4 e8 | a4 c8 b c4 |
On 2012/01/24 21:38:18, janek wrote:

it's a bit weird to have 3/4 time sig and 4. partial, consisting of r4

and e8

(3/4 measure doesn't divide in two parts).  but i don't think it's

that

important.


Hmm.. well maybe the music I play in our windband is weird. :0 it seems
to be quite common for different instruments start in different places
in an upbeat.

Anyway I was just trying to show something with a dotted partial value
as an example instead of the '*' construction which I think is more
confusing - at least in a 3/4 construction.

http://codereview.appspot.com/5520056/diff/7001/Documentation/notation/rhythms.itely#newcode1372
Documentation/notation/rhythms.itely:1372: So @code{\partial 8} becomes;
On 2012/01/24 11:21:33, Graham Percival wrote:

grammatically I really think a full colon: is correct here.


Done.

http://codereview.appspot.com/5520056/

___
lilypond-devel mailing list
lilypond-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-devel


Re: Doc: NR Section on Upbeats made clearer (issue 5520056)

2012-01-24 Thread janek . lilypond

mostly LGTM


http://codereview.appspot.com/5520056/diff/7001/Documentation/notation/rhythms.itely
File Documentation/notation/rhythms.itely (right):

http://codereview.appspot.com/5520056/diff/7001/Documentation/notation/rhythms.itely#newcode1358
Documentation/notation/rhythms.itely:1358: The @var{duration} can also
be any value less than a full measure:
I think it would be good without that "also".
I think the purpose of the second example is to show that partial can
contain more than one note.

http://codereview.appspot.com/5520056/diff/7001/Documentation/notation/rhythms.itely#newcode1363
Documentation/notation/rhythms.itely:1363: r4 e8 | a4 c8 b c4 |
it's a bit weird to have 3/4 time sig and 4. partial, consisting of r4
and e8 (3/4 measure doesn't divide in two parts).  but i don't think
it's that important.

http://codereview.appspot.com/5520056/diff/7001/Documentation/notation/rhythms.itely#newcode1372
Documentation/notation/rhythms.itely:1372: So @code{\partial 8} becomes;
On 2012/01/24 11:21:33, Graham Percival wrote:

grammatically I really think a full colon: is correct here.


+1

http://codereview.appspot.com/5520056/

___
lilypond-devel mailing list
lilypond-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-devel


Re: Doc: NR Section on Upbeats made clearer (issue 5520056)

2012-01-24 Thread graham

looks mostly good.


http://codereview.appspot.com/5520056/diff/7001/Documentation/notation/rhythms.itely
File Documentation/notation/rhythms.itely (right):

http://codereview.appspot.com/5520056/diff/7001/Documentation/notation/rhythms.itely#newcode1358
Documentation/notation/rhythms.itely:1358: The @var{duration} can also
be any value less than a full measure:
\partial 8 is already less than a full measure.  What are you trying to
say/show in this second example?

http://codereview.appspot.com/5520056/diff/7001/Documentation/notation/rhythms.itely#newcode1372
Documentation/notation/rhythms.itely:1372: So @code{\partial 8} becomes;
grammatically I really think a full colon: is correct here.

http://codereview.appspot.com/5520056/

___
lilypond-devel mailing list
lilypond-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-devel


Re: Doc: NR Section on Upbeats made clearer (issue 5520056)

2012-01-24 Thread pkx166h


http://codereview.appspot.com/5520056/diff/1/Documentation/notation/rhythms.itely
File Documentation/notation/rhythms.itely (right):

http://codereview.appspot.com/5520056/diff/1/Documentation/notation/rhythms.itely#newcode1350
Documentation/notation/rhythms.itely:1350: partial measure @emph{before}
the start of the next full measure.
On 2012/01/10 22:23:29, janek wrote:

What about
"where @code{@var{duration}} is the duration that will be added before

the first

measure.  In other words, it is the @emph{remaining} length of the

partial

measure @emph{before} the start of the first full measure."
?


Because partials can occur in any part of the score. So saying 'first'
measure is not correct. It could be the 200th measure. I know we say
don't use \partials in the beginning of a piece but we can and they work
and if I have different \score constructs in my score it still might not
be the 'first' measure. So we need to be boringly, technically accurate.

Also if you have to write 'in other words' in a document then you
probably haven't articulated clearly enough what you should have said in
the first place.

http://codereview.appspot.com/5520056/diff/1/Documentation/notation/rhythms.itely#newcode1353
Documentation/notation/rhythms.itely:1353: \time 6/8
On 2012/01/09 05:08:58, Graham Percival wrote:

huh?!  why is this easier to understand than \partial 4 ?


This specific example no, but because I had changed the first example
and wanted to keep it the same throughout... anyway I have changed the
time sig so it makes more sense (I think).

http://codereview.appspot.com/5520056/diff/1/Documentation/notation/rhythms.itely#newcode1355
Documentation/notation/rhythms.itely:1355: e8 | a4 c8 b[ c b] |
On 2012/01/09 05:08:58, Graham Percival wrote:

what on earth does manual beaming have to do with a \partial?  How

does that

improve this example?


Done.

http://codereview.appspot.com/5520056/diff/1/Documentation/notation/rhythms.itely#newcode1358
Documentation/notation/rhythms.itely:1358: The partial @var{duration}
can be any value less than a full measure:
On 2012/01/10 22:23:29, janek wrote:

I'm not sure about "partial duration" thing.



But i like the "value" part.


Reworded slightly.

http://codereview.appspot.com/5520056/diff/1/Documentation/notation/rhythms.itely#newcode1358
Documentation/notation/rhythms.itely:1358: The partial @var{duration}
can be any value less than a full measure:
On 2012/01/10 22:23:29, janek wrote:

I'm not sure about "partial duration" thing.



But i like the "value" part.


changed this slightly.

http://codereview.appspot.com/5520056/diff/1/Documentation/notation/rhythms.itely#newcode1363
Documentation/notation/rhythms.itely:1363: r4 e8 | a4 c8 b[ c b] |
On 2012/01/10 22:23:29, janek wrote:

i think original example was better because it showed use of 8*3

construct.

I disagree. We can show that construct elsewhere, that has nothing to do
with partials. I wanted to remove that mutiplyer from the examples (just
because was can do it doesn't always mean we should do it).

Maybe 6/8 time is a time sig to use in this case.

If I were using 3/4 and wanted a whole note in my partial I would use 4
not 8*2 - heck I could use 16*4 and still be right.

http://codereview.appspot.com/5520056/diff/1/Documentation/notation/rhythms.itely#newcode1366
Documentation/notation/rhythms.itely:1366: The @code{\partial
@var{duration}} can also be written as;
On 2012/01/09 12:58:58, Neil Puttock wrote:

On 2012/01/09 05:08:58, Graham Percival wrote:
> if this was true, then surely there would be no difference between

\partial

and
> \set blah  after the piece had begun.  However, the @knownissues

claims that

you
> should only use \partial in the beginning.



It's almost the same.  The main difference is that \partial uses an

iterator to

set measurePosition.  It ensures grace notes don't mess up the timing

(which can

affect beaming) and allows \displayMusic to pick up the correct

duration.

Well I have asked on this tracker issue why we use

\set Timing.measurePosition -@var{duration}

as an example here because we never actually use it literally.

#(ly:make-moment -1 4) != -duration

#(ly:make-moment -1 4) == #(ly:make-moment {var1} {var2})
where var1 is etc. etc.

Hence why I asked if this is the only construct we can use for \set
Timing.measurePosition (at least in this case) in which case we can
remove this whole para and just leave the @knownissue.

http://codereview.appspot.com/5520056/

___
lilypond-devel mailing list
lilypond-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-devel


Re: Doc: NR Section on Upbeats made clearer (issue 5520056)

2012-01-10 Thread janek . lilypond


http://codereview.appspot.com/5520056/diff/1/Documentation/notation/rhythms.itely
File Documentation/notation/rhythms.itely (right):

http://codereview.appspot.com/5520056/diff/1/Documentation/notation/rhythms.itely#newcode1350
Documentation/notation/rhythms.itely:1350: partial measure @emph{before}
the start of the next full measure.
What about
"where @code{@var{duration}} is the duration that will be added before
the first measure.  In other words, it is the @emph{remaining} length of
the partial measure @emph{before} the start of the first full measure."
?

http://codereview.appspot.com/5520056/diff/1/Documentation/notation/rhythms.itely#newcode1353
Documentation/notation/rhythms.itely:1353: \time 6/8
On 2012/01/09 05:08:58, Graham Percival wrote:

huh?!  why is this easier to understand than \partial 4 ?


+1

http://codereview.appspot.com/5520056/diff/1/Documentation/notation/rhythms.itely#newcode1355
Documentation/notation/rhythms.itely:1355: e8 | a4 c8 b[ c b] |
On 2012/01/09 05:08:58, Graham Percival wrote:

what on earth does manual beaming have to do with a \partial?  How

does that

improve this example?


+1

http://codereview.appspot.com/5520056/diff/1/Documentation/notation/rhythms.itely#newcode1358
Documentation/notation/rhythms.itely:1358: The partial @var{duration}
can be any value less than a full measure:
I'm not sure about "partial duration" thing.

But i like the "value" part.

http://codereview.appspot.com/5520056/diff/1/Documentation/notation/rhythms.itely#newcode1363
Documentation/notation/rhythms.itely:1363: r4 e8 | a4 c8 b[ c b] |
i think original example was better because it showed use of 8*3
construct.

http://codereview.appspot.com/5520056/

___
lilypond-devel mailing list
lilypond-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-devel


Re: Doc: NR Section on Upbeats made clearer (issue 5520056)

2012-01-09 Thread n . puttock

Note that this is misleading:

\relative c' {
  \partial 4
  c4
  \applyContext #(lambda (ctx)
   (newline)
   (display (ly:context-current-moment ctx)))
  c1
}

-> #

The Rational class doesn't display negative rationals unless they're
infinite.




http://codereview.appspot.com/5520056/

___
lilypond-devel mailing list
lilypond-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-devel


Re: Doc: NR Section on Upbeats made clearer (issue 5520056)

2012-01-09 Thread n . puttock

On 2012/01/09 12:58:58, Neil Puttock wrote:

http://codereview.appspot.com/5520056/diff/1/Documentation/notation/rhythms.itely

File Documentation/notation/rhythms.itely (right):



http://codereview.appspot.com/5520056/diff/1/Documentation/notation/rhythms.itely#newcode1366

Documentation/notation/rhythms.itely:1366: The @code{\partial

@var{duration}}

can also be written as;
On 2012/01/09 05:08:58, Graham Percival wrote:
> if this was true, then surely there would be no difference between

\partial

and
> \set blah  after the piece had begun.  However, the @knownissues

claims that

you
> should only use \partial in the beginning.



It's almost the same.  The main difference is that \partial uses an

iterator to

set measurePosition.  It ensures grace notes don't mess up the timing

(which can

affect beaming) and allows \displayMusic to pick up the correct

duration.

I mean \displayLilyMusic of course.

http://codereview.appspot.com/5520056/

___
lilypond-devel mailing list
lilypond-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-devel


Re: Doc: NR Section on Upbeats made clearer (issue 5520056)

2012-01-09 Thread n . puttock


http://codereview.appspot.com/5520056/diff/1/Documentation/notation/rhythms.itely
File Documentation/notation/rhythms.itely (right):

http://codereview.appspot.com/5520056/diff/1/Documentation/notation/rhythms.itely#newcode1366
Documentation/notation/rhythms.itely:1366: The @code{\partial
@var{duration}} can also be written as;
On 2012/01/09 05:08:58, Graham Percival wrote:

if this was true, then surely there would be no difference between

\partial and

\set blah  after the piece had begun.  However, the @knownissues

claims that you

should only use \partial in the beginning.


It's almost the same.  The main difference is that \partial uses an
iterator to set measurePosition.  It ensures grace notes don't mess up
the timing (which can affect beaming) and allows \displayMusic to pick
up the correct duration.

http://codereview.appspot.com/5520056/

___
lilypond-devel mailing list
lilypond-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-devel


Re: Doc: NR Section on Upbeats made clearer (issue 5520056)

2012-01-08 Thread graham

I like some of the changes here, but I have serious doubts about others.


http://codereview.appspot.com/5520056/diff/1/Documentation/notation/rhythms.itely
File Documentation/notation/rhythms.itely (right):

http://codereview.appspot.com/5520056/diff/1/Documentation/notation/rhythms.itely#newcode1353
Documentation/notation/rhythms.itely:1353: \time 6/8
huh?!  why is this easier to understand than \partial 4 ?

http://codereview.appspot.com/5520056/diff/1/Documentation/notation/rhythms.itely#newcode1355
Documentation/notation/rhythms.itely:1355: e8 | a4 c8 b[ c b] |
what on earth does manual beaming have to do with a \partial?  How does
that improve this example?

http://codereview.appspot.com/5520056/diff/1/Documentation/notation/rhythms.itely#newcode1366
Documentation/notation/rhythms.itely:1366: The @code{\partial
@var{duration}} can also be written as;
if this was true, then surely there would be no difference between
\partial and \set blah  after the piece had begun.  However, the
@knownissues claims that you should only use \partial in the beginning.

I think in this case the original material was slightly less misleading.

http://codereview.appspot.com/5520056/

___
lilypond-devel mailing list
lilypond-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-devel


Doc: NR Section on Upbeats made clearer (issue 5520056)

2012-01-06 Thread pkx166h

Reviewers: ,

Message:
I'm not convinced knowing more than I did back when I originally edited
this part of the doc (it was one of my first patches i ever did so I was
taking advice from others).

--snip from NR --

The property measurePosition contains a rational number
indicating how much of the measure has passed at this point.  Note that
this is set to a negative number by the \partial command: i.e., \partial
4 is internally translated to -4 ...

--snip--

well while

\partial 4 is the equivalent to

\set Timing.measurePosition = #(ly:make-moment -1 4) or

\set Timing.measurePosition = #(ly:make-moment -2 8)

\set Timing.measurePosition = #(ly:make-moment -4)

does not work.

Also the explanation of using \set Timing.measurePosition is described
as

--snip--

\set Timing.measurePosition -duration

--snip--

which is very different from

\set Timing.measurePosition = #(ly:make-moment X X)

and implies that there are other values that I could use instead of
#(ly:make-moment ... ).

Are we talking through the code here or could we put in another example
to help the more adept at the internals?



Description:
Doc: NR Section on Upbeats made clearer

Tracker issue 2189

Created simpler and clearer @lilypond examples.

Used a less complex, more obvious value for \set Timing.measure position
examples and added a specific example after the @knownissue to show
\partial and \set Timing.. being used together (at the beginning and
after the beginning) to help reinforce the point.

Minor cindex changes and linebreak edits as per the CG

Please review this at http://codereview.appspot.com/5520056/

Affected files:
  M Documentation/notation/rhythms.itely


Index: Documentation/notation/rhythms.itely
diff --git a/Documentation/notation/rhythms.itely  
b/Documentation/notation/rhythms.itely
index  
5719c73ea7e0eca3c1a02cefc77aeff049756ce3..929bfecee2c06f1a6cceabcdd87baff5fda1e257  
100644

--- a/Documentation/notation/rhythms.itely
+++ b/Documentation/notation/rhythms.itely
@@ -1331,54 +1331,57 @@ Internals Reference:
 @cindex upbeat
 @cindex partial measure
 @cindex measure, partial
+@cindex measure, pickup
 @cindex pickup measure
-@cindex measure, change length

 @funindex measurePosition
 @funindex \partial
 @funindex partial

-Partial or pick-up measures, such as an anacrusis or upbeat, are
-entered using the @code{\partial} command, with the syntax
+Partial or pick-up measures, such as an @emph{anacrusis} or an
+@emph{upbeat}, are entered using the @code{\partial} command,

 @example
 \partial @var{duration}
 @end example

 @noindent
-where @code{@var{duration}} is the rhythmic length of the
-remaining interval of the current measure before the start of the
-next.
+where @code{@var{duration}} is the @emph{remaining} length of the
+partial measure @emph{before} the start of the next full measure.

-@lilypond[quote,verbatim,relative=2]
-\partial 4 e4 |
-a2. c,4 |
+@lilypond[quote,verbatim,relative=1]
+\time 6/8
+\partial 8
+e8 | a4 c8 b[ c b] |
 @end lilypond

-The partial measure can be any duration less than the full measure:
+The partial @var{duration} can be any value less than a full measure:

-@lilypond[quote,verbatim,relative=2]
-\partial 8*3 c8 d e |
-a2. c,4 |
+@lilypond[quote,verbatim,relative=1]
+\time 6/8
+\partial 4.
+r4 e8 | a4 c8 b[ c b] |
 @end lilypond

-Internally, @code{\partial @var{duration}} is translated into:
+The @code{\partial @var{duration}} can also be written as;

 @example
 \set Timing.measurePosition -@var{duration}
 @end example

-For example, @code{\partial 8*3} becomes:
+So @code{\partial 8} becomes;

-@example
-\set Timing.measurePosition = #(ly:make-moment -3 8)
-@end example
+@lilypond[quote,verbatim,relative=1]
+\time 6/8
+\set Timing.measurePosition = #(ly:make-moment -1 8)
+e8 | a4 c8 b[ c b] |
+@end lilypond

 The property @code{measurePosition} contains a rational number
 indicating how much of the measure has passed at this point.  Note
 that this is set to a negative number by the @code{\partial} command:
-i.e., @code{\partial 4} is internally translated to @w{@code{-4}}, meaning
-@qq{there is a quarter note left in the measure.}
+i.e., @code{\partial 4} is internally translated to @w{@code{-4}},
+meaning @qq{there is a quarter note left in the measure.}

 @seealso
 Music Glossary:
@@ -1394,11 +1397,17 @@ Internal Reference:
 @rinternals{Timing_translator}.

 @knownissues
+The @code{\partial} command should be used only at the beginning of a
+piece.  If you use it after the beginning, warnings or problems may
+occur, so use @code{\set Timing.measurePosition} instead.

-The @code{\partial} command is intended to be used only at the
-beginning of a piece.  If you use it after the beginning, some
-odd warnings or effects may occur, in this case use
-@code{\set Timing.measurePosition} instead.
+@lilypond[quote,verbatim,relative=1]
+\time 6/8
+\partial 8
+e8 | a4 c8 b[ c b] |
+\set Timing.measurePosition = #(ly:make-moment -1 4)
+r8 e,8 | a4 c8 b[ c b] |
+@end lilypond

 @no