lilypond-user
[Top][All Lists]
Advanced

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

Re: Slurred staccato in a tremolo (Menu Jacques)


From: Klaus Blum
Subject: Re: Slurred staccato in a tremolo (Menu Jacques)
Date: Sun, 8 Mar 2015 13:13:18 -0700 (MST)

Hello back, 

I don't know if I'm doing something wrong, but I didn't see a slur at all,
until I added some braces:

% ---------------------------------------------------
\version "2.19.15"

tongue =
#(define-music-function (parser location dots) (integer?)
   (let ((script (make-music 'ArticulationEvent
                   'articulation-type "staccato")))
     (set! (ly:music-property script 'tweaks)
           (acons 'stencil
             (lambda (grob)
               (let ((stil (ly:script-interface::print grob)))
                 (let loop ((count (1- dots)) (new-stil stil))
                   (if (> count 0)
                       (loop (1- count)
                         (ly:stencil-combine-at-edge new-stil X RIGHT stil
0.2))
                       (ly:stencil-aligned-to new-stil X CENTER)))))
             (ly:music-property script 'tweaks)))
     script))

{
  \time 3/4
  \clef "bass"
  <<
    {\repeat tremolo 6 e8 -\tongue #6 }        % braces added
    {\shape #'((-2 . 0.2) (-1 . 0.2) (0 . 0.2) (0 . 0.6)) Slur {s4( s s)} } 
% braces added
  >>
}
% ---------------------------------------------------

Does that help?

Cheers, 
Klaus



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Re-Slurred-staccato-in-a-tremolo-Menu-Jacques-tp172826p172836.html
Sent from the User mailing list archive at Nabble.com.



reply via email to

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