Re: Where does "\override Score.BarNumber ..." go

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: Where does "\override Score.BarNumber ..." go

James Wilkinson
Re: Where does "\override Score.BarNumber ..." go
Jay Anderson wrote:
> If you want it to apply globally here's probably what you're wanting to do:
>
> \version "2.13.31"
>
> \layout
> {
>   \context
>   {
>     \Score
>     \override BarNumber #'break-visibility = #'#(#t #t #t)
>   }
> }
>
> \score
> {
>   <<
>     \new Staff
>     {
>       \repeat unfold 40 { c'1 }
>     }
>     \new Staff
>     {
>       \repeat unfold 40 { c'1 }
>     }
>   >>
> }

Shazam!


Looking at this has a) fixed my problem and b) made me notice that we have both \score and \Score. Time for some more RTFM.

thanks, Jay

-- 
-------------------------------------------------------------
Jimmy Wilkinson            | Professor Emeritus of Computer Science
[hidden email]        | The College of Charleston
(843) 953-8160             | Charleston      SC        29424
http://www.cs.cofc.edu/~jimmy

If there is one word to describe me, that word would have to be "profectionist".
Any form of incompitence is an athema to me.
Metathesis??? Don't ax me.
Just between you and I, the grammar used by Americans are getting worse.
I can only help but wonder what the cause of this might be.
It just ceases to amaze me how it could be the case, but mostly I could care less.

_______________________________________________
lilypond-user mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/lilypond-user
Reply | Threaded
Open this post in threaded view
|

Re: Where does "\override Score.BarNumber ..." go

Alexander Kobel
On 2010-09-03 00:54, James Wilkinson wrote:

>   Jay Anderson wrote:
>>  If you want it to apply globally here's probably what you're wanting
> to do:
>>
>>  \version "2.13.31"
>>
>>  \layout
>>  {
>>  \context
>>  {
>>  \Score
>>  \override BarNumber #'break-visibility = #'#(#t #t #t)
>>  }
>>  }
>>
>>  \score
>>  {
>>  <<
>>  \new Staff
>>  {
>>  \repeat unfold 40 { c'1 }
>>  }
>>  \new Staff
>>  {
>>  \repeat unfold 40 { c'1 }
>>  }
>>  >>
>>  }
>
> Looking at this has a) fixed my problem and b) made me notice that we
> have both \score and \Score. Time for some more RTFM.

AFAIU, \score { ... } acts like a shortcut for \new Score { ... }. Thus,
   \new Score \with { \override BarNumber #'break-visibility = #'#(#t #t
#t) } { \new Staff \repeat unfold 40 c'1 }
will work as well.

But this makes me wonder: I vaguely remember a distinction of \score and
\new Score, which I can't find in the docs. Actually, I'm not sure the
\new Score construct is even mentioned in the docs. Is this intentional?
Is it unnecessarily complicated? Are there drawbacks of using it?


Cheers,
Alexander

_______________________________________________
lilypond-user mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/lilypond-user
Reply | Threaded
Open this post in threaded view
|

Re: Where does "\override Score.BarNumber ..." go

Graham Percival-3
On Fri, Sep 03, 2010 at 10:16:06AM +0200, Alexander Kobel wrote:
> But this makes me wonder: I vaguely remember a distinction of \score
> and \new Score, which I can't find in the docs.

The distinction is that \new Score should not be used, and issue
1033 is to remove it entirely from the docs.

Cheers,
- Graham

_______________________________________________
lilypond-user mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/lilypond-user