[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: music function refactoring
From: |
Erik Sandberg |
Subject: |
Re: music function refactoring |
Date: |
Wed, 1 Feb 2006 14:12:53 +0100 |
User-agent: |
KMail/1.8.3 |
On Wednesday 01 February 2006 13.43, Han-Wen Nienhuys wrote:
> Erik Sandberg wrote:
> > I have a feeling that \relative hacks is something very relevant (I
> > believe that shorthands such as the \interpolate{} thing can be very
> > valuable in the hands of an experienced lily user). The important thing
> > is that \relative should recurse into the parameters, not the return
> > value, of a function.
>
> the problem I have with this is that every other construct (eg. \times,
> \transpose) works directly. We can have "delayed" evaluation of music
> functions, but then every other construct needs to be done lazily too.
>
> Can you see a way to achieve that?
Yes, just represent those commands as music functions internally. E.g.,
\transpose creates a MusicFunction expression, with a list of two pitches and
one Music as its 'elements (or 'arguments, I haven't decided yet), and
'to-music-callback is set to ly:music-transpose (or rather, to a wrapper
around that function).
--
Erik
- Re: music function refactoring, Erik Sandberg, 2006/02/01
- Re: music function refactoring, Han-Wen Nienhuys, 2006/02/01
- Re: music function refactoring,
Erik Sandberg <=
- music macros?, Han-Wen Nienhuys, 2006/02/01
- Re: music macros?, Erik Sandberg, 2006/02/02
- Re: music macros?, Nicolas Sceaux, 2006/02/03
- Re: music macros?, Erik Sandberg, 2006/02/03
- Re: music macros?, Nicolas Sceaux, 2006/02/04
- Re: music macros?, Han-Wen Nienhuys, 2006/02/04
- Re: music macros?, Nicolas Sceaux, 2006/02/04
- Re: music macros?, Erik Sandberg, 2006/02/04
- Re: music macros?, Han-Wen Nienhuys, 2006/02/05
- Re: music macros?, Erik Sandberg, 2006/02/06