On Sat, Apr 23, 2011 at 1:47 PM,  <percival.music...@gmail.com> 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 - han...@xs4all.nl - http://www.xs4all.nl/~hanwen

_______________________________________________
lilypond-devel mailing list
lilypond-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-devel

Reply via email to