lilypond-devel
[Top][All Lists]
Advanced

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

Re: Stub for ly to xml export using engravers


From: David Kastrup
Subject: Re: Stub for ly to xml export using engravers
Date: Tue, 28 Aug 2012 12:02:53 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux)

John Mandereau <address@hidden> writes:

> 2012/8/27 Han-Wen Nienhuys <address@hidden>:
>> Note that you can plug into the music event stream directly. That will
>> give you an overview of all events.
>
> This sounds a nice idea, but I don't know how to do this, I started
> (re)reading Erik Sandberg's thesis and then guess it'll be easy to dig
> out a starting point from current Lily code. BTW writing an exporter
> (be it to xml or other) would be a good excuse for starting
> documenting this in Extending manual.

I don't think "the music stream" actually exists.  Music expressions are
turned into stream events while iterating them in a given global
context, and you can try to listen to all events.  Things like the part
combiner do something like that.  But it is all a very dynamic
operation, and it happens with _every_ call of
ly:interpret-music-expression, and the actual conversion to stream
events depends very much on the global context this happens in
($defaultmidi is totally different from $defaultlayout, for example).

-- 
David Kastrup




reply via email to

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