[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: OO and MIDI support
From: |
Erik Sandberg |
Subject: |
Re: OO and MIDI support |
Date: |
Sun, 4 Nov 2007 17:43:43 +0100 |
User-agent: |
KMail/1.9.6 (enterprise 0.20070907.709405) |
On Friday 05 October 2007, Hans Aberg wrote:
> On 5 Oct 2007, at 01:20, Graham Percival wrote:
> > Midi support in lilypond is quite limited, and this is not likely
> > to change in the near future.
>
> Might it possible to handle this by OO (object orientation)? The idea
> is that if objects can be defined (in pseudocode)
> turn := default: ...
> midi: ...
> short: ...
> quintuplet: ...
> ;
> And one then is able to write code like
> d8^\turn[staff->short,midi->quintuplet]
> if one in this position wants the turn to not be the defaults, but
> then the staff to be written in the "short" form, and MIDI be written
> as a quintuplets.
>
> The principle is quite general. So it might be useful for handing a
> number of problems. The enhanced MIDI support would emerge as a
> byproduct of this OO support.
I don't understand all of this, but wouldn't it be possible to achieve most of
this functionality with tags? You could just use \keepWithTag #'midi when
creating midi, and then tag stuff with midi in the definition of \turn.
Erik
- Re: OO and MIDI support,
Erik Sandberg <=