lilypond-devel
[Top][All Lists]
Advanced

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

Re: [patch] \label, page references


From: Han-Wen Nienhuys
Subject: Re: [patch] \label, page references
Date: Sun, 27 May 2007 14:22:24 -0300
User-agent: Thunderbird 1.5.0.10 (X11/20070302)

Nicolas Sceaux escreveu:
>> So, in Paper_book::get_system_specs (), when a label marker is found,
>> the labels property of the first column of the previous score is set
>> (instead of the score itself, through its layout slot, as in the patch I
>> sent).  But then, propagating the labels from individual columns to the
>> systems would require to loop across every single column of each system
>> to collect the labels. Wouldn't that be too expensive? If this is
>> affordable, then that might be the best solution.
> 
> I have something working in that taste (using a book-paper labels_ slot
> iso a paper variable, and labels put on column properties instead of in
> a paper-score layout variable). The system columns are looped across
> anyway, so the extra processing here is a col->get_property("labels").
> 
> I'd like to go on with labels inside the music (for use at a rehearsal
> mark for instance), but I don't know how this works:
> 
>  - define a new event class label-event;
> 
>  - define a new music type LabelEvent, of type label-event;
> 
> but how does this link to the paper column engraver?

You have to define a Paper_column_engraver::listen_XXXX, and 
register it like other listeners.


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





reply via email to

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