lilypond-user
[Top][All Lists]
Advanced

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

offseting /makeCluster


From: Gilberto Agostinho
Subject: offseting /makeCluster
Date: Thu, 18 Jun 2015 08:22:59 -0700 (MST)

Hi all,

I need to notate a graphic score which uses some unusual notation for
dynamics: they have their own staff and they consist of polygons (similar to
dealing with volume of a track in Pro Tools, REAPER or other DAW). I
realised that to avoid creating all these graphics using paths or even in
Inkscape later on, I could use the \makeCluster function. This is what the
score asks for:

<http://lilypond.1069038.n5.nabble.com/file/n177973/23.png> 

And this is what I get with \makeClusters after some tweaking:

<http://lilypond.1069038.n5.nabble.com/file/n177973/37.png> 

The code for this image is:

%%%%%%%%%%%%%%%%%%% CODE %%%%%%%%%%%%%%%%%%%%%%
\version "2.19.15"

music = \makeClusters { \override ClusterSpanner.padding = #'-0.25 
    \override Staff.TimeSignature.stencil = ##f
    \override Staff.Clef.stencil = ##f
    \override Staff.StaffSymbol.line-count = 1
    s s s s |
    b' s s s |
    b' <b' g''> s s |
    s s s q |
    b' s s s |
    b' s s s |
}

bars = {
 \repeat unfold 6 {
   s4 \bar "!" s4 \bar "!" s4 \bar "!" s4 \bar "|"
 }
}

\score {
  \new Staff << \music \bars >>
  \layout { 
    \context {
      \Score      
      \override SpacingSpanner.strict-note-spacing = ##t 
      \override SpacingSpanner.uniform-stretching = ##t
      proportionalNotationDuration = #(ly:make-moment 1/8)         
    }
  }
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

But you can notice that \makeCluster changes the slopes at the positions
where the noteheads should have been rather than where the barlines are, so
the whole figure is slightly shifted to the right. I tried overriding the
noteheads positions but to no avail. Would any of you have some suggestions
on how to tackle this problem, that is, how to move the whole cluster
slightly to the left?

Thanks a lot in advance and take care,
Gilberto



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/offseting-makeCluster-tp177973.html
Sent from the User mailing list archive at Nabble.com.



reply via email to

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