Avoid accidentals in cadenza

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

Avoid accidentals in cadenza

Helge Kruse-4
I am trying to typeset the Fantasia (op.35) of Louis Spohr.
(http://ks.imslp.net/files/imglnks/usimg/0/01/IMSLP164842-PMLP294545-SpohrOp35edHoly.pdf)


There is a cadenza starting at page 8 (excerpt attached) with a lot of
tight notes. I would like to avoid spreading the nodes over more lines
than in the original because this would affect the flow and understanding.

I nearly managed to enter the notes. But there are accidentals in the
second lines that are not necessary. How can I avoid them?

\version "2.19.65"
\language "deutsch"

global = {
  \key es \major
  \tiny
}

staffUpper = { \change Staff="upper" }
staffLower = { \change Staff="lower" }

upper = \relative c'' {
  \global
  \cadenzaOn
  s4*7 -\tweak #'stencil #(ly:make-stencil '() '(0 . 0.1) `(0 . ,4) ) _""
  |
  s8*7
  |
  \tiny
  s4 s16
  ces,16[ es ges]
  ces[ ges es ces]
  ces'[ ges es ces]
  ces'[ ges es ces]
  ces'[ ges es ces]
  r ces[ es ges]
  ces[ ges es ces]
  s1.. s16
  \cadenzaOff
}

lower = \relative c {
  \global
  \cadenzaOn

  \clef "bass" f,8 \f [ as16 h ] d f[ as h]
  \staffUpper d f[ as h] d \stemUp f16[ as h]  d[ h as f]
  \stemDown d[ h as f] \stemNeutral
  d[ \staffLower h as f]
  % No line break here. Let's keep it like the IMSP version.
  %\bar "" \break

  f,16 \pp [ as32 h! ] d \stemUp f[ as h]
  \staffUpper d f[ as h!] d \stemUp f[ as h!]  d[ h as f]
  \stemDown d[ h! as f] \stemUp
  d[ \staffLower h as f]
  \bar "" \break

  % second line
  ges,8[ ces16 es] ges  s4 \clef treble es''4 ges ces es2.
  % No line break here. Let's keep it like the IMSP version.
  %\bar "" \break
  \clef bass

  g,,,,8[\f b16 des] % avoid b accidental
  e[ g b  \staffUpper des] % avoid g,b accidental
  e g[ b des] e g[ b des] % avoid b accidental
  e[ des b g]
  es[ des b g] % avoid g accidental
  f[ des \staffLower b ges]
  \bar "" \break

  \cadenzaOff
}

\score {
  \new PianoStaff <<
    \new Staff = "upper" \upper
    \new Staff = "lower" { \clef bass \lower }
  >>
  \layout { }
}

In the second line all B notes are flat and in the second half of that
line all G notes are natural.

Best regards
Helge

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

SpohrKadenz.png (238K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Avoid accidentals in cadenza

Mason Hock-2
On 10/07, Helge Kruse wrote:

> I am trying to typeset the Fantasia (op.35) of Louis Spohr.
> (http://ks.imslp.net/files/imglnks/usimg/0/01/IMSLP164842-PMLP294545-SpohrOp35edHoly.pdf)
>
>
> There is a cadenza starting at page 8 (excerpt attached) with a lot of
> tight notes. I would like to avoid spreading the nodes over more lines
> than in the original because this would affect the flow and understanding.
>
> I nearly managed to enter the notes. But there are accidentals in the
> second lines that are not necessary. How can I avoid them?
Does this

\override Voice.Accidental.stencil = ##f
% music that doesn't need accidentals
\override Voice.Accidental.stencil = ##t

work for you?

> \version "2.19.65"
> \language "deutsch"
>
> global = {
>   \key es \major
>   \tiny
> }
>
> staffUpper = { \change Staff="upper" }
> staffLower = { \change Staff="lower" }
>
> upper = \relative c'' {
>   \global
>   \cadenzaOn
>   s4*7 -\tweak #'stencil #(ly:make-stencil '() '(0 . 0.1) `(0 . ,4) ) _""
>   |
>   s8*7
>   |
>   \tiny
>   s4 s16
>   ces,16[ es ges]
>   ces[ ges es ces]
>   ces'[ ges es ces]
>   ces'[ ges es ces]
>   ces'[ ges es ces]
>   r ces[ es ges]
>   ces[ ges es ces]
>   s1.. s16
>   \cadenzaOff
> }
>
> lower = \relative c {
>   \global
>   \cadenzaOn
>
>   \clef "bass" f,8 \f [ as16 h ] d f[ as h]
>   \staffUpper d f[ as h] d \stemUp f16[ as h]  d[ h as f]
>   \stemDown d[ h as f] \stemNeutral
>   d[ \staffLower h as f]
>   % No line break here. Let's keep it like the IMSP version.
>   %\bar "" \break
>
>   f,16 \pp [ as32 h! ] d \stemUp f[ as h]
>   \staffUpper d f[ as h!] d \stemUp f[ as h!]  d[ h as f]
>   \stemDown d[ h! as f] \stemUp
>   d[ \staffLower h as f]
>   \bar "" \break
>
>   % second line
>   ges,8[ ces16 es] ges  s4 \clef treble es''4 ges ces es2.
>   % No line break here. Let's keep it like the IMSP version.
>   %\bar "" \break
>   \clef bass
>
>   g,,,,8[\f b16 des] % avoid b accidental
>   e[ g b  \staffUpper des] % avoid g,b accidental
>   e g[ b des] e g[ b des] % avoid b accidental
>   e[ des b g]
>   es[ des b g] % avoid g accidental
>   f[ des \staffLower b ges]
>   \bar "" \break
>
>   \cadenzaOff
> }
>
> \score {
>   \new PianoStaff <<
>     \new Staff = "upper" \upper
>     \new Staff = "lower" { \clef bass \lower }
>   >>
>   \layout { }
> }
>
> In the second line all B notes are flat and in the second half of that
> line all G notes are natural.
>
> Best regards
> Helge

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


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

signature.asc (484 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Avoid accidentals in cadenza

Noeck
Hi,

Am 07.10.2018 um 19:01 schrieb Mason Hock:
> \override Voice.Accidental.stencil = ##f
> % music that doesn't need accidentals
> \override Voice.Accidental.stencil = ##t

While you can omit accidentals with the first line, you cannot set the
stencil to true. This prints a warning:

> warning: type check for `stencil' failed; value `#t' must be of type `stencil'

The right thing to do is to revert the override:

\version "2.18.2"
{
  fis
  \override Accidental.stencil = ##f
  gis
  \revert Accidental.stencil
  cis'
}

Or equivalently in more recent versions:

\version "2.19.80"
{
  fis
  \omit Accidental
  gis
  \undo \omit Accidental
  cis'
}


Cheers,
Joram

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

Re: Avoid accidentals in cadenza

Mason Hock-2
On 10/07, Noeck wrote:

> Hi,
>
> Am 07.10.2018 um 19:01 schrieb Mason Hock:
> > \override Voice.Accidental.stencil = ##f
> > % music that doesn't need accidentals
> > \override Voice.Accidental.stencil = ##t
>
> While you can omit accidentals with the first line, you cannot set the
> stencil to true. This prints a warning:
>
> > warning: type check for `stencil' failed; value `#t' must be of type `stencil'
>
> The right thing to do is to revert the override:
>
> \version "2.18.2"
> {
>   fis
>   \override Accidental.stencil = ##f
>   gis
>   \revert Accidental.stencil
>   cis'
> }
My bad. Thanks.

>
> Or equivalently in more recent versions:
>
> \version "2.19.80"
> {
>   fis
>   \omit Accidental
>   gis
>   \undo \omit Accidental
>   cis'
> }
>
>
> Cheers,
> Joram
>
> _______________________________________________
> lilypond-user mailing list
> [hidden email]
> https://lists.gnu.org/mailman/listinfo/lilypond-user

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

signature.asc (484 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Avoid accidentals in cadenza

Simon Albrecht-2
In reply to this post by Noeck
On 07.10.2018 19:16, Noeck wrote:
> \version "2.19.80"
> {
>    fis
>    \omit Accidental
>    gis
>    \undo \omit Accidental
>    cis'
> }

Also, you can convert the override into a tweak like this:
\single\omit Accidental
thus removing the need to \revert or \undo anything.

Best, Simon

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