lilypond-devel
[Top][All Lists]
Advanced

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

Re: Event listener to extract (some) music events. (issue4373046)


From: Han-Wen Nienhuys
Subject: Re: Event listener to extract (some) music events. (issue4373046)
Date: Sat, 23 Apr 2011 21:36:41 -0300

On Sat, Apr 23, 2011 at 1:47 PM,  <address@hidden> wrote:

> Sorry, I'm still lost.  Is the idea that I add stuff like this at the
> top level?
> #(ly:add-listener
>   (ly:make-listener
>    format-note)
>   (ly:context-events-below
>    (ly:make-global-context $defaultlayout))
>   'note-event)
>
> I definitely don't want to create a music function, since that would
> require manually editing lots of files -- it's much easier just to
>  cat "\include \"event-listener.ly\"" file-1234.ly >> tempfile.ly
> rather than making some regex to add a music function call to the \score
> section of each file.

You can override how a toplevel music (and scores, for that matter) is
handled, so this is not a real argument.

Grep ly/declarations-init.ly for "toplevel-"

> Unless there's some fantastic advantage that I'm missing (I doubt that
> there would be a big speed difference, and even if there was, speed

You're passing all of the music through the typesetting process which
is just unnecessary.

-- 
Han-Wen Nienhuys - address@hidden - http://www.xs4all.nl/~hanwen



reply via email to

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