> ---------- Forwarded message ----------
> From: Thomas Morley <[email protected]>
> Subject: Re: DynamicLineSpanner.staff-padding in temporary polyphony
> 2018-04-04 7:30 GMT+02:00 Flaming Hakama by Elaine <
> [email protected]>:
> >
> >>
> >> I am not top posting
> >
> >
> >
> > HI.
> >
> > Please let me know if you can answer this question.
> >
> > I am using temporary voices to set horizontal dynamic spacing. Which
> works
> > fine.
> > But the side effect is that the dynamics in the second voice don't obey
> > DynamicLineSpanner.staff-padding
> >
> > How can I get the dynamics on the second voice to obey the staff padding?
> >
> > \version "2.19.15"
> >
> > \new Staff {
> > \override DynamicLineSpanner.staff-padding = #3.0
> > \relative c' {
> > f1\p
> > <<
> > \relative c' { f1 } \\
> >
> > % How do I get this voice to obey the DynamicLineSpanner.staff-
> padding
> > ?
> > { s1\p }
> > >>
> > }
> > }
> >
> >
> > (The actual version I'm running is 2.19.81)
> >
> >
> > Thanks,
> >
> > David Elaine Alt
>
> \version "2.19.81"
>
> % The << \\ >> construct creates two new Voices named "1" and "2".
> % The override before is in an unnamed Voices and only working in this
> Voice.
> % I'll demonstrate with colors:
>
> %% Default
> {
> \override DynamicText.color = #red
> f'1\p
> <<
> f'1
> \\
> s\p
> >>
> }
>
> %% Apply to new Voice as well
> {
> \override DynamicText.color = #red
> f'1\p
> <<
> f'1
> \\
> { \override DynamicText.color = #red s\p }
> >>
> }
>
> %% Initiate \new Voice = "2" and put the override in \with { }
> %% Keep it alive
> \new Staff <<
> \new Voice = "2"
> \with { \override DynamicText.color = #red }
> s1*2
>
> {
> \override DynamicText.color = #red
> f'1\p
> <<
> f'1
> \\
> s\p
> >>
> }
> >>
>
>
> %% Use named Voices and apply \voices
> \new Voice = "main" {
> \override DynamicText.color = #red
> f'1\p
> \voices 1,main
> <<
> f'1
> \\
> s\p
> >>
> }
>
> %% or manually
> \new Voice = "main" {
> \override DynamicText.color = #red
> f'1\p
> <<
> f'1
> \\
> \context Voice = "main" s\p
> >>
> }
>
> %% Use \layout
> \score {
> {
> f'1\p
> <<
> f'1
> \\
> s\p
> >>
> }
> \layout {
> %% Using \context { \Voice ... } } is actually not needed here.
> %% The override is already in a Bottom-context
> \context {
> \Voice
> \override DynamicText.color = #red
> }
> }
> }
>
> %% Apply the override in Staff-context via \with
> \new Staff \with { \override DynamicText.color = #red }
> {
> f'1\p
> <<
> f'1
> \\
> s\p
> >>
> }
>
> %% Probably easiest
> %% Don't use << ... \\ ... >> to avoid creation of new Voices
> {
> \override DynamicText.color = #red
> f'1\p
> <<
> f'1
> s\p
> >>
> }
>
>
> HTH,
> Harm
>
Thanks for the clear and thorough explanation, with so many options!
Since I am interested in this override for all voices on the staff, it
probably makes more semantic sense for me to use the layout context or \new
Staff \with { \override ... }.
However, I will probably go with << {} {} >> instead of << {} \\ {} >>,
since I suspect that it might help me also avoid having to fiddle with the
stem and slur directions.
Thanks,
David Elaine Alt
415 . 341 .4954 "*Confusion is
highly underrated*"
[email protected]
skype: flaming_hakama
Producer ~ Composer ~ Instrumentalist
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user