Jump to content

Keyboard headword: Difference between revisions

From LilyPond wiki
Import snippet from LSR
 
m Improve PDF documentation formatting
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Keyboard headword
Keyboard headword.


<lilypond version="2.24.0" full>
<lilypond version="2.24">
% M. Ravel, Sonatine (1905)
% M. Ravel, Sonatine (1905)
% First movement
% End of first movement
 
\include "english.ly"
\include "english.ly"


Line 31: Line 32:
       \new Voice {
       \new Voice {
         \voiceOne
         \voiceOne
         fs''8 ( ^\markup {
         \textMark \markup {
           \override #'(baseline-skip . 2.4) \column {
           \override #'(baseline-skip . 2.4) \column {
             \line \bold { Un peu retenu }
             \line \bold { Un peu retenu }
             \line \italic { très expressif }
             \line \italic { très expressif } } }
          }
         fs''8( es''16 cs'' as'4) |
        }
         fs''8( es''16 cs'' as'4) |
         es''16
         fs''8( es''16 cs'' as'8 cs''8) |
        cs''16
        as'4 )
        |
         fs''8 (
        es''16
        cs''16
        as'4 )
        |
         fs''8 (
        es''16
        cs''16
        as'8
        cs''8 )
        |
       }
       }
       \new Voice {
       \new Voice {
         \voiceTwo
         \voiceTwo
         gs'8\rest \ppp
         gs'8\rest \offset Y-offset #-3 \ppp fs'4( es'8) |
        fs'4 (
         gs'8\rest fs'4( es'8) |
        es'8 )
         gs'8\rest fs'4( es'8) |
        |
         gs'8\rest
        fs'4 (
        es'8 )
        |
         gs'8\rest
        fs'4 (
        es'8 )
        |
       }
       }
     >>
     >>
     \clef bass
     \clef bass
     <ds b! es'>4 ( ^ \markup \bold { Rall. }
     \override TextSpanner.bound-details.left.text = "rall."
    \override Script.stencil = #(lambda (grob)
      \override TextSpanner.bound-details.right.text = "a tempo"
      (grob-interpret-markup grob fermataLong))
      <b! es'>4(\startTextSpan
    <ds' as'>8 ) \fermata
      \override Script.stencil =
    \noBeam
        #(lambda(grob)
    \clef treble
          (grob-interpret-markup grob fermataLong))
    \slurUp
      <ds' as'>8)\fermata \noBeam
    \once \override Hairpin.to-barline = ##f
      \clef treble
    <as fs'>8 ( \pp \>
      <as fs'>8^(
    |
              \tweak to-barline ##f
     <gs b cs'>4. \! ) ^\markup \bold { a Tempo }
                \tweak after-line-breaking ##f
    \slurUp
                \tweak endpoint-alignments #'(-1 . 0) ^\>
    <as fs'>8 ^\( \>
              \stopTextSpan | \noBreak
    |
     <gs b cs'>4.\!)
     <gs b cs'>4. \! \)
      <as fs'>8^(
              \tweak to-barline ##f
                \tweak after-line-breaking ##f
                \tweak endpoint-alignments #'(-1 . 0) ^\> |
     <gs b cs'>4.\!)
     <<
     <<
       \new Voice {
       \new Voice {
         \voiceOne
         \voiceOne
         <as fs'>8 (
         <as fs'>8( |
         |
         \override TextSpanner.bound-details.left.text =
         cs'8 ^\markup \bold { Rallentando }
          "ral  -  -  len  -  -  tan  -  -  do"
        b16
          \override TextSpanner.bound-details.right.text =
        cs'16
            \markup \larger \upright \bold "Lent"
        d'8
         cs'8\<\startTextSpan b16 cs'
        e'16
          d'8\tweak to-barline ##f \> e'16 fs' |
        fs'16
         <as! cs' gs'>4.)\! s8 |
        |
         r8 <cs'' as'' cs'''>4\arpeggio
         <as! cs' gs'>4. )
          e''16(\stopTextSpan fs''16 |
        s8
        |
         r8
        <cs'' as'' cs'''>4 \arpeggio
        e''16 ( ^\markup \bold { Lent }
        fs''16
        |
         \voiceTwo
         \voiceTwo
         <as'! cs'' gs''>2 )
         <as'! cs'' gs''>2) |
        |
       }
       }
       \new Voice {
       \new Voice {
         \voiceTwo
         \voiceTwo
         s8
         s8 |
        |
         <gs b>4 <fs bs>4 |
         <gs b>4 \<
         s4. <a bs e'>8^(^> \tweak to-barline ##f _\> |
        <fs bs>4 \>
         <as! cs' gs'>4.)\!
        |
         <a' bs'>8\tweak X-offset #-4 \ppp \tweak to-barline ##f \> |
         s4. \!
         s8\!
        \slurUp
          \voiceOne
        \once \override Script.direction = #UP
          \ottava #1
        <a bs e'>8 ( \accent
          \once \override PianoStaff.Arpeggio.padding = #0.8
        |
          <cs''' as''' cs''''>4. \arpeggio \fermata
         <as! cs' gs'>4. )
          \ottava #0
        \once \override Hairpin.to-barline = ##f
          \bar "|."
         <a' bs'>8 \ppp \>
        |
         s8 \!
        \stemDown
        \once \override Script.direction = #UP
        \ottava #1
        \voiceOne
        \once \override PianoStaff.Arpeggio.padding = #0.8
        <cs''' as''' cs''''>4. \arpeggio \fermata
        \ottava #0
        \bar "|."
       }
       }
     >>
     >>
   }
   }
   \new Staff <<
   \new Staff <<
    \set Staff.pedalSustainStyle = #'bracket
     \key fs \major
     \key fs \major
     \clef bass
     \clef bass
     \new Voice {
     \new Voice {
       \voiceOne
       \voiceOne
       ds'4 \tenuto
       ds'4-- cs'4-- |
      cs'4 \tenuto
       ds'4-- cs'4-- |
      |
       ds'4-- cs'4-- |
       ds'4 \tenuto
       r8 \clef treble <b' cs''>8[ \clef bass <es b cs'>8]\fermata
      cs'4 \tenuto
        s8^\tweak Y-offset #3 \pp |
      |
       fs8\rest \clef treble <b' cs''>4-- s8 |
       ds'4 \tenuto
       fs8\rest \clef treble <b' cs''>4-- s8 |
      cs'4 \tenuto
       s2 |
      |
       ds8\rest \clef treble <as' cs''>4 \clef bass s8 |
       s8
       s8 \clef treble <as'>4 \arpeggio \clef bass s8 |
      \clef treble
       s8 \clef treble <as''>4. \arpeggio \fermata |
      <b' cs''>8 [
      \clef bass
      <es b cs'>8 \fermata ]
      s8
      |
       fs8\rest
      \clef treble
      <b' cs''>4 \tenuto
      s8
      |
       fs8\rest
      \clef treble
      <b' cs''>4 \tenuto
      s8
      |
       s2
      |
       ds8\rest
      \clef treble
      <as' cs''>4
      \clef bass
      s8
      |
       s8
      \clef treble
      <as'>4 \arpeggio
      \clef bass
      s8
      |
       s8
      \clef treble
      <as''>4. \arpeggio \fermata
      |
     }
     }
     \new Voice {
     \new Voice {
       \voiceTwo
       \voiceTwo
       ds'8 [ (
       ds'8[( <ds bs> cs' <ds as>]) |
      < ds bs >8
       ds'8[( <ds bs> cs' <ds as>]) |
      cs'8
       ds'8[( <ds bs> cs' <ds as>]) |
      < ds as >8 ] )
       \set Staff.pedalSustainStrings = #'("P" "" "")
      |
        <cs, gs, ds>4.\sustainOn \fermata
       ds'8 [ (
        <fs, cs>8(\sustainOff
      < ds bs >8
                  \tweak to-barline ##f
      cs'8
                    \tweak after-line-breaking ##f _\> |
      < ds as >8 ] )
       <e, b,>4.)\! \clef bass
      |
        <fs, cs>8( \tweak to-barline ##f
       ds'8 [ (
                    \tweak after-line-breaking ##f _\> |
      < ds bs >8
       <e, b,>4.)\! \clef bass <fs, cs>8( |
      cs'8
       <e, b,>4 <d, a,> |
      < ds as >8 ] )
       <fs,, cs,>4.) <a, e>8( |
      |
       <fs, cs>4.) <a e'>8^( |
       \once \override Script.outside-staff-priority = #100
       <fs cs'>2) |
      \once \override TextScript.outside-staff-priority = #500
      <cs, gs,>4. \fermata _\markup \italic { ped. }
      <fs, cs>8 (
      |
       <e, b,>4. ) \sustainOn
      \clef bass
      <fs, cs>8 \( \sustainOff
      |
       <e, b,>4. \) \sustainOn
      \clef bass
      <fs, cs>8 ( \sustainOff
      |
       <e, b,>4
      <d, a,>4
      |
       <fs,, cs,>4. ) \sustainOn
      <a, e>8 ( \sustainOff
      |
       <fs, cs>4. ) \sustainOn
      \slurUp
      <a e'>8 ( \sustainOff \sustainOn
      |
       <fs cs'>2 ) \sustainOff \sustainOn
      |
     }
     }
   >>
   >>
>>
>>


\paper { tagline = ##f }
\paper {
  system-system-spacing.padding = #4
}
</lilypond>
</lilypond>


[[Category:Headword]]
[[Category:Headword]]
[[Category:Included in the official documentation]]
[[Category:Included in the official documentation]]
[[Category:Snippet]]

Latest revision as of 05:26, 18 December 2025

Keyboard headword.

\version "2.24"

% M. Ravel, Sonatine (1905)
% End of first movement

\include "english.ly"

\layout {
  \context {
    \Score
    \remove "Bar_number_engraver"
  }
}

fermataLong = \markup {
  \override #'(direction . 1)
  \override #'(baseline-skip . 2) {
    \dir-column {
      \fermata
      \text \italic \center-align long
    }
  }
}

\new PianoStaff <<
  \set PianoStaff.connectArpeggios = ##t
  \new Staff {
    \time 2/4
    \key fs \major
    <<
      \new Voice {
        \voiceOne
        \textMark \markup {
          \override #'(baseline-skip . 2.4) \column {
            \line \bold { Un peu retenu }
            \line \italic { très expressif } } }
        fs''8( es''16 cs'' as'4) |
        fs''8( es''16 cs'' as'4) |
        fs''8( es''16 cs'' as'8 cs''8) |
      }
      \new Voice {
        \voiceTwo
        gs'8\rest \offset Y-offset #-3 \ppp fs'4( es'8) |
        gs'8\rest fs'4( es'8) |
        gs'8\rest fs'4( es'8) |
      }
    >>
    \clef bass
    \override TextSpanner.bound-details.left.text = "rall."
      \override TextSpanner.bound-details.right.text = "a tempo"
      <b! es'>4(\startTextSpan
      \override Script.stencil =
        #(lambda(grob)
           (grob-interpret-markup grob fermataLong))
      <ds' as'>8)\fermata \noBeam
      \clef treble
      <as fs'>8^(
               \tweak to-barline ##f
                 \tweak after-line-breaking ##f
                 \tweak endpoint-alignments #'(-1 . 0) ^\>
               \stopTextSpan | \noBreak
    <gs b cs'>4.\!)
      <as fs'>8^(
               \tweak to-barline ##f
                 \tweak after-line-breaking ##f
                 \tweak endpoint-alignments #'(-1 . 0) ^\> |
    <gs b cs'>4.\!)
    <<
      \new Voice {
        \voiceOne
        <as fs'>8( |
        \override TextSpanner.bound-details.left.text =
          "ral  -   -   len   -   -   tan   -   -   do"
          \override TextSpanner.bound-details.right.text =
            \markup \larger \upright \bold "Lent"
        cs'8\<\startTextSpan b16 cs'
          d'8\tweak to-barline ##f \> e'16 fs' |
        <as! cs' gs'>4.)\! s8 |
        r8 <cs'' as'' cs'''>4\arpeggio
          e''16(\stopTextSpan fs''16 |
        \voiceTwo
        <as'! cs'' gs''>2) |
      }
      \new Voice {
        \voiceTwo
        s8 |
        <gs b>4 <fs bs>4 |
        s4. <a bs e'>8^(^> \tweak to-barline ##f _\> |
        <as! cs' gs'>4.)\!
        <a' bs'>8\tweak X-offset #-4 \ppp \tweak to-barline ##f \> |
        s8\!
          \voiceOne
          \ottava #1
          \once \override PianoStaff.Arpeggio.padding = #0.8
          <cs''' as''' cs''''>4. \arpeggio \fermata
          \ottava #0
          \bar "|."
      }
    >>
  }

  \new Staff <<
    \key fs \major
    \clef bass
    \new Voice {
      \voiceOne
      ds'4-- cs'4-- |
      ds'4-- cs'4-- |
      ds'4-- cs'4-- |
      r8 \clef treble <b' cs''>8[ \clef bass <es b cs'>8]\fermata
        s8^\tweak Y-offset #3 \pp |
      fs8\rest \clef treble <b' cs''>4-- s8 |
      fs8\rest \clef treble <b' cs''>4-- s8 |
      s2 |
      ds8\rest \clef treble <as' cs''>4 \clef bass s8 |
      s8 \clef treble <as'>4 \arpeggio \clef bass s8 |
      s8 \clef treble <as''>4. \arpeggio \fermata |
    }
    \new Voice {
      \voiceTwo
      ds'8[( <ds bs> cs' <ds as>]) |
      ds'8[( <ds bs> cs' <ds as>]) |
      ds'8[( <ds bs> cs' <ds as>]) |
      \set Staff.pedalSustainStrings = #'("P" "" "")
        <cs, gs, ds>4.\sustainOn \fermata
        <fs, cs>8(\sustainOff
                  \tweak to-barline ##f
                    \tweak after-line-breaking ##f _\> |
      <e, b,>4.)\! \clef bass
        <fs, cs>8( \tweak to-barline ##f
                     \tweak after-line-breaking ##f _\> |
      <e, b,>4.)\! \clef bass <fs, cs>8( |
      <e, b,>4 <d, a,> |
      <fs,, cs,>4.) <a, e>8( |
      <fs, cs>4.) <a e'>8^( |
      <fs cs'>2) |
    }
  >>
>>

\paper {
  system-system-spacing.padding = #4
}