bug-lilypond
[Top][All Lists]
Advanced

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

notes too close to barline and collisions between accidentals and preced


From: Frédéric Chiasson
Subject: notes too close to barline and collisions between accidentals and preceding notes
Date: Mon, 15 Jan 2007 01:12:14 -0500

Hello,

Since the new version of LilyPond (2.11.11), I found that sometimes
notes and accidentals tend to be too close to the barline. They do not
touch it by a micron, but they are obviously too close anyway.

Also, when having many accidental in a chord, the accidentals collide
a little with the preceding notes.

Here is a part of my piece creating these problems. The notes in the
piano's right hand are too close to the barline in measure 2. In
measures 3 and 4, still in the right hand, there are collisions
between accidentals and notes.

Regards,

Frédéric Chiasson



\version "2.11.11"

t = #(define-music-function (parser location music) (ly:music?)
        #{
 \times 2/3{ $music }
        #})


\header {
        title = "Ébats atomiques"
        subtitle = "pour alto, violoncelle et piano"
        composer = "Frédéric Chiasson"
        dedication = "À Louis-Antoine Lassonde"
        copyright = "(c) 2007 Frédéric Chiasson"
        tagline = \markup{\tiny "Gravé avec LilyPond (www.lilypond.org)"}
}

staffViola = \new Staff  {
        \set Staff.fontSize = #-2
        \override Staff.StaffSymbol #'staff-space = #(magstep -2)
        \time 3/2
        \once \override Score.MetronomeMark #'transparent = ##t
        \tempo 2 = 88
        \set Staff.instrumentName="Alto"
        \set Staff.midiInstrument="viola"
        \key c \major
        \clef alto
        \relative c {
                #(override-auto-beam-setting '(end 1 12 3 4) 1 4)
                #(override-auto-beam-setting '(end 1 12 3 4) 2 4)
                #(override-auto-beam-setting '(end 1 8 3 4) 1 4)
                #(override-auto-beam-setting '(end 1 8 3 4) 2 4)
                
                \time 4/4
                R1*2
                \time 4/4
                c'16[ c, r cis'] r[ dis r e] g,[ fis'=' r gis] r[ a r bis] |
                \time 3/8
                r16[ b! r cis] r8
                \time 4/4
                \acciaccatura{<d,~ a'>8} d'1
        }
}

staffContrabass = \new Staff  {
        \set Staff.fontSize = #-2
        \override Staff.StaffSymbol #'staff-space = #(magstep -2)
        \set Staff.instrumentName="Contrebasse"
        \set Staff.midiInstrument="contrabass"
        
        \transposition c
        \key c \major
        \clef bass
        \relative c' {  
                #(override-auto-beam-setting '(end 1 12 3 4) 1 4)
                #(override-auto-beam-setting '(end 1 12 3 4) 2 4)
                #(override-auto-beam-setting '(end 1 8 3 4) 1 4)
                #(override-auto-beam-setting '(end 1 8 3 4) 2 4)
                                
                %section D
                e,,16[ e e r] r[ e f e] r8[ f16 e] r[ fis f e] |
                r8[ fis16 e] r16[ g f e] \t{g8 e fis} g16[ f! e r] |
                %4/4
                e''16 g, g f' g, fis' g, g' g, gis' g, a'       \clef treble g, 
b' g, cis'
                %3/8
                 g, dis'' g,, e'' r8
                %4/4
                \acciaccatura{d,8} f'1
        }
}

staffPiano = \new PianoStaff {
        \set PianoStaff.midiInstrument = #"acoustic grand"
        \set PianoStaff.instrumentName = #"Piano"
        <<
                \context Staff = "RH" {  % Right hand
                        \clef treble
                        \key c \major
                        \relative c'''' {
                                                
                        #(override-auto-beam-setting '(end 1 12 3 2) 1 4)
                        #(override-auto-beam-setting '(end 1 12 3 2) 2 4)
                        #(override-auto-beam-setting '(end 1 12 3 2) 3 4)
                        #(override-auto-beam-setting '(end 1 12 3 2) 4 4)
                        #(override-auto-beam-setting '(end 1 12 3 2) 5 4)
                        #(override-auto-beam-setting '(end 1 12 3 4) 1 4)
                        #(override-auto-beam-setting '(end 1 12 3 4) 2 4)
                                        
                        %section D
                        \clef bass r8 r16 <e,,,,= gis ais>16~ <e gis ais>4 <f a b>4 
<e gis ais>4 |
                        <f a b>4 <fis a c>4 \t{<gis ais cis>4 <fis a c>8~} <fis a 
c>8. <aes
bes d>16~ |
                        \clef treble
                        <a'=' c d g>8. <a cis f g>16~ <a cis f g>16 <a cis dis fis 
gis>8 <b
d e g a>16~ <b d e g a>16
                                <b d f aes bes>8 <cis e fis gis a>16~ <cis e fis gis 
a>16 <d e fis
ais b>8 <cis e gis ais cis>16~
                        <cis e gis ais cis>16 <dis fis a b dis>8 <e g bes des 
ees>16 <e g
bes des ees>8
                        <f a b d e>1
                        }
                }

                \context Staff = "LH" {  % Left hand                  
                        \clef bass
                        \key c \major
                        \relative c,
                        {
                        #(override-auto-beam-setting '(end 1 12 3 2) 1 4)
                        #(override-auto-beam-setting '(end 1 12 3 2) 2 4)
                        #(override-auto-beam-setting '(end 1 12 3 2) 3 4)
                        #(override-auto-beam-setting '(end 1 12 3 2) 4 4)
                        #(override-auto-beam-setting '(end 1 12 3 2) 5 4)
                        #(override-auto-beam-setting '(end 1 12 3 4) 1 4)
                        #(override-auto-beam-setting '(end 1 12 3 4) 2 4)
                        
                        %section D
                        \clef bass r8 r16 e16~ e4 e e | e4 e \t{e4 e8~} e8. 
e16~ |
                        
                        <g g'>8. <g g'>16~ <g g'>16 <g g'>8 <g g'>16~ <g g'>16 <g 
g'>8 <g g'>16~
                                <g g'>16 <g g'>8 <g g'>16~
                        <g g'>16 <g g'>8 <g g'>16 <g g'>8
                        \acciaccatura{<d d'>8} r1                 
                        
                        }
                }
        >>
}



\score {
        <<
                \staffViola
                \staffContrabass
                \staffPiano
        >>
        
        \midi { }

        \layout  {}
}

\paper {
#(set-paper-size "letter")
}

Attachment: measure2.png
Description: PNG image

Attachment: measure3-4.png
Description: PNG image


reply via email to

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