[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Review music functions with pitch and duration arguments (was: Music fun
From: |
David Kastrup |
Subject: |
Review music functions with pitch and duration arguments (was: Music functions with pitch and duration arguments) |
Date: |
Sat, 23 Jul 2011 00:22:40 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
David Kastrup <address@hidden> writes:
> Han-Wen Nienhuys <address@hidden> writes:
>
>> Ah, I forgot. LGTM then.
>
> I'll try fudging up documentation for it,
Frankly, music function docs are awful. I've polished them up somewhat
with the new info. The result is not really satisfactory but better
than before.
> and I'll check the perspectives for minimizing the combinations of
> duration and music arguments that are not either accepted or flagged
> with a proper error message rather than a generic syntax error.
Looks pretty good now with regard to accepting stuff as long as a music
argument is not followed by a duration argument. If it is, the current
reaction is still a syntax error. Not all too pretty, but not a
regression either.
> With regard to merging: this is an incompatible change since arguments
> of type ly:pitch? or ly:duration? previously asked for Scheme arguments
> like
> #(ly:make-pitch ... or #(ly:make-duration
>
> The Lilypond codebase does not contain such music function arguments I
> think. It should actually work to convert them to
> #(ly:export (ly:make-pitch ...
> so there is a straightforward (but more likely than not untowardly
> awkward) migration path.
>
> Apart from this change in semantics, this should not cause
> regressions.
I put the current state up on Rietveld at
<URL:http://codereview.appspot.com/4811047>
I don't have a usage example to go with the patch though. If somebody
has something nice to offer...
--
David Kastrup
- Re: Creates a glissando stem grob that uses stems' functionality. (issue4777044), (continued)
Re: Creates a glissando stem grob that uses stems' functionality. (issue4777044), n . puttock, 2011/07/20
- Re: Creates a glissando stem grob that uses stems' functionality. (issue4777044), address@hidden, 2011/07/20
- Music functions with pitch and duration arguments (was: Creates a glissando stem grob that uses stems' functionality. (issue4777044)), David Kastrup, 2011/07/21
- Re: Music functions with pitch and duration arguments (was: Creates a glissando stem grob that uses stems' functionality. (issue4777044)), Han-Wen Nienhuys, 2011/07/21
- Re: Music functions with pitch and duration arguments, David Kastrup, 2011/07/22
- Re: Music functions with pitch and duration arguments, Han-Wen Nienhuys, 2011/07/22
- Re: Music functions with pitch and duration arguments, David Kastrup, 2011/07/22
- Review music functions with pitch and duration arguments (was: Music functions with pitch and duration arguments),
David Kastrup <=
- Re: Review music functions with pitch and duration arguments, David Kastrup, 2011/07/23
- Re: Review music functions with pitch and duration arguments, David Kastrup, 2011/07/24
- RE: Review music functions with pitch and duration arguments, James Lowe, 2011/07/24
- Re: Review music functions with pitch and duration arguments, David Kastrup, 2011/07/24
- Re: Review music functions with pitch and duration arguments, Valentin Villenave, 2011/07/24
- Re: Review music functions with pitch and duration arguments, Werner LEMBERG, 2011/07/24
- Re: Review music functions with pitch and duration arguments, David Kastrup, 2011/07/24
- RE: Review music functions with pitch and duration arguments, James Lowe, 2011/07/24