lilypond-user
[Top][All Lists]
Advanced

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

solving dynamics clash


From: Helge Kruse
Subject: solving dynamics clash
Date: Tue, 14 Jul 2009 21:20:16 +0200
User-agent: Thunderbird 2.0.0.22 (Windows/20090605)

Hello,

I write a piece with a StaffGroup where the bar lines should connect the staves indicating the staves that define one instrument. The dynamics are written in a separat "voice".

The problem is, that the dynamics clash with the bar lines. This occurs at many locations.

Is there a way to adjust the dynamics a bit more right? Since there are a lot of dynamics in the piece: Is there a way to adjust this automatically?

A (minimal) example is attached.

Regards,
Helge
#(ly:set-option 'delete-intermediate-files #t)
#(ly:set-option 'point-and-click #f)

\version "2.13.0"

\book {
        \score {
                \new StaffGroup
                        <<
                        \new Staff \relative c' {
                                \clef treble \time 2/4
                                R2 c4 c c c
                        }
                        \new Dynamics = "Dynamics_pf" {
                                s2 s2\mp s2\mf
                        }
                        \new Staff \relative c {
                                \clef bass \time 2/4
                                c2 c c
                        }
                        >>
                \layout {
                        \context {
                          \type "Engraver_group"
                          \name Dynamics
                          \alias Voice
                          \consists "Output_property_engraver"
                          \consists "Piano_pedal_engraver"
                          \consists "Script_engraver"
                          \consists "New_dynamic_engraver"
                          \consists "Dynamic_align_engraver"
                          \consists "Text_engraver"
                          \consists "Skip_event_swallow_translator"
                          \consists "Axis_group_engraver"
                        
                          \override DynamicLineSpanner #'Y-offset = #0
                          \override TextScript #'font-size = #2
                          \override TextScript #'font-shape = #'italic
                          \override VerticalAxisGroup #'minimum-Y-extent = 
#'(-1 . 1)
                        }
                        \context {
                                \StaffGroup \accepts Dynamics
                        }
                }
        }
}

Attachment: dynamics.pdf
Description: Adobe PDF document


reply via email to

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