thanks David and Mike put me on the right path and closed the loop. For the
override to work it has to be on the \Score not on the \Staff.

Here is the working "stylesheet_fiddle.ly"  for 3/4 time signature

\layout {

\context {

\Score

\overrideTimeSignatureSettings

3/4 % timeSignatureFraction

1/4 % baseMomentFraction

#'(1 1) % beatStructure

#'() % beamExceptions

}

}




On Fri, Nov 22, 2013 at 9:12 AM, pls-2 [via Lilypond] <
[email protected]> wrote:

>
> On 22.11.2013, at 14:48, MarcM <[hidden 
> email]<http://user/SendEmail.jtp?type=node&node=154274&i=0>>
> wrote:
>
> > David,
> >
> > Thank you for providing the link to the documentation. I've seen the
> code
> > you mention in the doc
> >
> http://lilypond.org/doc/v2.16/Documentation/notation/displaying-rhythms#time-signature
> > and it is providing the following example:
> >
> > \score {
> >  \new Staff {
> >    \relative c' {
> >      \overrideTimeSignatureSettings
> >        4/4        % timeSignatureFraction
> >        1/4        % baseMomentFraction
> >        #'(3 1)    % beatStructure
> >        #'()       % beamExceptions
> >      \time 4/4
> >      \repeat unfold 8 { c8 } |
> >    }
> >  }
> > }
> >
> > The example puts the overrideTimeSignatureSettings inline with the music
> > which forces to do that in each file whereas what i am looking for is a
> way
> > to declare the override in a stylesheet.ly and only have to import that
> file
> > and not have to remember how to do that each time.
> Mike already showed you how to do it:
> 1) create a new file (e.g. stylesheet.ly) which only contains a layout
> block where you declare your overrides, i.e.:
> \layout {
>   \context {
>     \Score
>     \overrideTimeSignatureSettings
>     4/4 % timeSignatureFraction
>     1/4 % baseMomentFraction
>     #'(3 1) % beatStructure
>     #'() % beamExceptions
>   }
> }
>
> 2) Include stylesheet.ly in your current file:
>
> \version "2.17.95"
> \include "stylesheet.ly"
> \score {
>   \new Staff {
>     \relative c' {
>       \time 4/4
>       \repeat unfold 8 { c8 } |
>     }
>   }
> }
>
> That's it!
>
> hth
> patrick
> _______________________________________________
> lilypond-user mailing list
> [hidden email] <http://user/SendEmail.jtp?type=node&node=154274&i=1>
> https://lists.gnu.org/mailman/listinfo/lilypond-user
>
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://lilypond.1069038.n5.nabble.com/stylesheet-that-override-defaults-tp154254p154274.html
>  To unsubscribe from stylesheet that override defaults, click 
> here<http://lilypond.1069038.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=154254&code=bWFyY0Btb3VyaWVzLm5ldHwxNTQyNTR8LTMwMzQwNjc2OA==>
> .
> NAML<http://lilypond.1069038.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>



-- 
Marc Mouries
571-428-6771




--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/stylesheet-that-override-defaults-tp154254p154275.html
Sent from the User mailing list archive at Nabble.com.
_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to