[Top][All Lists]

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

Re: Rewrite the vertical layout of staves/systems.

From: Han-Wen Nienhuys
Subject: Re: Rewrite the vertical layout of staves/systems.
Date: Mon, 27 Jul 2009 18:37:44 -0300

On Mon, Jul 27, 2009 at 6:32 PM, Han-Wen Nienhuys<address@hidden> wrote:
>>> File lily/ (right):
>>> Line 21: {
>>> Are engravers allowed to inherit code from other classes?
>> Good question. In this forbidden, Han-Wen?
> An engraver is a really a small finite state machine that acts on
> receiving music events and grobs.  You have to plug the notation rules
> as C++ in the right virtual methods, and C++ inheritance (typically:
> overriding acknowledge_xxx or process_music in derived classes) does
> not fit well with how commonality in rules should be encoded. At least
> that has been my experience; it's not strictly forbidden, though.

In this case, you could probably move the relevant code into the base
class, with a switch or a get_property() to configure one of the two

Han-Wen Nienhuys - address@hidden -

reply via email to

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