lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Superimposing notes


From: Andrew Bernard
Subject: Superimposing notes
Date: Thu, 9 Apr 2015 22:43:57 +1000

To superimpose two notes on top of each for a complex grace note structure, I have done the following, using multiple voices and shifts. When I use this technique inside my large complex score, the notes I am trying to superimpose push each other away as north pole to north pole magnets. What override may I be missing? In general, how to superimpose notes - precisely the opposite of avoiding collisions.

\version "2.19.18"

treble = \relative c'' {
}

bass = \relative c' {
  \clef bass
  \time 1/4

  <<
    {
      s4
      \acciaccatura {
        \stemUp
        \bar ""
        \once \override Beam.positions = #'(5 . 5)

        \once \override NoteHead.X-offset = #-3
        \once \override Stem.X-offset = #-2
        \once \hide NoteHead
        \once \hide Accidental
        cis,8[ \slurUp
        \change Staff = "treble" \stemDown
        a''8 <a g'>8]
        \once \override Staff.BarLine.transparent = ##f
        \bar "|"
        \change Staff = "bass"
      }
    }
    \new Voice {
      \voiceThree
      \change Staff = "treble"
      s4
      \grace { g'8 }
    }
    \new Voice {
      \voiceTwo
      \stemUp
      \tuplet 7/8 {ees,,,32  b16 g'16. cis32 } |
    }
  >>

  \stemUp
  \once \override NoteHead.X-offset = #12
  \once \override Stem.X-offset = #13.2

  cis32
  s4
}

\score {
  \new PianoStaff
  <<
    \new Staff = "treble" \with {
    }
    { \treble }

    \new Staff = "bass" \with {
    }
    { \bass }
  >>

  \layout {
    \context {
      \Score
      \accidentalStyle Score.dodecaphonic

      proportionalNotationDuration = #(ly:make-moment 1/48)
      \override SpacingSpanner.uniform-stretching = ##t
      \override Score.SpacingSpanner.strict-note-spacing = ##t

    }
  }
}


Andrew




reply via email to

[Prev in Thread] Current Thread [Next in Thread]