lilypond-user
[Top][All Lists]
Advanced

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

Re: Beaming until barline


From: Pierre Perol-Schneider
Subject: Re: Beaming until barline
Date: Thu, 30 Oct 2014 18:37:04 +0100

Hi Gilberto,

2014-10-26 20:35 GMT+01:00 Gilberto Agostinho <address@hidden>:
 
If anyone still has any other ideas/suggestions, they are highly
appreciated.

Just a rough idea :

\version "2.19.15"

beamLength =
#(define-music-function (parser location myLength myPosition) (number? number?)
  #{
    \once\override Beam.stencil =
      #(lambda (grob) (grob-interpret-markup grob
        #{
          \markup
          %% "column" just in case for multiple beams:
          %\column
          {
            \translate #(cons 0 myPosition)
            \beam #myLength #0 #0.4
            %\vspace #-.73
            %\beam #myLength #0 #0.4
           }
          #}))
  #})

\relative c' {
  \beamLength #19.1 #0
  c8[c c c c c c c]
  \stemDown
  \beamLength #20 #-5.5
  c[c c c c c c c]
  \once\override Staff.BarLine.bar-extent = #'(-7 . 2)
}


HTH
Pierre


reply via email to

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