Hi Michael,

> Hi,
> 
> we can leave out a lot of note information and Lilypond will inherit it
> from the prior note.
> 
> But this will not work, it's a bit of a trap:
> | c4. d.
> 
> I.e., Lilypond doesn't assume "d4."
> 
> I guess it's not possible to make the parser understand this?
> 
> Just curious, thx
> 
> Michael

theoretically yes, but really what would be the use case? 4 and 4. is parsed as 
duration c, d is parsed as pitch infering c4 d (duration) or c4 8 (pitch) works 
because the parser never looks at "c4" as one thing, but it reads "c", says: 
"this is a pitch", sees "4", says "this is a duration" and creates a note with 
said pitch and duration.

For c4 d. to work the parser would now need to parse dotting as its own thing. 
This will make the parser much more complicated. A duration is currently 
strictly of the form [power of two][optionally any number of dots][optionally a 
factor]. If we omit the necessity of the power of two and infer it from 
previous notes this will mean the parser would need to consider any dot it 
sees as potential duration.

Also this will induce weird questions. Like c4*2/3 d. -> do we then have d4. or 
d4.*2/3? Also this notation could only change to a positive dot count, not to 
undotted.

Finally — what actual advantage does this bring? There are many cases in music 
where the next note has the same duration as the current one, and some cases of 
same pitch. But it is quite uncommon in music to switch from undotted to dotted 
or from dotted to differently dotted.

So I presume the the advantage in notation effort is far too little to warrant 
the massive complication of the parser this would bring.

Much more common IMO is unequal spacing, where instead of c8 d e f we have c8. 
d16 e8. f16.

Here I guess it would be useful to have sort of syntax where we could notate 
this as say

c8 > d e > f

or smothing, and the parser would automatically dot the c and the e and half 
the d and the f. But this is quite hard, since Lilypond uses most common 
keyboard characters already for syntax. Also it can be done quite decently by 
a music function anyway.

Cheers,
Tina


Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to