On 10/20/2017 4:52 PM, Michael Gerdau wrote:
Hi list,

I have a chord with \laissezVibrer attached and I want only one of ties:

%% snip - snip - snip
\version "2.19.65"
{ <c' g'>\laissezVibrer }
%% snip - snip - snip

I want e.g. only the tie from c' (and/or only from g') but not both.

I'm kind of sure this should be possible in lilypond (as more or less
everything is possible ;) but I'm lacking the magic incantation.

I'd be happy if someone could help me out.

Thank you,
Michael


Hi Michael,

I use this snippet when I need a single lv in a chord...this what you're looking for? Just a starting point...
(see attached)
(taken from http://lsr.di.unimi.it/LSR/Item?id=714)

%%%%%%%%%%

\version "2.19.80"

%% http://lsr.di.unimi.it/LSR/Item?id=714
%% see also http://lilypond.org/doc/v2.18/Documentation/notation/writing-rhythms#ties

%LSR after a mail from Robin Bannister http://lists.gnu.org/archive/html/lilypond-user/2009-04/msg00344.html

% laissezVibrer using feta char overlay: dir: UP or DOWN (or pad per magnitude)
#(define (flvSt dir)
  (lambda (grob)
   (define dirsign
    (if (positive? dir) + -) )
   (let* ((pos (ly:grob-property grob 'staff-position))
          (height (if (odd? pos) +0.8 +0.55)) (angle +90))
    (ly:stencil-combine-at-edge (ly:note-head::print grob) 0 1
     (grob-interpret-markup grob (markup
                                  #:with-dimensions '(0 . 0) '(0 . 0)
                                  #:concat (#:hspace (abs dir)
                                            #:raise (dirsign height)
                                            #:rotate (dirsign angle)
                                            #:musicglyph "accidentals.rightparen" ))) 0))))

flvUP =
\once \override NoteHead.stencil = #(flvSt UP)

flvDOWN =
\once \override NoteHead.stencil = #(flvSt DOWN) % or \tweak stencil   ___ditto____

%% Remark:
%% change next two definitions to the commented ones during LSR 2.20-upgrade
flvUPtw =
#(define-music-function (parser location mus) (ly:music?)
  #{ \tweak stencil  #(flvSt UP) $mus #})

flvDOWNtw =
#(define-music-function (parser location mus) (ly:music?)
  #{ \tweak stencil  #(flvSt DOWN) $mus #})

%% flvUPtw = \tweak stencil  #(flvSt UP) \etc
%% flvDOWNtw = \tweak stencil  #(flvSt DOWN) \etc

\relative c' {
    <\flvDOWNtw a e'>4 s
}
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to