removing naturals

View: New views
5 Messages — Rating Filter:   Alert me  

removing naturals

by Peter Buhr :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

The following is a left-hand octave-exercise for guitar. It has no tempo.  I do
not want the natural symbols to appear in the exercise. I used
"Staff.extraNatural = ##f" is an attempt to eliminate the naturals as per the
instructions on page 6 of the Notation Reference manual, but that did not
help. Is there a way to remove all the natural symbols?

Also, is there a way to increase the font size of the "8" in the "treble_8"
clef?

===============================================================================

\version "2.13.3"
\include "english.ly"
#(ly:set-option 'point-and-click #f)
#(set-default-paper-size "letter")
#(set-global-staff-size 23)

\paper{
    tagline = ""
} % paper

\layout {
    indent = 0.0
    \context {
        \Staff
        \remove "Time_signature_engraver"
    }
} % layout

\score {
    \relative c {
        \set Staff.extraNatural = ##f
        \clef "treble_8"
        \set fingeringOrientations = #'(left left left left)
        \cadenzaOn
        <e,-0 e'-2> <f-1 f'-3> <fs-2 fs'-4> <g-3 g'-0> <gs-4 gs'-1> <a-0 a'-2> <as-1 as'-3> <b-2 b'-4>
        \stemDown <c-3 c'-1> <cs-4 cs'-2> <d-0 d'-3> <ds-1 ds'-4> <e-2 e'-0> <f-3 f'-1> <fs-4 fs'-2> <g-0 g'-3> <gs-1 gs'-4> \bar "|"
        <g-0 g'-3> <fs-4 fs'-2> <f-3 f'-1> <e-2 e'-0> <ds-1 ds'-4> <d-0 d'-3> <cs-4 cs'-2> <c-3 c'-1>
        <b-2 b'-4> \stemUp <as-1 as'-3> <a-0 a'-2> <gs-4 gs'-1> <g-3 g'-0> <fs-2 fs'-4> <f-1 f'-3> <e-0 e'-2> s4 \bar "|"
    } % relative
} % score


_______________________________________________
lilypond-user mailing list
lilypond-user@...
http://lists.gnu.org/mailman/listinfo/lilypond-user

Re: removing naturals

by Kieren MacMillan :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Peter,

> The following is a left-hand octave-exercise for guitar. It has no  
> tempo.  I do
> not want the natural symbols to appear in the exercise. I used
> "Staff.extraNatural = ##f" is an attempt to eliminate the naturals  
> as per the
> instructions on page 6 of the Notation Reference manual, but that  
> did not
> help. Is there a way to remove all the natural symbols?

Setting extraNatural = ##f simply ensures that you don't get (e.g.) a  
natural *and* a flat when a sharpened note is followed by a flattened  
one of the same pitch (e.g., A# followed by Ab).

Since you've used \cadenzaOn, the entire exercise is (according to  
Lilypond) in one measure -- therefore, engraving rules state that the  
naturals have to be there in order to cancel out the previous  
accidentals in the same bar. Notice, for example, that the second  
note on the second line is an F# (octaves), but there are no  
accidentals! No doubt this is not what you want.

If you want to eliminate the naturals, you need to trick Lilypond  
into thinking that these are multiple measures (so that the "C major"  
key signature takes over on each note), or apply one of the other  
accidental rules (as outlined in the docs, e.g. <http://lilypond.org/ 
doc/v2.13/Documentation/user/lilypond/Displaying-pitches#Automatic-
accidentals>).

> Also, is there a way to increase the font size of the "8" in the  
> "treble_8" clef?

Override the Clef stencil, and build the markup yourself -- I don't  
know any other way.
See the docs (especially the LSR) for examples of overriding grob  
stencil(s).

Hope this helps!
Kieren.


_______________________________________________
lilypond-user mailing list
lilypond-user@...
http://lists.gnu.org/mailman/listinfo/lilypond-user

Re: removing naturals

by Mark Polesky :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Peter Buhr wrote:
> Is there a way to remove all the natural symbols?

#(set-accidental-style 'forget)


> Also, is there a way to increase the font size of the "8" in the
> "treble_8" clef?

\override Staff.OctavateEight #'font-size = #2

HTH
- Mark


     


_______________________________________________
lilypond-user mailing list
lilypond-user@...
http://lists.gnu.org/mailman/listinfo/lilypond-user

Re: removing naturals

by Trevor Daniels :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Kieren MacMillan wrote Monday, July 06, 2009 3:50 PM

>> Also, is there a way to increase the font size of the "8" in the
>> "treble_8" clef?
>
> Override the Clef stencil, and build the markup yourself -- I
> don't  know any other way.
> See the docs (especially the LSR) for examples of overriding grob
> stencil(s).

There is an easier way.  The octavation symbol is
a separate grob, so the following override will
increase its size from the default value of -4,
leaving the rest of the clef unaffected.

Adjust the number to suit.

\override Staff.OctavateEight #'font-size = #1

Trevor



_______________________________________________
lilypond-user mailing list
lilypond-user@...
http://lists.gnu.org/mailman/listinfo/lilypond-user

Re: removing naturals

by Kieren MacMillan :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Trevor (et al.),

> There is an easier way.  The octavation symbol is a separate grob

Cool! Yay, Lilypond!!
[This will definitely be a setting I adjust in my main \include
\init_Lilypond.ily file: I've always found it too small, but have  
been too busy to tweak it.]

Thanks,
Kieren.


_______________________________________________
lilypond-user mailing list
lilypond-user@...
http://lists.gnu.org/mailman/listinfo/lilypond-user