lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Patch] Absolute dynamics as postfix text (issue2220041)


From: David Kastrup
Subject: Re: [Patch] Absolute dynamics as postfix text (issue2220041)
Date: Wed, 15 Sep 2010 21:28:14 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

Graham Percival <address@hidden> writes:

> On Wed, Sep 15, 2010 at 07:29:40PM +0200, David Kastrup wrote:
>> address@hidden writes:
>> 
>> > This could not be implemented purely using Scheme, as the
>> > only way to pass an argument is by using a music-function,
>> > thereby forbidding postfix commands.
>> 
>> Is there a particular reason we would not want to have a way of defining
>> postfix commands in Scheme?
>
> I would absolutely love such a mechanism, and consider it almost a
> necessity before serious GLISS work can begin.  I have no idea how
> it could be done, or even if it is possible, but I would encourage
> any investigations into this.

Seems rather straightforward.  You'd put an appropriate 'syntax property
on the music function definition (possibly by allowing a :syntax keyword
argument in define-music-function, defaulting to 'SequentialMusic or
something else that makes sense), the lexer would check it and return an
appropriately different token that would make the parser execute it
without finishing the current time step first, using pretty much the
same parser for argument lists as normal music functions do.

-- 
David Kastrup




reply via email to

[Prev in Thread] Current Thread [Next in Thread]