[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Constructive Criticism and a Question
From: |
Erik Sandberg |
Subject: |
Re: Constructive Criticism and a Question |
Date: |
Wed, 27 Dec 2006 14:14:33 +0100 |
User-agent: |
KMail/1.9.5 |
On Monday 25 December 2006 07:05, Joe Neeman wrote:
> On 12/21/06, Han-Wen Nienhuys <address@hidden> wrote:
> > Erik Sandberg escreveu:
> > > BTW, in this case it may be good to register the fraction as its own
> >
> > argument
> >
> > > type, so \tuplets and \tuplet are generic music functions, both with
> > > signature
> > > (tuplet-fraction? music?)
> >
> > it would be cool if we could pull this off, that would make \time generic
> > too.
>
> Could you make 3:2 equivalent to #'(3 . 2)? Then
> - you don't need to introduce a new type
> - we could use x:y everywhere instead of the scary (it certainly was for
> me when I first started with lilypond) #'(x . y)
With the current way the parser works, you'd probably be able to do something
like #(ly:export '(x . y)); of course we can add a define-music-function
style synonym on top of that, like #(make-fraction x y)
BTW, I have some ideas to change the way SCM expressions work in the parser;
unfortunately I haven't had the time to code lilypond for a very long time
though, and other things are of higher priority. My idea is that the
detection of types after ly:export should be carried out by the parser rather
than lexer; this would allow a more intuitive behaviour of music macros the
day they are implemented (it would be possible to delay the evaluation of
inline SCM expressions)
--
Erik
- Re: Constructive Criticism and a Question, (continued)
- Re: Constructive Criticism and a Question, Werner LEMBERG, 2006/12/19
- Re: Constructive Criticism and a Question, Graham Percival, 2006/12/20
- Re: Constructive Criticism and a Question, Erik Sandberg, 2006/12/21
- Re: Constructive Criticism and a Question, Mats Bengtsson, 2006/12/21
- Re: Constructive Criticism and a Question, Mats Bengtsson, 2006/12/21
- Re: Constructive Criticism and a Question, Han-Wen Nienhuys, 2006/12/21
- Re: Constructive Criticism and a Question, Erik Sandberg, 2006/12/21
- Re: Constructive Criticism and a Question, Han-Wen Nienhuys, 2006/12/21
- Re: Constructive Criticism and a Question, Erik Sandberg, 2006/12/21
- Re: Constructive Criticism and a Question, Joe Neeman, 2006/12/25
- Re: Constructive Criticism and a Question,
Erik Sandberg <=
- Re: Constructive Criticism and a Question, Han-Wen Nienhuys, 2006/12/19
- Re: Constructive Criticism and a Question, Werner LEMBERG, 2006/12/19
- Re: Constructive Criticism and a Question, Eyolf Ostrem, 2006/12/19
- Re: Constructive Criticism and a Question, Paul Scott, 2006/12/19
- Re: Constructive Criticism and a Question, Frédéric Chiasson, 2006/12/19
- Re: Constructive Criticism and a Question, Erik Sandberg, 2006/12/19
- Message not available
- Fwd: Constructive Criticism and a Question, Frédéric Chiasson, 2006/12/19
- Re: Constructive Criticism and a Question, Werner LEMBERG, 2006/12/20
- Re: Constructive Criticism and a Question, Karl Hammar, 2006/12/20
- Re: Constructive Criticism and a Question, Paul Scott, 2006/12/20