Re: Extra naturals in accidental-style teaching?

2014-04-06 Thread Ariel Barton
Thank you!

I think that what I want is not the forget style, but to have Lilypond
typeset everything in C major/A minor. I'd still sort of like to print
the true key signature; do you know if there's a way to print the D major
keysignature while it's in C? (\key d \major \key c \major produces an
error message unless I put something between the two key changes, \key d
\major s1 \key c \major makes my measure count off and also prints a
bunch of courtesy accidentals at the key change to C major; there
might be something I can do involving the sharp=postitions setting for
the key-signature-interface but I can't really figure out how Lilypond
wants me to phrase that.)

Thanks,
Ariel

Paul Morris wrote

 Hi Ariel,  It seems that these cautionary natural signs appear any time a
 given note occurs again, if it is not immediately following the same
note.

 \version 2.18.2
 \new Staff {
   \accidentalStyle teaching
   \key c \major
   \relative f' {
   c8 d c d e e f e f e e d c c d e
   }
 }

 This may be a bug. The docs say cautionary accidentals are added for all
 sharp or flat tones specified by the key signature, except if the note is
 immediately repeated.[1]  So I think these cautionary _natural_ signs
 shouldn't be shown at all?

 [1]

http://lilypond.org/doc/v2.18/Documentation/notation/displaying-pitches#automatic-accidentals

 As a work-around you would have to manually hide each of these unwanted
 accidentals, but it would probably be easier at that point to use modern
 style and manually force the natural signs to appear, by adding a ! after
 the note like this: c!  Or maybe a different style (like forget ?) would
be
 close enough to what you want?

 HTH,
 -Paul
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Extra naturals in accidental-style teaching?

2014-04-06 Thread Paul Morris
Ariel Barton wrote
 I think that what I want is not the forget style, but to have Lilypond
 typeset everything in C major/A minor. I'd still sort of like to print
 the true key signature; do you know if there's a way to print the D major
 keysignature while it's in C? 

See the following which does what you describe.  The \omit line inserts but
does not display a grace note between the two key signatures, and the
\override line prevents the key cancellation from being shown.  

\version 2.18.0

\relative f' {
  \key g \major
  \omit \grace s8
  \override Staff.KeyCancellation.stencil = ##f
  \key c \major
  c8 cis d dis e f fis g gis a ais b c
}

One problem is that if you want the g key signature to be shown at the
beginning of each line, as is customary, then you would need to do something
like this at the beginning of each line (ugh).  So it's not really a good
solution.  Another possibility might be to replace the c major stencil, but
that will not really be any better I don't think...

-Paul



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Extra-naturals-in-accidental-style-teaching-tp161142p161319.html
Sent from the User mailing list archive at Nabble.com.

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Extra naturals in accidental-style teaching?

2014-04-03 Thread Ariel Barton
Hello,

I am trying to use the accidental style teaching to make my music a
little easier to use. The problem is, teaching produces a whole lot of
superfluous natural signs that aren't really helpful; they just clutter up
the page. (They don't seem to follow any particular rules, either; they
seem to be distributed at random.) Can you tell me how to get rid of them
(while keeping the courtesy sharps and flats)?

Thank you,
Ariel Barton

(Here is an example: note that the first song is in C major with no
accidentals and I still have a lot of random natural signs.)

\version 2.18.2
\language english
\layout {
\context {
\Staff
#(set-accidental-style 'teaching)
 }
}
\relative c'{
\key c \major \time 2/4
e8 g g g | g a g f | e g g g | g a g f | e g d f | e g d f |
e4 d | c2 |
}
\relative c' {
\key e \minor \partial 4
b4 | g' g fs fs | g8 g4. e2 | b4 b4 ds8 ds4.   | e2. b4 |
g' g fs fs | g8 g4. e2 | b4 b4 ds8 ds4.| e1 |
e8 e4.~ e2 | a4 a2.| b4. (as8) b4. as8 | b4 b8(a?) g
(e4.) |
g4 e2 (g4) | e8(d) b2. | b4 b4 ds8 ds4.| e2.
}
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Extra naturals in accidental-style teaching?

2014-04-03 Thread Paul Morris
Ariel Barton wrote
 I am trying to use the accidental style teaching to make my music a
 little easier to use. The problem is, teaching produces a whole lot of
 superfluous natural signs that aren't really helpful; they just clutter up
 the page. (They don't seem to follow any particular rules, either; they
 seem to be distributed at random.) 

Hi Ariel,  It seems that these cautionary natural signs appear any time a
given note occurs again, if it is not immediately following the same note.  

\version 2.18.2
\new Staff {
  \accidentalStyle teaching
  \key c \major
  \relative f' {
  c8 d c d e e f e f e e d c c d e
  }
}

This may be a bug. The docs say cautionary accidentals are added for all
sharp or flat tones specified by the key signature, except if the note is
immediately repeated.[1]  So I think these cautionary _natural_ signs
shouldn't be shown at all?

[1]
http://lilypond.org/doc/v2.18/Documentation/notation/displaying-pitches#automatic-accidentals

As a work-around you would have to manually hide each of these unwanted
accidentals, but it would probably be easier at that point to use modern
style and manually force the natural signs to appear, by adding a ! after
the note like this: c!  Or maybe a different style (like forget ?) would be
close enough to what you want?

HTH,
-Paul



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Extra-naturals-in-accidental-style-teaching-tp161142p161165.html
Sent from the User mailing list archive at Nabble.com.

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Extra naturals in accidental-style teaching?

2014-04-03 Thread Keith OHara
Paul Morris paul at paulwmorris.com writes:

 Ariel Barton wrote
  I am trying to use the accidental style teaching to make my music a
  little easier to use. The problem is, teaching produces a whole lot of
  superfluous natural signs that aren't really helpful; they just clutter up
  the page. (They don't seem to follow any particular rules, either; they
  seem to be distributed at random.) 
 

 This may be a bug. 

Yes. Version 2.14 of LilyPond printed reminders for only sharps and flats.
I put https://code.google.com/p/lilypond/issues/detail?id=3894
on the bug list.  
This is something that can be fixed without recompiling LilyPond, so any
one of a number of people here might follow that link to the change in code
that changed behavior, figure out what was intended, and a way to do
it with the desired output.



___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user