lilypond-user
[Top][All Lists]
Advanced

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

Re: Chord Glissando Individual Voice right bound tweaking


From: dtsmarin
Subject: Re: Chord Glissando Individual Voice right bound tweaking
Date: Sun, 20 Mar 2016 07:59:26 -0700 (MST)

The codefile is HUGE and I can't post it due to copyright reasons, so here is
a part of the code.
I want each gliss. line to be parallel with the other ones and after the
break they should continue their normal angle. 

\version "2.19.38"
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
glissandoSkipOn = {
  \override NoteColumn.glissando-skip = ##t
  \hide NoteHead
  \override NoteHead.no-ledgers = ##t
}
glissandoSkipOff = {
  \revert NoteColumn.glissando-skip
  \undo \hide NoteHead
  \revert NoteHead.no-ledgers
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
upperOne = \relative c'' { \oneVoice
\time 3/4
\change Staff = "lower"
\once\override Score.BarNumber.whiteout = #1.8
\once\override Score.BarNumber.whiteout-style = #'outline
\once\override Staff.Clef #'layer = #-1
\once\override Score.StaffSymbol #'layer = #2
\once\override Staff.Clef.whiteout-style = #'outline
\once\override Staff.Clef.whiteout = #2
\clef bass \glissandoSkipOff
\once\override DynamicText.extra-offset = #'(0.2 . 1 )
g,,,8^\p r8 r4 \once\stemDown \set stemLeftBeamCount = #0
\once\override Beam.positions = #'(-5.5 . -5.1)
\override Glissando.breakable = ##t
\override Glissando.after-line-breaking = ##t
\once \override Glissando.bound-details.right.Y = #6
\override Glissando.after-line-breaking =
    #(lambda (grob)
       (ly:grob-set-nested-property! grob '(bound-details right Y) 9))
<g' b>32[]\glissando \glissandoSkipOn \hideNotes r8.. | \break \change Staff
= "upper" \unHideNotes
\stemDown  \override Glissando.after-line-breaking = ##f
\glissandoSkipOff <b''' d>8\! r8
}
upperTwo = \relative c'' { \oneVoice \time 3/4 s2 \change Staff = "lower"
 \once\stemUp \set stemLeftBeamCount = #0
 \once\override Beam.positions = #'(4 . 4.5)
  \override Glissando.after-line-breaking = ##t
 \override Glissando.breakable = ##t
 \once \override Glissando.bound-details.right.Y = #7
 \set glissandoMap = #'((0 . 1) (1 . 0))
 \once \override Voice.Glissando.extra-offset =
    #(lambda (grob)
       (if (= 1 (ly:grob-property grob 'glissando-index)) '(0 . -0.1)
'(0 . 0.2)))
\override Glissando.after-line-breaking =
    #(lambda (grob)
       (ly:grob-set-nested-property! grob '(bound-details right Y) 10))
  <d,, fis>32[]\glissando \glissandoSkipOn s8.. | \break
  \change Staff = "upper" \glissandoSkipOff \stemUp <fis''' a>8\!\sfz 
}

lowerOne = \relative c' { s2.*3 }

lowerTwo = \relative c' {}

\score {
  \new PianoStaff <<
    \new Staff = "upper" << \upperOne \\ \upperTwo >>
    \new Staff = "lower" { \clef bass << \lowerOne \\ \lowerTwo >> }
  >>
  \layout { }
}


Hope the code helps



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Chord-Glissando-Individual-Voice-right-bound-tweaking-tp188718p188725.html
Sent from the User mailing list archive at Nabble.com.



reply via email to

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