lilypond-user
[Top][All Lists]
Advanced

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

Re: Measure_counter_engraver examples


From: David Nalesnik
Subject: Re: Measure_counter_engraver examples
Date: Sat, 15 Dec 2012 11:10:31 -0600

Kieren,

On Sat, Dec 15, 2012 at 10:53 AM, Kieren MacMillan
<address@hidden> wrote:
> Hi David,
>
>> Honestly, I'm not sure.  Could you post the results of your
>> investigation?  I think that would be very useful information.
>
> The attached -- with "Axis_group_engraver" being the only [!] included 
> engraver -- seems to work fine (at least in this minimal example).
>
> Cheers,
> Kieren.
> ____________________
>
> \version "2.17.8"
>
> \layout {
>   \context {
>     \type "Engraver_group"
>     \name MeasureCounter
>     \consists "Axis_group_engraver"
>     \consists #Measure_counter_engraver
>     \override MeasureCounter.font-encoding = #'latin1
>     \override MeasureCounter.font-series = #'bold
>     \override MeasureCounter.font-size = #0
>     \override VerticalAxisGroup.nonstaff-relatedstaff-spacing.padding = #2
>     \override VerticalAxisGroup.staff-affinity = #UP
>   }
>   \context {
>     \Score
>     \remove "Bar_number_engraver"
>     \accepts MeasureCounter
>   }
> }
>
> notes = { \repeat unfold 20 { c' d' e' f' } }
>
> \score {
>   \new StaffGroup <<
>     \new Staff \notes
>     \new Staff \notes
>     \new MeasureCounter {
>       \startMeasureCount
>       s1*12
>       s2 \bar "" \break
>       s2
>       s1*7
>       \stopMeasureCount
>     }
>   >>
> }

Thanks very much for this info!

Unfortunately, I don't believe the context definition can be added to
the code base.  (I base this on an unsuccessful attempt to add it as
part of the default Voice context during development,)  The reason, as
I understand it, has to do with automatic documentation in the
Internals Reference.  (The issue is that the engraver is written in
Scheme rather than the usual C++.)

-David



reply via email to

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